From 304cf539a7e067dda7ee9ade00e5c4e2dae0e427 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 26 Mar 2010 02:13:45 -0400 Subject: [PATCH] Added setup.py and moved VERSION to pyrisk/__init__.py --- pyrisk/__init__.py | 3 +++ pyrisk/base.py | 2 -- setup.py | 13 +++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 setup.py diff --git a/pyrisk/__init__.py b/pyrisk/__init__.py index 4ccb787..4e938ab 100644 --- a/pyrisk/__init__.py +++ b/pyrisk/__init__.py @@ -13,3 +13,6 @@ # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +VERSION = '0.1' +__version__ = VERSION diff --git a/pyrisk/base.py b/pyrisk/base.py index 463ddff..666c88e 100644 --- a/pyrisk/base.py +++ b/pyrisk/base.py @@ -21,8 +21,6 @@ import random from .log import Logger -VERSION='0.1' - class PlayerError (Exception): pass diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..4ef8f67 --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +from distutils.core import setup +from pyrisk import __version__ + +setup( + name='PyRisk', + version=__version__, + description='Python Risk engine', + url='http://www.physics.drexel.edu/code/tar/pyrisk.tgz', + packages=['pyrisk', + 'pyrisk.player'], + ) -- 2.26.2