From 92d364b16a4d36cb594a31b226a4cba44c52dffd Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 17 Mar 2024 07:02:15 -0400 Subject: [PATCH] Convert to using poetry TOML --- pyproject.toml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 37 ++--------------------------------- 2 files changed, 55 insertions(+), 35 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..c2ae7ec4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,53 @@ +[build-system] +requires = [ + "setuptools>=61.2", +] + +build-backend = "setuptools.build_meta" + +[project] +authors = [ + {name = "Rocky Bernstein", email = "rb@dustyfeet.com"}, +] + +name = "decompyle3" +description = "Python cross-version byte-code library and disassembler" +dependencies = [ + "click", + "spark-parser >= 1.8.9, < 1.9.0", + "xdis >= 6.0.8, < 6.2.0", +] +readme = "README.rst" +license = {text = "GPL"} +keywords = ["Python bytecode", "bytecode", "disassembler"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Topic :: Software Development :: Libraries :: Python Modules", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/rocky/python-decompile3" +Downloads = "https://github.com/rocky/python-decompile3/releases" + +[project.optional-dependencies] +dev = [ + "pre-commit", + "pytest", +] + +[project.scripts] +decompyle3 = "decompyle3.bin.uncompile:main_bin" +decompyle3-tokenize = "decompyle3.bin.pydisassemble:main" + +[tool.setuptools.dynamic] +version = {attr = "decompyle3.version.__version__"} diff --git a/setup.py b/setup.py index a7398309..9db64af4 100755 --- a/setup.py +++ b/setup.py @@ -3,23 +3,7 @@ import sys -from __pkginfo__ import ( - author, - author_email, - install_requires, - license, - long_description, - classifiers, - entry_points, - modname, - py_modules, - short_desc, - __version__, - web, - zip_safe, -) - -import setuptools +from setuptools import setup SYS_VERSION = sys.version_info[0:2] if SYS_VERSION < (3, 7): @@ -28,21 +12,4 @@ print(mess) raise Exception(mess) -setuptools.setup( - author=author, - author_email=author_email, - classifiers=classifiers, - description=short_desc, - entry_points=entry_points, - install_requires=install_requires, - license=license, - long_description=long_description, - name=modname, - packages=setuptools.find_packages(), - py_modules=py_modules, - test_suite="nose.collector", - url=web, - tests_require=["nose>=1.0"], - version=__version__, - zip_safe=zip_safe, -) +setup(packages=["decompyle3"])