forked from pdbpp/pdbpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
81 lines (70 loc) · 2.45 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
69
70
71
72
73
74
75
76
77
78
79
80
81
import os.path
from setuptools import setup
from setuptools.command.build_py import build_py
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
changelog_path = os.path.join(os.path.dirname(__file__), "CHANGELOG")
with open(readme_path, encoding="utf-8") as fh:
readme = fh.read()
with open(changelog_path, encoding="utf-8") as fh:
changelog = fh.read()
long_description = readme + "\n\n" + changelog
class build_py_with_pth_file(build_py):
"""Include the .pth file for this project, in the generated wheel."""
pth_file = "pdbpp_hijack_pdb.pth"
def run(self):
super().run()
self.copy_file(
self.pth_file,
os.path.join(self.build_lib, self.pth_file),
preserve_mode=0,
)
setup(
name="pdbpp",
use_scm_version=True,
author="Antonio Cuni",
maintainer="bretello",
package_dir={"": "src"},
url="https://github.com/bretello/pdbpp",
project_urls={
"Bug Tracker": "https://github.com/bretello/pdbpp/issues",
"Source Code": "https://github.com/bretello/pdbpp",
},
license="BSD",
platforms=["unix", "linux", "osx", "cygwin", "win32"],
description="pdb++, a drop-in replacement for pdb",
long_description=long_description,
keywords=["pdb", "debugger", "tab", "color", "completion"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python",
"Topic :: Utilities",
"Topic :: Software Development :: Debuggers",
],
install_requires=[
"fancycompleter>=0.11.0",
"pygments",
],
extras_require={
"testing": [
"pytest",
"pytest-cov",
"ipython",
"pexpect",
],
},
setup_requires=["setuptools_scm"],
cmdclass={"build_py": build_py_with_pth_file},
)