forked from vstinner/python-ptrace
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
executable file
·79 lines (68 loc) · 2.14 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·79 lines (68 loc) · 2.14 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
73
74
75
76
77
78
79
#!/usr/bin/env python
# Prepare a release:
#
# - git pull --rebase # check that there is no incoming changesets
# - check version in ptrace/version.py and doc/conf.py
# - set release date in doc/changelog.rst
# - check that "python setup.py sdist" contains all files tracked by
# the SCM (Git): update MANIFEST.in if needed
# - git commit -a -m "prepare release VERSION"
# - run tests, type: tox
# - git push
# - check Travis status:
# https://travis-ci.org/vstinner/python-ptrace
#
# Release a new version:
#
# - git tag python-ptrace-VERSION
# - git push --tags
# - git clean -fdx # WARNING: Remove all untracked files!
# - python3 setup.py sdist bdist_wheel
# - twine upload dist/*
#
# After the release:
#
# - increment version in ptrace/version.py and doc/conf.py
# - git commit -a -m "post-release"
# - git push
from __future__ importwith_statement
fromimpimportload_source
fromosimportpath
try:
# setuptools supports bdist_wheel
fromsetuptoolsimportsetup
exceptImportError:
fromdistutils.coreimportsetup
MODULES= ["ptrace", "ptrace.binding", "ptrace.syscall", "ptrace.debugger"]
SCRIPTS= ("strace.py", "gdb.py")
CLASSIFIERS= [
'Intended Audience :: Developers',
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
]
withopen('README.rst') asfp:
LONG_DESCRIPTION=fp.read()
ptrace=load_source("version", path.join("ptrace", "version.py"))
PACKAGES= {}
fornameinMODULES:
PACKAGES[name] =name.replace(".", "/")
install_options= {
"name": ptrace.PACKAGE,
"version": ptrace.VERSION,
"url": ptrace.WEBSITE,
"download_url": ptrace.WEBSITE,
"author": "Victor Stinner",
"description": "python binding of ptrace",
"long_description": LONG_DESCRIPTION,
"classifiers": CLASSIFIERS,
"license": ptrace.LICENSE,
"packages": list(PACKAGES.keys()),
"package_dir": PACKAGES,
"scripts": SCRIPTS,
}
setup(**install_options)