Skip to content

Commit 6436ade

Browse files
committed
Documentation updates and bring Poetry config to the same state as setuptools.
1 parent a59b038 commit 6436ade

3 files changed

Lines changed: 51 additions & 6 deletions

File tree

PACKAGING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Packaging quick reminder
33

44
Make sure maintainer dependencies are installed::
55

6-
pip install -e .[maintainer,dev]
6+
poetry install
77

88
Run release command and follow prompt instructions::
99

10-
fullrelease
10+
poetry run fullrelease

TESTING.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ the libraries to build PIL, too. Here's the Ubuntu commands::
1515
sudo apt-get install build-essential python-dev python3-dev
1616
sudo apt-get install libjpeg8-dev zlib1g-dev
1717

18+
Here's the OSX Homebrew command:
19+
20+
brew install libjpeg libtiff little-cms2 openjpeg webp
21+
1822
Finally, just run ``tox``!
19-
If you want, you can test against a specific version like this: ``tox -e py36``
23+
If you want, you can test against a specific version like this: ``tox -e py312-pil``

pyproject.toml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,38 @@ packages = [{include = "qrcode"}]
99
description = "QR Code image generator"
1010
authors = ["Lincoln Loop <info@lincolnloop.com>"]
1111
license = "BSD"
12-
readme = "README.rst"
12+
readme = ["README.rst", "CHANGES.rst"]
13+
homepage = "https://github.com/lincolnloop/python-qrcode"
14+
keywords = ["qr", "denso-wave", "IEC18004"]
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"License :: OSI Approved :: BSD License",
18+
"Operating System :: OS Independent",
19+
"Intended Audience :: Developers",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Topic :: Multimedia :: Graphics",
28+
"Topic :: Software Development :: Libraries :: Python Modules",
29+
]
30+
31+
# There is no support for data files yet.
32+
# https://github.com/python-poetry/poetry/issues/9519
33+
#
34+
# data_files = [
35+
# { destination = "share/man/man1", from = [ "doc/qr.1" ] },
36+
# ]
37+
38+
[tool.poetry.scripts]
39+
qr = 'qrcode.console_scripts:main'
40+
1341

1442
[tool.poetry.dependencies]
15-
python = "^3.7"
43+
python = "^3.9"
1644
colorama = {version = "*", platform = "win32"}
1745
pypng = "*"
1846
pillow = {version = ">=9.1.0", optional = true}
@@ -22,4 +50,17 @@ pil = ["pillow"]
2250

2351
[tool.poetry.group.dev.dependencies]
2452
pytest = {version = "*"}
25-
pytest-cov = {version = "*"}
53+
pytest-cov = {version = "*"}
54+
docutils = "^0.21.2"
55+
zest-releaser = {extras = ["recommended"], version = "^9.2.0"}
56+
57+
[tool.zest-releaser]
58+
less-zeros = "yes"
59+
version-levels = 2
60+
tag-format = "v{version}"
61+
tag-message = "Version {version}"
62+
tag-signing = "yes"
63+
date-format =" %%-d %%B %%Y"
64+
prereleaser.middle = [
65+
"qrcode.release.update_manpage"
66+
]

0 commit comments

Comments
 (0)