Skip to content

Commit

Permalink
Convert to using poetry TOML
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Mar 17, 2024
1 parent 844206d commit 92d364b
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 35 deletions.
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[build-system]
requires = [
"setuptools>=61.2",
]

build-backend = "setuptools.build_meta"

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

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

0 comments on commit 92d364b

Please sign in to comment.