Added setup.py and moved VERSION to pyrisk/__init__.py
authorW. Trevor King <wking@drexel.edu>
Fri, 26 Mar 2010 06:13:45 +0000 (02:13 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 26 Mar 2010 06:13:45 +0000 (02:13 -0400)
pyrisk/__init__.py
pyrisk/base.py
setup.py [new file with mode: 0755]

index 4ccb7874c7fdb8adbad8ec55346c9558bc1a1392..4e938ab537fb536f3c57615edbe21be0b011cc97 100644 (file)
@@ -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
index 463ddff84526f27209c870a8028efff9a637e54f..666c88e3bdfda1941441409bb06779544b57ed06 100644 (file)
@@ -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 (executable)
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'],
+    )