From: W. Trevor King Date: Fri, 26 Mar 2010 06:13:45 +0000 (-0400) Subject: Added setup.py and moved VERSION to pyrisk/__init__.py X-Git-Tag: 0.1~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=304cf539a7e067dda7ee9ade00e5c4e2dae0e427;p=pyrisk.git Added setup.py and moved VERSION to pyrisk/__init__.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'], + )