diff --git a/srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch b/srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch new file mode 100644 index 00000000000..6bc5bcf6f33 --- /dev/null +++ b/srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch @@ -0,0 +1,38 @@ +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 = "(.+?)"}, +- {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 diff --git a/srcpkgs/python3-pydantic/template b/srcpkgs/python3-pydantic/template index 8a09f0e39bc..70c647c424b 100644 --- a/srcpkgs/python3-pydantic/template +++ b/srcpkgs/python3-pydantic/template @@ -1,20 +1,22 @@ # Template file for 'python3-pydantic' pkgname=python3-pydantic -version=1.10.7 -revision=2 -build_style=python3-module -# added to stop test failing due to DeprecationWarning on pkg_resources import -make_check_args="-p no:warnings" -hostmakedepends="python3-setuptools" -depends="python3-typing_extensions" -checkdepends="${depends} python3-pytest python3-pytest-mock" +version=2.6.3 +revision=1 +build_style=python3-pep517 +# requires unpackaged pytest-examples, cloudpickle +make_check_args="--ignore=tests/test_docs.py --ignore=tests/test_pickle.py" +hostmakedepends="hatchling" +depends="python3-typing_extensions python3-annotated-types + python3-pydantic-core" +checkdepends="${depends} python3-pytest python3-pytest-benchmark + python3-pytest-mock python3-dirty-equals python3-Faker python3-email-validator" short_desc="Data parsing and validation using Python type hints" maintainer="Joel Beckmeyer " license="MIT" homepage="https://github.com/pydantic/pydantic" changelog="https://raw.githubusercontent.com/pydantic/pydantic/main/HISTORY.md" distfiles="${PYPI_SITE}/p/pydantic/pydantic-${version}.tar.gz" -checksum=cfc83c0678b6ba51b0532bea66860617c4cd4251ecf76e9846fa5a9f3454e97e +checksum=e07805c4c7f5c6826e33a1d4c9d47950d7eaf34868e2690f8594d2e30241f11f post_install() { vlicense LICENSE diff --git a/srcpkgs/python3-pydantic/update b/srcpkgs/python3-pydantic/update index 2c857beffb2..225af1026a1 100644 --- a/srcpkgs/python3-pydantic/update +++ b/srcpkgs/python3-pydantic/update @@ -1 +1 @@ -ignore="*a*" +ignore="*[ab]*"