"""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
# 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="robolock-II",
version=VERSION_STR,
# Dependencies
install_requires=[
'pygame',
+ ],
+
+ setup_requires=[
'PyYAML',
],
'scripts/naja',
],
+ cmdclass={
+ 'sdist': NajaSdist,
+ 'install': NajaInstall,
+ },
+
# py2exe
windows=[{
'script': 'scripts/naja',