-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (37 loc) · 1.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from setuptools import setup
from sys import argv
def is_register_command(a):
for item in a:
if item.startswith('-'):
continue
return item in ('register', 'bdist_wheel')
return False
longdesc = None
if is_register_command(argv[1:]):
# run before building a wheel:
# pandoc -f markdown_github -t rst README.md > README.rst
with open('README.rst') as f:
longdesc = f.read()
setup(
name='pybrood',
version='0.9.2',
description='Broodwar API binding',
long_description=longdesc,
url='https://github.com/neumond/pybrood',
author='Vitalik Verhovodov',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Games/Entertainment',
'Operating System :: Microsoft :: Windows',
'Operating System :: Microsoft :: Windows :: Windows 7',
],
keywords='bwapi starcraft broodwar ai binding',
packages=['pybrood'],
package_data={'pybrood': ['inner.pyd']},
)