This repository has been archived by the owner on Mar 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
68 lines (59 loc) · 1.76 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python3
# Prepare a release:
#
# - git pull --rebase
# - run tests: tox
# - update VERSION in setup.py, fatoptimizer/__init__.py and doc/conf.py
# - set release date in the changelog in doc/misc.rst
# - git commit -a
# - git push
#
# Release a new version:
#
# - git tag VERSION
# - git push --tags
# - python3 setup.py register sdist bdist_wheel upload
#
# After the release:
#
# - set version to n+1
# - git commit
# - git push
VERSION = '0.3'
DESCRIPTION = ('Static optimizer for Python 3.6 using function '
'specialization with guards')
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: C',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
]
# put most of the code inside main() to be able to import setup.py in
# test_fatoptimizer.py, to ensure that VERSION is the same than
# fatoptimizer.__version__.
def main():
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as fp:
long_description = fp.read().strip()
options = {
'name': 'fatoptimizer',
'version': VERSION,
'license': 'MIT license',
'description': DESCRIPTION,
'long_description': long_description,
'url': 'https://fatoptimizer.readthedocs.io/en/latest/',
'author': 'Victor Stinner',
'author_email': 'victor.stinner@gmail.com',
'classifiers': CLASSIFIERS,
'packages': ['fatoptimizer'],
}
setup(**options)
if __name__ == '__main__':
main()