From 33eb8f7f7d01843625eead6a87a83fca3130e55b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 18 Jul 2023 14:39:13 +0200 Subject: [PATCH] Move to pyproject.toml --- pospell.py | 2 +- pyproject.toml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++- setup.cfg | 32 ----------------------------- setup.py | 3 --- 4 files changed, 56 insertions(+), 37 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pospell.py b/pospell.py index f1622e5..122a244 100644 --- a/pospell.py +++ b/pospell.py @@ -24,7 +24,7 @@ from docutils.utils import new_document import regex -__version__ = "1.1" +__version__ = "1.2" DEFAULT_DROP_CAPITALIZED = {"fr": True, "fr_FR": True} diff --git a/pyproject.toml b/pyproject.toml index 9787c3b..a550768 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,57 @@ [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools"] build-backend = "setuptools.build_meta" + +[project] +name = "pospell" +authors = [ + {name = "Julien Palard", email = "julien@palard.fr"}, +] +description = "Spellcheck .po files containing reStructuredText translations" +keywords = [ + "po", + "spell", + "gettext", + "reStructuredText", + "check", + "sphinx", + "translation", +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Programming Language :: Python :: 3", +] +requires-python = ">= 3.6" +dependencies = [ + "polib", + "docutils>=0.16", + "regex", +] +dynamic = [ + "version", +] + +[project.license] +text = "MIT license" + +[project.readme] +file = "README.md" +content-type = "text/markdown; charset=UTF-8" + +[project.urls] +Homepage = "https://git.afpy.org/AFPy/pospell" + +[project.scripts] +pospell = "pospell:main" + +[tool.setuptools] +py-modules = [ + "pospell", +] +include-package-data = false + +[tool.setuptools.dynamic.version] +attr = "pospell.__version__" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index a5b7292..0000000 --- a/setup.cfg +++ /dev/null @@ -1,32 +0,0 @@ -[metadata] -name = pospell -version = attr: pospell.__version__ -author = Julien Palard -author_email = julien@palard.fr -license = MIT license -description = Spellcheck .po files containing reStructuredText translations -keywords = - po - spell - gettext - reStructuredText - check - sphinx - translation -url = https://github.com/AFPy/pospell -long_description = file: README.md -long_description_content_type = text/markdown; charset=UTF-8 -classifiers = - Development Status :: 5 - Production/Stable - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Natural Language :: English - Programming Language :: Python :: 3 - -[options] -py_modules = pospell -python_requires = >= 3.6 -install_requires = polib; docutils>=0.16; regex - -[options.entry_points] -console_scripts = pospell=pospell:main diff --git a/setup.py b/setup.py deleted file mode 100644 index b908cbe..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -import setuptools - -setuptools.setup()