diff --git a/PACKAGING.rst b/PACKAGING.rst index 5d00fdb..db252ca 100644 --- a/PACKAGING.rst +++ b/PACKAGING.rst @@ -3,8 +3,8 @@ Packaging quick reminder Make sure maintainer dependencies are installed:: - pip install -e .[maintainer,dev] + poetry install Run release command and follow prompt instructions:: - fullrelease + poetry run fullrelease diff --git a/TESTING.rst b/TESTING.rst index 5686832..948baff 100644 --- a/TESTING.rst +++ b/TESTING.rst @@ -15,5 +15,9 @@ the libraries to build PIL, too. Here's the Ubuntu commands:: sudo apt-get install build-essential python-dev python3-dev sudo apt-get install libjpeg8-dev zlib1g-dev +Here's the OSX Homebrew command: + + brew install libjpeg libtiff little-cms2 openjpeg webp + Finally, just run ``tox``! -If you want, you can test against a specific version like this: ``tox -e py36`` +If you want, you can test against a specific version like this: ``tox -e py312-pil`` diff --git a/pyproject.toml b/pyproject.toml index 9b177aa..e840cdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,10 +9,38 @@ packages = [{include = "qrcode"}] description = "QR Code image generator" authors = ["Lincoln Loop "] license = "BSD" -readme = "README.rst" +readme = ["README.rst", "CHANGES.rst"] +homepage = "https://github.com/lincolnloop/python-qrcode" +keywords = ["qr", "denso-wave", "IEC18004"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Intended Audience :: Developers", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Multimedia :: Graphics", + "Topic :: Software Development :: Libraries :: Python Modules", +] + +# There is no support for data files yet. +# https://github.com/python-poetry/poetry/issues/9519 +# +# data_files = [ +# { destination = "share/man/man1", from = [ "doc/qr.1" ] }, +# ] + +[tool.poetry.scripts] +qr = 'qrcode.console_scripts:main' + [tool.poetry.dependencies] -python = "^3.7" +python = "^3.9" colorama = {version = "*", platform = "win32"} pypng = "*" pillow = {version = ">=9.1.0", optional = true} @@ -22,4 +50,17 @@ pil = ["pillow"] [tool.poetry.group.dev.dependencies] pytest = {version = "*"} -pytest-cov = {version = "*"} \ No newline at end of file +pytest-cov = {version = "*"} +docutils = "^0.21.2" +zest-releaser = {extras = ["recommended"], version = "^9.2.0"} + +[tool.zest-releaser] +less-zeros = "yes" +version-levels = 2 +tag-format = "v{version}" +tag-message = "Version {version}" +tag-signing = "yes" +date-format =" %%-d %%B %%Y" +prereleaser.middle = [ + "qrcode.release.update_manpage" +]