From feffbd48437da49f94f4f09f05c09ad85205af02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 18 Aug 2022 18:12:31 +0200 Subject: [PATCH] python3-jsonschema: update to 4.14.0. --- ...01-patch-out-hatch-fancy-pypi-readme.patch | 55 +++++++++++++++++++ srcpkgs/python3-jsonschema/template | 6 +- 2 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/python3-jsonschema/patches/0001-patch-out-hatch-fancy-pypi-readme.patch diff --git a/srcpkgs/python3-jsonschema/patches/0001-patch-out-hatch-fancy-pypi-readme.patch b/srcpkgs/python3-jsonschema/patches/0001-patch-out-hatch-fancy-pypi-readme.patch new file mode 100644 index 000000000000..611e3bbbada9 --- /dev/null +++ b/srcpkgs/python3-jsonschema/patches/0001-patch-out-hatch-fancy-pypi-readme.patch @@ -0,0 +1,55 @@ +From 51aaa505d9963b6424d567f1fc704194fa890a67 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= + +Date: Sun, 21 Aug 2022 13:53:37 +0200 +Subject: [PATCH] patch out hatch-fancy-pypi-readme + +--- + pyproject.toml | 26 +------------------------- + 1 file changed, 1 insertion(+), 25 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index f5fe8db..7ae8318 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"] ++requires = ["hatchling", "hatch-vcs"] + build-backend = "hatchling.build" + + [tool.hatch.version] +@@ -76,30 +76,6 @@ Tidelift = "https://tidelift.com/subscription/pkg/pypi-jsonschema?utm_source=pyp + Changelog = "https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst" + Source = "https://github.com/python-jsonschema/jsonschema" + +-[tool.hatch.metadata.hooks.fancy-pypi-readme] +-content-type = "text/x-rst" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.rst" +-end-before = ".. start cut from PyPI" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.rst" +-start-after = ".. end cut from PyPI\n\n\n" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-text = """ +- +- +-Release Information +-------------------- +- +-""" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "CHANGELOG.rst" +-pattern = "(^v.+?)\nv" +- + [tool.isort] + from_first = true + include_trailing_comma = true +-- +2.37.2 + diff --git a/srcpkgs/python3-jsonschema/template b/srcpkgs/python3-jsonschema/template index 24b7c5080099..72e143e63ac5 100644 --- a/srcpkgs/python3-jsonschema/template +++ b/srcpkgs/python3-jsonschema/template @@ -1,6 +1,6 @@ # Template file for 'python3-jsonschema' pkgname=python3-jsonschema -version=4.9.1 +version=4.14.0 revision=1 wrksrc="jsonschema-${version}" build_style=python3-pep517 @@ -13,14 +13,14 @@ license="MIT" homepage="https://github.com/Julian/jsonschema" changelog="https://raw.githubusercontent.com/Julian/jsonschema/master/CHANGELOG.rst" distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz" -checksum=408c4c8ed0dede3b268f7a441784f74206380b04f93eb2d537c7befb3df3099f +checksum=15062f4cc6f591400cd528d2c355f2cfa6a57e44c820dc783aee5e23d36a831f do_check() { rm -rf *.dist-info tmp # remove artifacts from previous unsuccessful check run pip install --no-deps --target tmp ./jsonschema-$version-py3-none-any.whl rm tmp/jsonschema/tests -rf mv tmp/*.dist-info . - PYTHONPATH=. pytest + PYTHONPATH=. pytest --deselect jsonschema/tests/test_jsonschema_test_suite.py::test_suite_bug rm -rf *.dist-info tmp }