Skip to content

Commit 667807e

Browse files
committed
Convert to using poetry TOML
1 parent 844206d commit 667807e

File tree

3 files changed

+57
-36
lines changed

3 files changed

+57
-36
lines changed

decompyle3/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# This file is suitable for sourcing inside bash as
1414
# well as importing into Python
1515
# fmt: off
16-
__version__="3.9.1.dev0" # noqa
16+
__version__="3.9.1" # noqa

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 = "[email protected]"},
11+
]
12+
13+
name = "decompyle3"
14+
description = "Python cross-version byte-code library and disassembler"
15+
dependencies = [
16+
"click",
17+
"spark-parser >= 1.8.9, < 1.9.0",
18+
"xdis >= 6.0.8, < 6.2.0",
19+
]
20+
readme = "README.rst"
21+
license = {text = "GPL"}
22+
keywords = ["Python bytecode", "bytecode", "disassembler"]
23+
classifiers = [
24+
"Development Status :: 5 - Production/Stable",
25+
"Intended Audience :: Developers",
26+
"License :: OSI Approved :: MIT License",
27+
"Programming Language :: Python",
28+
"Topic :: Software Development :: Libraries :: Python Modules",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
]
36+
dynamic = ["version"]
37+
38+
[project.urls]
39+
Homepage = "https://github.com/rocky/python-decompile3"
40+
Downloads = "https://github.com/rocky/python-decompile3/releases"
41+
42+
[project.optional-dependencies]
43+
dev = [
44+
"pre-commit",
45+
"pytest",
46+
]
47+
48+
[project.scripts]
49+
decompyle3 = "decompyle3.bin.decompile:main_bin"
50+
decompyle3-code = "decompyle3.bin.decompile_code_type:main"
51+
decompyle3-tokenize = "decompyle3.bin.decompile_tokens:main"
52+
53+
[tool.setuptools.dynamic]
54+
version = {attr = "decompyle3.version.__version__"}

setup.py

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,7 @@
33

44
import sys
55

6-
from __pkginfo__ import (
7-
author,
8-
author_email,
9-
install_requires,
10-
license,
11-
long_description,
12-
classifiers,
13-
entry_points,
14-
modname,
15-
py_modules,
16-
short_desc,
17-
__version__,
18-
web,
19-
zip_safe,
20-
)
21-
22-
import setuptools
6+
from setuptools import setup
237

248
SYS_VERSION = sys.version_info[0:2]
259
if SYS_VERSION < (3, 7):
@@ -28,21 +12,4 @@
2812
print(mess)
2913
raise Exception(mess)
3014

31-
setuptools.setup(
32-
author=author,
33-
author_email=author_email,
34-
classifiers=classifiers,
35-
description=short_desc,
36-
entry_points=entry_points,
37-
install_requires=install_requires,
38-
license=license,
39-
long_description=long_description,
40-
name=modname,
41-
packages=setuptools.find_packages(),
42-
py_modules=py_modules,
43-
test_suite="nose.collector",
44-
url=web,
45-
tests_require=["nose>=1.0"],
46-
version=__version__,
47-
zip_safe=zip_safe,
48-
)
15+
setup(packages=["decompyle3"])

0 commit comments

Comments
 (0)