diff --git a/0001-Remove-hatch-vcs.patch b/0001-Remove-hatch-vcs.patch new file mode 100644 index 0000000..8b19349 --- /dev/null +++ b/0001-Remove-hatch-vcs.patch @@ -0,0 +1,33 @@ +From 20ea9c6ff9c334d76466f10cb97c93eb4b91672b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Budai?= +Date: Wed, 26 Jun 2024 17:48:46 +0200 +Subject: [PATCH] Remove hatch-vcs + +It apparently has no effect on the built RPM (I checked manually), +so let's drop it from pyproject.toml, so we can remove it from RHEL. +--- + pyproject.toml | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index c0044e7..91d5035 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,12 +1,10 @@ + [build-system] +-requires = ["hatchling", "hatch-vcs"] ++requires = ["hatchling"] + build-backend = "hatchling.build" + +-[tool.hatch.version] +-source = "vcs" +- + [project] + name = "referencing" ++version = "0.31.1" + description = "JSON Referencing + Python" + readme = "README.rst" + license = {text = "MIT"} +-- +2.45.2 + diff --git a/python-referencing.spec b/python-referencing.spec index 1e0c82e..156fd46 100644 --- a/python-referencing.spec +++ b/python-referencing.spec @@ -7,6 +7,7 @@ Summary: An implementation-agnostic implementation of JSON reference reso License: MIT URL: https://pypi.python.org/pypi/%{srcname} Source: %{pypi_source referencing} +Patch0: 0001-Remove-hatch-vcs.patch BuildArch: noarch