Skip to content

Commit 86af08c

Browse files
committed
Rewrite sponsor logo links to release versions
This should allow us to not keep the logos around forever in our repo. I won't work in-dev on test PyPI, but that trade off should be worth it.
1 parent 249044c commit 86af08c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: MIT
22

33
[build-system]
4-
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
4+
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=23.2.0"]
55
build-backend = "hatchling.build"
66

77

@@ -112,6 +112,11 @@ text = """
112112
[Full changelog](https://www.attrs.org/en/stable/changelog.html)
113113
"""
114114

115+
# Point sponsor image URLs to versions.
116+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
117+
pattern = '\/latest\/_static/sponsors'
118+
replacement = '/$HFPR_VERSION/_static/sponsors'
119+
115120

116121
[tool.pytest.ini_options]
117122
addopts = ["-ra", "--strict-markers", "--strict-config"]

0 commit comments

Comments
 (0)