void-packages/srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch
2024-03-05 03:31:02 -05:00

38 lines
1.4 KiB
Diff

diff --git a/pyproject.toml b/pyproject.toml
index aba4d03..d2af96e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
-requires = ['hatchling', 'hatch-fancy-pypi-readme>=22.5.0']
+requires = ['hatchling']
build-backend = 'hatchling.build'
[tool.hatch.version]
diff --git a/pyproject.toml b/pyproject.toml
index d2af96e..5ccd6f6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -128,22 +128,6 @@ Funding = 'https://github.com/sponsors/samuelcolvin'
Source = 'https://github.com/pydantic/pydantic'
Changelog = 'https://docs.pydantic.dev/latest/changelog/'
-[tool.hatch.metadata.hooks.fancy-pypi-readme]
-content-type = 'text/markdown'
-# construct the PyPI readme from README.md and HISTORY.md
-fragments = [
- {path = "README.md"},
- {text = "\n## Changelog\n\n"},
- {path = "HISTORY.md", pattern = "(.+?)<!-- package description limit -->"},
- {text = "\n... see [here](https://docs.pydantic.dev/changelog/#v0322-2019-08-17) for earlier changes.\n"},
-]
-# convert GitHuB issue/PR numbers and handles to links
-substitutions = [
- {pattern = '(\s+)#(\d+)', replacement = '\1[#\2](https://github.com/pydantic/pydantic/issues/\2)'},
- {pattern = '(\s+)@([\w\-]+)', replacement = '\1[@\2](https://github.com/\2)'},
- {pattern = '@@', replacement = '@'},
-]
-
[tool.pytest.ini_options]
testpaths = 'tests'
xfail_strict = true