X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=setup.py;h=49e8fffbda9d9f1acced73b9fd20c32bbf7621c4;hb=25495fec3f11a25cdd632a19a352a10cee105d02;hp=bbfb908f62cf3dce634315dd2a6901fceddfc565;hpb=b1653611e4c805719c8a12c86df6c046d292e52b;p=naja.git diff --git a/setup.py b/setup.py index bbfb908..49e8fff 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,13 @@ # -*- coding: utf8 -*- # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4 -"""Setuptools setup.py file for naja.""" +"""Setuptools setup.py file for Robolock II.""" from setuptools import setup, find_packages +from setuptools.command.sdist import sdist +from setuptools.command.install import install + +from tools import gen_json try: import py2exe @@ -15,25 +19,38 @@ except ImportError: # This should probably be pulled from constants.py VERSION_STR = "0.1" + +class NajaSdist(sdist): + def run(self): + gen_json.main() + sdist.run(self) + + +class NajaInstall(install): + def run(self): + gen_json.main(update=False) + install.run(self) + + setup( - name="naja", + name="robolock-II", version=VERSION_STR, - description="naja: Game for PyWeek 18", + description="Robolock II - a puzzle game", author=(", ".join([ "Simon Cross", "Neil Muller", - "Adrianna Pinska", + "Adrianna Pińska", "Stefano Rivera", "David Sharpe", "Jeremy Thurgood", ])), author_email="ctpug@googlegroups.com", - maintainer="Naja Team", + maintainer="Team Naja (CTPUG)", maintainer_email="ctpug@googlegroups.com", - url="http://ctpug.org.za/", + url="http://robolock.org/", download_url="http://ctpug.org.za/git/naja", license="MIT", @@ -61,7 +78,13 @@ setup( ], # Dependencies - install_requires=['pygame'], + install_requires=[ + 'pygame', + ], + + setup_requires=[ + 'PyYAML', + ], # Files packages=find_packages(), @@ -69,10 +92,15 @@ setup( 'scripts/naja', ], + cmdclass={ + 'sdist': NajaSdist, + 'install': NajaInstall, + }, + # py2exe windows=[{ 'script': 'scripts/naja', - 'icon_resources': [(0, "data/icons/naja.ico")], + 'icon_resources': [(0, "data/icons/robolock.ico")], }], app=['scripts/naja'], options={ @@ -83,10 +111,13 @@ setup( 'logging', 'encodings', 'naja', ], 'includes': [ - 'pygame', 'pymunk', + 'pygame', ], 'excludes': [ - 'numpy', + 'numpy', 'pygame.sdlmain_osx', 'winreg', 'AppKit', 'Foundation', + 'Numeric', 'OpenGL.GL', '_scproxy', '_sysconfigdata', + 'copyreg', 'dummy.Process', 'pkg_resources', 'queue', + 'win32evtlog', 'win32evtlogutil', ], 'ignores': [ # all database modules