python3-jsonschema: update to 4.23.0.

This commit is contained in:
Gonzalo Tornaría 2024-08-03 14:42:13 -03:00 committed by Andrew J. Hesford
parent a1f7129fd9
commit 790a362fd5
3 changed files with 6 additions and 88 deletions

View File

@ -1,55 +0,0 @@
From 65fc53be6b8330ddc65cb0f345ee3cd5af38e189 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Sun, 21 Aug 2022 13:53:37 +0200
Subject: [PATCH 1/2] 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.coverage.html]
branch = true
source = ["jsonschema"]
--
2.37.3

View File

@ -1,30 +0,0 @@
From f44c0f8600c01a97f0a093adeb446b7c68511a33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Wed, 14 Sep 2022 10:48:39 +0200
Subject: [PATCH 2/2] don't install tests and benchmarks
---
pyproject.toml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pyproject.toml b/pyproject.toml
index 7ae8318..9dfc3ef 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,6 +5,12 @@ build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
+[tool.hatch.build]
+exclude = [
+ "jsonschema/tests",
+ "jsonschema/benchmarks",
+]
+
[project]
name = "jsonschema"
description = "An implementation of JSON Schema validation for Python"
--
2.37.3

View File

@ -1,9 +1,9 @@
# Template file for 'python3-jsonschema'
pkgname=python3-jsonschema
version=4.22.0
version=4.23.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
hostmakedepends="hatchling hatch-vcs hatch-fancy-pypi-readme"
depends="python3-attrs python3-jsonschema-specifications"
checkdepends="${depends} python3-pytest python3-idna python3-jsonpointer
python3-pip python3-rfc3339-validator python3-rfc3987"
@ -13,8 +13,11 @@ 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=5b22d434a45935119af990552c862e5d6d564e8f6601206b305a61fdf661a2b7
checksum=d71497fef26351a33265337fa77ffeb82423f3ea21283cd9467bb03999266bc4
post_install() {
vlicense COPYING LICENSE
# don't install tests and benchmarks
rm -r ${DESTDIR}/${py3_sitelib}/jsonschema/tests
rm -r ${DESTDIR}/${py3_sitelib}/jsonschema/benchmarks
}