Drop unneeded build dependencies

This commit is contained in:
Ondřej Budai 2024-06-26 16:49:52 +02:00
parent 56b96c2a93
commit 95b8005202
No known key found for this signature in database
GPG Key ID: 2EDC02DB69E9C992
2 changed files with 67 additions and 2 deletions

View File

@ -0,0 +1,61 @@
From cbe20c5d50c40167a0736e4175330b6ba11ca9cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Budai?= <ondrej@budai.cz>
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

View File

@ -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 <obudai@redhat.com> - 4.19.1-5
- Drop unneeded build dependencies
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.19.1-4
- Bump release for June 2024 mass rebuild