Skip to content

Commit f191652

Browse files
committed
Manage version with Incremental
1 parent bcbd77a commit f191652

5 files changed

+95
-8
lines changed

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["hatchling"]
2+
requires = ["hatchling", "incremental>=24.7.2"]
33
build-backend = "hatchling.build"
44

55
[project]
@@ -48,7 +48,7 @@ packages = ["yarrharr"]
4848
artifacts = ["/yarrharr/static"]
4949

5050
[tool.hatch.version]
51-
path = "yarrharr/__init__.py"
51+
source = "incremental"
5252

5353
[tool.ruff]
5454
line-length = 150

requirements_release.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build
22
twine
3+
hatch

requirements_release.txt

+78-5
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,55 @@
44
#
55
# pip-compile --output-file=requirements_release.txt requirements_release.in
66
#
7+
anyio==4.6.2.post1
8+
# via httpx
79
bleach==6.0.0
810
# via readme-renderer
911
build==1.2.1
1012
# via -r requirements_release.in
1113
certifi==2024.8.30
12-
# via requests
14+
# via
15+
# httpcore
16+
# httpx
17+
# requests
1318
cffi==1.15.1
1419
# via cryptography
1520
charset-normalizer==3.2.0
1621
# via requests
22+
click==8.1.7
23+
# via
24+
# hatch
25+
# userpath
1726
cryptography==43.0.3
1827
# via secretstorage
28+
distlib==0.3.9
29+
# via virtualenv
1930
docutils==0.20.1
2031
# via readme-renderer
32+
editables==0.5
33+
# via hatchling
34+
exceptiongroup==1.2.2
35+
# via anyio
36+
filelock==3.16.1
37+
# via virtualenv
38+
h11==0.14.0
39+
# via httpcore
40+
hatch==1.9.7
41+
# via -r requirements_release.in
42+
hatchling==1.21.1
43+
# via hatch
44+
httpcore==1.0.7
45+
# via httpx
46+
httpx==0.27.2
47+
# via hatch
48+
hyperlink==21.0.0
49+
# via hatch
2150
idna==3.7
22-
# via requests
51+
# via
52+
# anyio
53+
# httpx
54+
# hyperlink
55+
# requests
2356
importlib-metadata==6.8.0
2457
# via
2558
# build
@@ -32,17 +65,34 @@ jeepney==0.8.0
3265
# keyring
3366
# secretstorage
3467
keyring==24.2.0
35-
# via twine
68+
# via
69+
# hatch
70+
# twine
3671
markdown-it-py==3.0.0
3772
# via rich
3873
mdurl==0.1.2
3974
# via markdown-it-py
4075
more-itertools==10.0.0
4176
# via jaraco-classes
4277
packaging==23.1
43-
# via build
78+
# via
79+
# build
80+
# hatch
81+
# hatchling
82+
pathspec==0.12.1
83+
# via hatchling
84+
pexpect==4.9.0
85+
# via hatch
4486
pkginfo==1.9.6
4587
# via twine
88+
platformdirs==4.3.6
89+
# via
90+
# hatch
91+
# virtualenv
92+
pluggy==1.5.0
93+
# via hatchling
94+
ptyprocess==0.7.0
95+
# via pexpect
4696
pycparser==2.21
4797
# via cffi
4898
pygments==2.15.1
@@ -62,22 +112,45 @@ requests-toolbelt==1.0.0
62112
rfc3986==2.0.0
63113
# via twine
64114
rich==13.5.2
65-
# via twine
115+
# via
116+
# hatch
117+
# twine
66118
secretstorage==3.3.3
67119
# via keyring
120+
shellingham==1.5.4
121+
# via hatch
68122
six==1.16.0
69123
# via bleach
124+
sniffio==1.3.1
125+
# via
126+
# anyio
127+
# httpx
70128
tomli==2.0.1
71129
# via
72130
# build
131+
# hatchling
73132
# pyproject-hooks
133+
tomli-w==1.1.0
134+
# via hatch
135+
tomlkit==0.13.2
136+
# via hatch
137+
trove-classifiers==2024.10.21.16
138+
# via hatchling
74139
twine==5.1.1
75140
# via -r requirements_release.in
141+
typing-extensions==4.12.2
142+
# via anyio
76143
urllib3==2.2.2
77144
# via
78145
# requests
79146
# twine
147+
userpath==1.9.2
148+
# via hatch
149+
virtualenv==20.25.3
150+
# via hatch
80151
webencodings==0.5.1
81152
# via bleach
82153
zipp==3.19.2
83154
# via importlib-metadata
155+
zstandard==0.23.0
156+
# via hatch

yarrharr/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
# such a combination shall include the source code for the parts of
2424
# OpenSSL used as well as that of the covered work.
2525

26+
from importlib.metadata import version
27+
2628
__author__ = "Tom Most"
2729
__author_email__ = "[email protected]"
28-
__version__ = "2024.11.0"
30+
__version__ = version("yarrharr")

yarrharr/_version.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""
2+
Provides yarrharr version information.
3+
"""
4+
5+
# This file is auto-generated! Do not edit!
6+
# Use `incremental` to change this file.
7+
8+
from incremental import Version
9+
10+
__version__ = Version("yarrharr", 24, 11, 0)
11+
__all__ = ["__version__"]

0 commit comments

Comments
 (0)