1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
Description: distutils is depreciated for pyproject+setuptools.
The author has been contacted directly.
Forwarded: yes
Author: Nicolas Boulenguez <nicolas@debian.org>
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@
mv doc/build/html .
tarball: documentation
- $(PYTHON) setup.py sdist --formats=bztar
+ $(PYTHON) -m build --sdist --config-setting=--formats=bztar
-release: documentation
- python ./setup.py sdist upload -r pypi
+release: tarball
+ $(PYTHON) -m twine upload dist/* -r pypi
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,41 @@
+[build-system]
+requires = ["setuptools >= 77.0.3"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "ptk"
+description = "LR(1) parsing framework for Python with support for asynchronous input"
+authors = [
+ {name = "Jérôme Laheurte", email = "jerome@jeromelaheurte.net"},
+]
+keywords = ["parser", "parsing", "compiler", "lr", "slr"]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python",
+ "Topic :: Software Development :: Compilers",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+]
+license = "LGPL-3.0-or-later"
+license-files = ["LICENSE.txt"]
+readme = "README.rst"
+dynamic = ["version"]
+
+[project.urls]
+Homepage = "https://github.com/fraca7/ptk"
+Bug-Database = "https://github.com/fraca7/ptk/issues"
+Bug-Submit = "https://github.com/fraca7/ptk/issues/new"
+Changelog = "https://github.com/fraca7/ptk/blob/master/CHANGES"
+Repository-Browse = "https://github.com/fraca7/ptk/"
+Repository = "https://github.com/fraca7/ptk.git"
+Archive = "PyPI"
+
+# Autodetection expects src/ptk/ samples/
+# or ptk/ examples/
+# but is confused by ptk/ samples/
+[tool.setuptools]
+packages = ["ptk"]
+
+[tool.setuptools.dynamic]
+version = {attr = "ptk.version"}
--- a/setup.cfg
+++ /dev/null
@@ -1,2 +0,0 @@
-[metadata]
-description-file=README.rst
--- a/setup.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# -*- coding: UTF-8 -*-
-
-# (c) Jérôme Laheurte 2015-2019
-# See LICENSE.txt
-
-from distutils.core import setup
-from ptk.meta import version, PackageInfo
-
-setup(
- name='ptk',
- packages=['ptk'],
- version=version,
- description=PackageInfo.short_description,
- author=PackageInfo.author_name,
- author_email=PackageInfo.author_email,
- url=PackageInfo.project_url,
- download_url=PackageInfo.download_url,
- keywords='parser parsing compiler lr slr'.split(),
- classifiers=[
- 'Development Status :: 5 - Production/Stable',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python',
- 'Topic :: Software Development :: Compilers',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- ],
- )
|