Skip to content

Commit 2217985

Browse files
author
rocky
committed
Start using TOML/poetry
1 parent 5e0aae2 commit 2217985

File tree

2 files changed

+67
-36
lines changed

2 files changed

+67
-36
lines changed

pyproject.toml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=61.2",
4+
]
5+
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
authors = [
10+
{name = "Rocky Bernstein", email = "rb@dustyfeet.com"},
11+
]
12+
13+
name = "xdis"
14+
description = "Python cross-version byte-code library and disassembler"
15+
dependencies = [
16+
"click",
17+
"pygments",
18+
"xdis >= 6.0.0, < 6.2.0",
19+
"term-background >= 1.0.1",
20+
"six >= 1.10.0",
21+
]
22+
readme = "README.rst"
23+
license = {text = "GPL"}
24+
keywords = ["Python bytecode", "bytecode", "disassembler"]
25+
classifiers = [
26+
"Development Status :: 5 - Production/Stable",
27+
"Intended Audience :: Developers",
28+
"License :: OSI Approved :: MIT License",
29+
"Programming Language :: Python",
30+
"Topic :: Software Development :: Libraries :: Python Modules",
31+
"Programming Language :: Python :: 2.4",
32+
"Programming Language :: Python :: 2.5",
33+
"Programming Language :: Python :: 2.6",
34+
"Programming Language :: Python :: 2.7",
35+
"Programming Language :: Python :: 3.0",
36+
"Programming Language :: Python :: 3.1",
37+
"Programming Language :: Python :: 3.2",
38+
"Programming Language :: Python :: 3.3",
39+
"Programming Language :: Python :: 3.4",
40+
"Programming Language :: Python :: 3.5 ",
41+
"Programming Language :: Python :: 3.6 ",
42+
"Programming Language :: Python :: 3.7 ",
43+
"Programming Language :: Python :: 3.8 ",
44+
"Programming Language :: Python :: 3.9 ",
45+
"Programming Language :: Python :: 3.10 ",
46+
"Programming Language :: Python :: 3.11 ",
47+
"Programming Language :: Python :: 3.12 ",
48+
]
49+
dynamic = ["version"]
50+
51+
[project.urls]
52+
Homepage = "https://github.com/rocky/python-xdis"
53+
Downloads = "https://github.com/rocky/python-xdis/releases"
54+
55+
[project.optional-dependencies]
56+
dev = [
57+
"pre-commit",
58+
"pytest",
59+
]
60+
61+
[project.scripts]
62+
pydisasm = "xdis.bin.pydisasm:main"
63+
64+
[tool.setuptools.dynamic]
65+
version = {attr = "xdis.version.__version__"}

setup.py

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,6 @@
11
#!/usr/bin/env python
22
"""Setup script for the 'xdis' distribution."""
3-
from setuptools import find_packages, setup
43

5-
from __pkginfo__ import (
6-
author,
7-
author_email,
8-
classifiers,
9-
entry_points,
10-
install_requires,
11-
license,
12-
long_description,
13-
modname,
14-
python_requires,
15-
short_desc,
16-
tests_require,
17-
web,
18-
zip_safe,
19-
)
20-
from xdis.version import __version__
4+
from setuptools import setup
215

22-
setup(
23-
author=author,
24-
author_email=author_email,
25-
classifiers=classifiers,
26-
description=short_desc,
27-
entry_points=entry_points,
28-
install_requires=install_requires,
29-
license=license,
30-
long_description=long_description,
31-
long_description_content_type="text/x-rst",
32-
name=modname,
33-
packages=find_packages(),
34-
python_requires=python_requires,
35-
# setup_requires = setup_requires,
36-
tests_require=tests_require,
37-
url=web,
38-
version=__version__,
39-
zip_safe=zip_safe,
40-
)
6+
setup(packages=["xdis"])

0 commit comments

Comments
 (0)