void-packages/srcpkgs/python3-Twisted/patches/drop-fancy-pypi-readme.patch

34 lines
970 B
Diff

diff --git a/pyproject.toml b/pyproject.toml
index 59b1d48..51f1ac8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,6 @@
[build-system]
requires = [
"hatchling >= 1.10.0",
- "hatch-fancy-pypi-readme >= 22.5.0",
"incremental >= 22.10.0",
]
build-backend = "hatchling.build"
@@ -172,20 +172,6 @@ source = "code"
path = "src/twisted/__init__.py"
search-paths = ["src"]
-[tool.hatch.metadata.hooks.fancy-pypi-readme]
-content-type = "text/x-rst"
-fragments = [
- { path = "README.rst" },
-]
-
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
-# Munge links of the form `NEWS <NEWS.rst>`_ to point at the appropriate
-# location on GitHub so that they function when the long description is
-# displayed on PyPI.
-pattern = '`([^`]+)\s+<(?!https?://)([^>]+)>`_'
-replacement = '`\1 <https://github.com/twisted/twisted/blob/trunk/\2>`_'
-ignore-case = true
-
[tool.hatch.build.targets.wheel]
packages = [
"src/twisted",