diff --git a/0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch b/0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch new file mode 100644 index 0000000..cda4ff1 --- /dev/null +++ b/0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch @@ -0,0 +1,61 @@ +From cbe20c5d50c40167a0736e4175330b6ba11ca9cd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Budai?= +Date: Wed, 26 Jun 2024 15:46:22 +0200 +Subject: [PATCH] Remove hatch-vcs and hatch-fancy-pypi-readme deps + +These apparently have no effect on the built RPM (I checked manually), +so let's drop them from pyproject.toml, so we can remove them from RHEL. +--- + pyproject.toml | 29 +---------------------------- + 1 file changed, 1 insertion(+), 28 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 26d299a..a2bda8c 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,10 +1,7 @@ + [build-system] +-requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"] ++requires = ["hatchling"] + build-backend = "hatchling.build" + +-[tool.hatch.version] +-source = "vcs" +- + [project] + name = "jsonschema" + description = "An implementation of JSON Schema validation for Python" +@@ -77,30 +74,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] + show_contexts = true + skip_covered = false +-- +2.45.2 + diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 9355eca..d80a0b0 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -12,10 +12,11 @@ jsonschema is an implementation of JSON Schema for Python (supporting Name: python-%{pypi_name} Summary: Implementation of JSON Schema validation for Python Version: 4.19.1 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://github.com/Julian/jsonschema Source0: %{pypi_source} +Patch0: 0001-Remove-hatch-vcs-and-hatch-fancy-pypi-readme-deps.patch BuildArch: noarch BuildRequires: python3-devel @@ -43,7 +44,7 @@ Summary: %{summary} %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 # Requires a checkout of the JSON-Schema-Test-Suite # https://github.com/json-schema-org/JSON-Schema-Test-Suite @@ -71,6 +72,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} trial-3 %{pypi_name} %{_bindir}/jsonschema %changelog +* Wed Jun 26 2024 Ondřej Budai - 4.19.1-5 +- Drop unneeded build dependencies + * Mon Jun 24 2024 Troy Dawson - 4.19.1-4 - Bump release for June 2024 mass rebuild