Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / attrs / remove-hatch-plugins.patch
blob7d7b83a366e0bb98ca5e82484218b58c5ae4b304
1 diff --git a/pyproject.toml b/pyproject.toml
2 index fb8fae3..998211f 100644
3 --- a/pyproject.toml
4 +++ b/pyproject.toml
5 @@ -1,7 +1,7 @@
6 # SPDX-License-Identifier: MIT
8 [build-system]
9 -requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
10 +requires = ["hatchling"]
11 build-backend = "hatchling.build"
14 @@ -26,7 +26,8 @@ classifiers = [
15 "Typing :: Typed",
17 dependencies = ["importlib_metadata;python_version<'3.8'"]
18 -dynamic = ["version", "readme"]
19 +dynamic = ["readme"]
20 +version = "@version@"
22 [project.optional-dependencies]
23 tests-no-zope = [
24 @@ -67,50 +68,9 @@ Changelog = "https://www.attrs.org/en/stable/changelog.html"
25 Funding = "https://github.com/sponsors/hynek"
26 Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi"
29 -[tool.hatch.version]
30 -source = "vcs"
31 -raw-options = { local_scheme = "no-local-version" }
33 [tool.hatch.build.targets.wheel]
34 packages = ["src/attr", "src/attrs"]
36 -[tool.hatch.metadata.hooks.fancy-pypi-readme]
37 -content-type = "text/markdown"
39 -# PyPI doesn't support the <picture> tag.
40 -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
41 -text = """<p align="center">
42 - <a href="https://www.attrs.org/">
43 - <img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" />
44 - </a>
45 -</p>
46 -"""
48 -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
49 -path = "README.md"
50 -start-after = "<!-- teaser-begin -->"
52 -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
53 -text = """
55 -## Release Information
57 -"""
59 -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
60 -path = "CHANGELOG.md"
61 -pattern = "\n(###.+?\n)## "
63 -[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
64 -text = """
66 ----
68 -[Full changelog](https://www.attrs.org/en/stable/changelog.html)
69 -"""
72 # Make coverage play nicely with pytest-xdist.
73 [tool.hatch.build.targets.wheel.hooks.autorun]
74 dependencies = ["hatch-autorun"]