|
| 1 | +from setuptools import setup |
| 2 | +from sys import argv |
| 3 | + |
| 4 | + |
| 5 | +def is_register_command(a): |
| 6 | + for item in a: |
| 7 | + if item.startswith('-'): |
| 8 | + continue |
| 9 | + return item in ('register', 'bdist_wheel') |
| 10 | + return False |
| 11 | + |
| 12 | +longdesc = None |
| 13 | +if is_register_command(argv[1:]): |
| 14 | + import os |
| 15 | + with os.popen('pandoc -f markdown_github -t rst README.md') as f: |
| 16 | + longdesc = f.read() |
| 17 | + |
| 18 | + |
| 19 | +setup( |
| 20 | + name='computercraft', |
| 21 | + version='0.1.1', |
| 22 | + description='Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!', |
| 23 | + long_description=longdesc, |
| 24 | + url='https://github.com/neumond/python-computer-craft', |
| 25 | + author='Vitalik Verhovodov', |
| 26 | + author_email='knifeslaughter@gmail.com', |
| 27 | + license='MIT', |
| 28 | + classifiers=[ |
| 29 | + 'Development Status :: 3 - Alpha', |
| 30 | + 'Intended Audience :: Education', |
| 31 | + 'License :: OSI Approved :: MIT License', |
| 32 | + 'Programming Language :: Python :: 3.5', |
| 33 | + 'Programming Language :: Python :: 3.6', |
| 34 | + 'Topic :: Games/Entertainment', |
| 35 | + ], |
| 36 | + keywords='computercraft minecraft', |
| 37 | + packages=['computercraft', 'computercraft.subapis'], |
| 38 | + package_data={'computercraft': ['back.lua']}, |
| 39 | + install_requires=['aiohttp'], |
| 40 | + entry_points={ |
| 41 | + 'console_scripts': [ |
| 42 | + 'computercraft=computercraft.server:main', |
| 43 | + ], |
| 44 | + }, |
| 45 | +) |
0 commit comments