From ae5ad0b2617780ebc017f9b04c45d8dae55ae849 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 26 Oct 2023 13:21:52 +0200 Subject: [PATCH] Added more metadata to pyproject.toml --- .flake8 | 3 +++ pyproject.toml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..5f322070 --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 120 + diff --git a/pyproject.toml b/pyproject.toml index 75e0100f..35d2da4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,62 @@ [build-system] requires = ['setuptools'] build-backend = 'setuptools.build_meta' + + +[project] +name = "segno" +description = "QR Code and Micro QR Code generator for Python" +dynamic = ["version"] +readme = "README.rst" +license = {file = "LICENSE"} +authors = [{"name" = "Lars Heuer", email = "heuer@semagia.com"}] +requires-python = ">=3.5" +keywords = ["QR Code", "Micro QR Code", "ISO/IEC 18004", "ISO/IEC 18004:2006(E)", + "ISO/IEC 18004:2015(E)", "qrcode", "QR", "barcode", "matrix", "2D",] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Topic :: Multimedia :: Graphics", + "Topic :: Printing", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Utilities", +] + +[project.urls] +"Homepage" = "https://github.com/heuer/segno/" +"Documentation" = "https://segno.readthedocs.io/" +"Issue tracker" = "https://github.com/heuer/segno/issues/" +"Changes" = "https://github.com/heuer/segno/blob/master/CHANGES.rst" + + +[tool.setuptools.dynamic] +version = {attr = "segno.__version__"} + + +[project.scripts] +segno = "segno:cli:main" + + +[tool.setuptools.package-data] +segno = ["py.typed", "*.pyi"] + + +[tool.coverage.run] +branch = true + + +[tool.coverage.report] +exclude_also = [ + # Don't complain if non-runnable code isn't run: + "if __name__ == .__main__.:", +] + +#TODO! +#[options.data_files] +#share/man/man1 = +# man/segno.1 +