From 70ed1dcf05aa9cd7e3c03afd47625dc8a75ab556 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 25 Feb 2024 20:11:51 +0100 Subject: Modernize packaging with pyproject.toml and setuptool_scm. --- pyproject.toml | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 pyproject.toml (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..13cb29b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,68 @@ +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "lesana" +authors = [ + {name = "Elena ``of Valhalla'' Grandi", email = "valhalla@trueelena.org"}, +] +description = "Manage collection inventories throught yaml files." +readme = "README.rst" +requires-python = ">= 3.8" +license = {text = "AGPLv3+"} +keywords = ["collection", "inventory"] +classifiers = [ + 'Development Status :: 3 - Alpha', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Intended Audience :: End Users/Desktop', + 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', + 'Operating System :: POSIX', + "Programming Language :: Python :: 3", + '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', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Utilities', + ] +dependencies = [ + "ruamel.yaml", + "jinja2", + "python-dateutil", + #"xapian >= 1.4", +] +dynamic = ["version"] + +[project.optional-dependencies] +cli = [ + "hazwaz", +] + +[project.scripts] +lesana = "scripts.lesana:main" +openlibrary2lesana = "scripts.openlibrary2lesana:main" +tellico2lesana = "scripts.tellico2lesana:main" + +[project.urls] +Homepage = "https://lesana.trueelena.org/" +Documentation = "https://lesana.trueelena.org/" +Repository = "https://git.sr.ht/~valhalla/lesana" +Source = "https://git.sr.ht/~valhalla/lesana" +Issues = "https://todo.sr.ht/~valhalla/lesana" +Tracker = "https://todo.sr.ht/~valhalla/lesana" +Changelog = "https://git.sr.ht/~valhalla/lesana/tree/master/item/CHANGELOG.rst" +"Mailing lists" = "https://sr.ht/~valhalla/lesana/lists" + +[tool.setuptools_scm] +version_file = "lesana/_version.py" + +[tool.mypy.overrides] +module = [ + "xapian", + "argcomplete", + "hazwaz", +] +ignore_missing_imports = true -- cgit v1.2.3