forked from MatthieuDartiailh/bytecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
72 lines (62 loc) · 1.85 KB
/
setup.py
File metadata and controls
72 lines (62 loc) · 1.85 KB
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
69
70
71
72
#!/usr/bin/env python3
# Prepare a release:
#
# - git pull --rebase
# - update version in setup.py, bytecode/__init__.py and doc/conf.py
# - run tests: tox
# - set release date in the changelog
# - git commit -a
# - git push
# - check Travis CI status:
# https://travis-ci.com/github/vstinner/bytecode
#
# Release a new version:
#
# - git tag VERSION
# - git push --tags
# - rm -rf dist/
# - python3 setup.py sdist bdist_wheel
# - twine upload dist/*
#
# After the release:
#
# - set version to n+1
# - git commit -a -m "post-release"
# - git push
VERSION = "0.12.0.dev"
DESCRIPTION = "Python module to generate and modify bytecode"
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# put most of the code inside main() to be able to import setup.py in
# test_bytecode.py, to ensure that VERSION is the same than
# bytecode.__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": "bytecode",
"version": VERSION,
"license": "MIT license",
"description": DESCRIPTION,
"long_description": long_description,
"url": "https://github.com/vstinner/bytecode",
"author": "Victor Stinner",
"author_email": "victor.stinner@gmail.com",
"classifiers": CLASSIFIERS,
"packages": ["bytecode", "bytecode.tests"],
"install_requires": ['aenum >=2.0;python_version<"3.6"'],
}
setup(**options)
if __name__ == "__main__":
main()