at master 2.1 kB view raw
1diff --git a/pyproject.toml b/pyproject.toml 2index 0b59809..8811148 100644 3--- a/pyproject.toml 4+++ b/pyproject.toml 5@@ -1,7 +1,7 @@ 6 # SPDX-License-Identifier: MIT 7 8 [build-system] 9-requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=23.2.0"] 10+requires = ["hatchling"] 11 build-backend = "hatchling.build" 12 13 14@@ -26,7 +26,8 @@ classifiers = [ 15 "Typing :: Typed", 16 ] 17 dependencies = [] 18-dynamic = ["version", "readme"] 19+dynamic = ["readme"] 20+version = "@version@" 21 22 [project.optional-dependencies] 23 tests-mypy = [ 24@@ -72,53 +73,9 @@ Funding = "https://github.com/sponsors/hynek" 25 Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi" 26 27 28-[tool.hatch.version] 29-source = "vcs" 30-raw-options = { local_scheme = "no-local-version" } 31- 32 [tool.hatch.build.targets.wheel] 33 packages = ["src/attr", "src/attrs"] 34 35-[tool.hatch.metadata.hooks.fancy-pypi-readme] 36-content-type = "text/markdown" 37- 38-# PyPI doesn't support the <picture> tag. 39-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 40-text = """<p align="center"> 41- <a href="https://www.attrs.org/"> 42- <img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" /> 43- </a> 44-</p> 45-""" 46- 47-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 48-path = "README.md" 49-start-after = "<!-- teaser-begin -->" 50- 51-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 52-text = """ 53- 54-## Release Information 55- 56-""" 57- 58-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 59-path = "CHANGELOG.md" 60-pattern = "\n(###.+?\n)## " 61- 62-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] 63-text = """ 64- 65---- 66- 67-[Full changelog →](https://www.attrs.org/en/stable/changelog.html) 68-""" 69- 70-# Point sponsor image URLs to versions. 71-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] 72-pattern = 'docs\/_static\/sponsors' 73-replacement = 'https://www.attrs.org/en/$HFPR_VERSION/_static/sponsors' 74- 75 [[tool.sponcon.sponsors]] 76 title = "Variomedia AG" 77 url = "https://www.variomedia.de/"