Skip to content

Commit

Permalink
Start using TOML/poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Mar 15, 2024
1 parent 5e0aae2 commit 2217985
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 36 deletions.
65 changes: 65 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[build-system]
requires = [
"setuptools>=61.2",
]

build-backend = "setuptools.build_meta"

[project]
authors = [
{name = "Rocky Bernstein", email = "[email protected]"},
]

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__"}
38 changes: 2 additions & 36 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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"])

0 comments on commit 2217985

Please sign in to comment.