diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..2a554e2b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,65 @@ +[build-system] +requires = [ + "setuptools>=61.2", +] + +build-backend = "setuptools.build_meta" + +[project] +authors = [ + {name = "Rocky Bernstein", email = "rb@dustyfeet.com"}, +] + +name = "xdis" +description = "Python cross-version byte-code library and disassembler" +dependencies = [ + "click", + "pygments", + "xdis >= 6.0.0, < 6.2.0", + "term-background >= 1.0.1", + "six >= 1.10.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 :: 2.4", + "Programming Language :: Python :: 2.5", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.0", + "Programming Language :: Python :: 3.1", + "Programming Language :: Python :: 3.2", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5 ", + "Programming Language :: Python :: 3.6 ", + "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-xdis" +Downloads = "https://github.com/rocky/python-xdis/releases" + +[project.optional-dependencies] +dev = [ + "pre-commit", + "pytest", +] + +[project.scripts] +pydisasm = "xdis.bin.pydisasm:main" + +[tool.setuptools.dynamic] +version = {attr = "xdis.version.__version__"} diff --git a/setup.py b/setup.py index f87a013e..eb40805f 100755 --- a/setup.py +++ b/setup.py @@ -1,40 +1,6 @@ #!/usr/bin/env python """Setup script for the 'xdis' distribution.""" -from setuptools import find_packages, setup -from __pkginfo__ import ( - author, - author_email, - classifiers, - entry_points, - install_requires, - license, - long_description, - modname, - python_requires, - short_desc, - tests_require, - web, - zip_safe, -) -from xdis.version import __version__ +from setuptools import setup -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, - long_description_content_type="text/x-rst", - name=modname, - packages=find_packages(), - python_requires=python_requires, - # setup_requires = setup_requires, - tests_require=tests_require, - url=web, - version=__version__, - zip_safe=zip_safe, -) +setup(packages=["xdis"])