From ec4b49d843e67b31b33ac81bef55346353f1d04c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 25 May 2023 10:15:47 +0200 Subject: refactor: rearrange the project to the src/ layout. Fix also pyproject.toml to generate what seems right. Add the explicit dependency on nntplib for Python >= 3.12 (gh#python/cpython!104894). Fixes: https://todo.sr.ht/~mcepl/pygn/7 --- pyproject.toml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 35a7abf..1cbc27c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools"] +requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -8,8 +8,8 @@ authors = [ {name = "Cosimo Alfarano", email = "kalfa@debian.org"}, {name = "Matěj Cepl", email = "mcepl@cepl.eu"}, ] +description = 'The Python Gateway Script: news2mail mail2news gateway' keywords=["nntp", "email", "gateway"] -readme = "README.md" requires-python = ">=3.6" license = {text = "GPL-3.0"} classifiers = [ @@ -23,9 +23,15 @@ classifiers = [ 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)' ] dependencies = [ - "rply", + 'rply', + 'nntplib; python_version>="3.12"' ] -dynamic = ["version", "description"] +dynamic = ["version", "readme"] + +[project.urls] +Homepage = "https://sr.ht/~mcepl/pygn/" +"Bug Tracker" = "https://todo.sr.ht/~mcepl/pygn" +Repository = "https://git.sr.ht/~mcepl/pygn" [project.scripts] pygm2n = "mail2news:main" @@ -33,10 +39,4 @@ pygn2m = "news2mail:main" [tool.setuptools.dynamic] version = {attr = "mail2news.__version__"} -description = {attr = "mail2news.__description__"} - -[tool.setuptools.packages.find] -where = ["."] -include = ["*.py"] -exclude = ["setup.py"] -namespaces = false +readme = {file = "README.md"} -- cgit