From b5edc49f9196bf8385e4daab3b2d5e1390b3b44e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Wed, 26 Jun 2024 17:41:00 +0200 Subject: [PATCH] Drop unneeded build dependencies --- 0001-Remove-hatch-vcs.patch | 30 +++++++++++++++++++++++++++ python-jsonschema-specifications.spec | 8 +++++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 0001-Remove-hatch-vcs.patch diff --git a/0001-Remove-hatch-vcs.patch b/0001-Remove-hatch-vcs.patch new file mode 100644 index 0000000..0e9fffe --- /dev/null +++ b/0001-Remove-hatch-vcs.patch @@ -0,0 +1,30 @@ +From d490ba7bac5ac11fb9416d02ed6c45fde61956be Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Budai?= +Date: Wed, 26 Jun 2024 17:12:46 +0200 +Subject: [PATCH] Remove hatch-vcs + +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 | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 70132d9..ab839b8 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,10 +1,7 @@ + [build-system] +-requires = ["hatchling", "hatch-vcs"] ++requires = ["hatchling"] + build-backend = "hatchling.build" + +-[tool.hatch.version] +-source = "vcs" +- + [project] + name = "jsonschema-specifications" + description = "The JSON Schema meta-schemas and vocabularies, exposed as a Registry" +-- +2.45.2 + diff --git a/python-jsonschema-specifications.spec b/python-jsonschema-specifications.spec index 3697e27..70cb633 100644 --- a/python-jsonschema-specifications.spec +++ b/python-jsonschema-specifications.spec @@ -15,10 +15,11 @@ referencing-based Schema Registry.} Name: python-%{pypi_name} Summary: JSON Schema meta-schemas and vocabularies, exposed as a Registry Version: 2023.11.2 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: https://github.com/python-jsonschema/jsonschema-specifications Source0: %{pypi_source %{pkg_name}} +Patch0: 0001-Remove-hatch-vcs.patch BuildArch: noarch BuildRequires: python3-devel @@ -58,7 +59,7 @@ Documentation for the JSON Schema specifications %prep -%autosetup -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} -p1 sed -i "/^file:.*/d" docs/requirements.in sed -i "/^pygments-github-lexers/d" docs/requirements.in @@ -107,6 +108,9 @@ rm -rf docs/build/html/.{doctrees,buildinfo} %endif %changelog +* Wed Jun 26 2024 Ondřej Budai - 2023.11.2-5 +- Drop unneeded build dependencies + * Mon Jun 24 2024 Troy Dawson - 2023.11.2-4 - Bump release for June 2024 mass rebuild