This repository was archived by the owner on Jan 4, 2026. It is now read-only.
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
69 lines (59 loc) · 1.74 KB
/
setup.py
File metadata and controls
69 lines (59 loc) · 1.74 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
#!/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.org/haypo/bytecode
#
# 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 -a -m "post-release"
# - git push
VERSION = '0.5'
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/haypo/bytecode',
'author': 'Victor Stinner',
'author_email': 'victor.stinner@gmail.com',
'classifiers': CLASSIFIERS,
'packages': ['bytecode', 'bytecode.tests'],
}
setup(**options)
if __name__ == '__main__':
main()