public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-jmespath] rawhide: Convert to pyproject RPM macros (rhbz#2377823)
@ 2026-11-07 18:05
0 siblings, 0 replies; only message in thread
From: @ 2026-11-07 18:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-jmespath
Branch : rawhide
Commit : 8aa39c6e1bbe5106248c87a9bbf66204f00ddd9a
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-11-04T20:16:58+01:00
Stats : +13/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-jmespath/c/8aa39c6e1bbe5106248c87a9bbf66204f00ddd9a?branch=rawhide
Log:
Convert to pyproject RPM macros (rhbz#2377823)
---
diff --git a/python-jmespath.spec b/python-jmespath.spec
index b5242a5..0751476 100644
--- a/python-jmespath.spec
+++ b/python-jmespath.spec
@@ -2,7 +2,7 @@
Name: python-%{pypi_name}
Version: 1.0.1
-Release: 16%{?dist}
+Release: 17%{?dist}
Summary: JSON Matching Expressions
License: MIT
@@ -16,11 +16,8 @@ a JSON document.
%package -n python3-%{pypi_name}
Summary: JSON Matching Expressions
-%{?python_provide:%python_provide python3-%{pypi_name}}
-%{?python_provide:%python_provide python-%{pypi_name}}
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
BuildRequires: python3-pytest
%if %{undefined rhel}
@@ -35,27 +32,32 @@ a JSON document.
%prep
%setup -q -n jmespath.py-%{version}
-rm -rf %{pypi_name}.egg-info
+
+%generate_buildrequires
+%pyproject_buildrequires
%build
-%py3_build
+%pyproject_wheel
%install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l %{pypi_name}
%check
+%pyproject_check_import
+
# RHEL does not have python3-hypothesis. Only one file in the upstream repo
# depends on hypothesis, so we can omit this dependency for RHEL.
%pytest %{?rhel:--ignore=extra/test_hypothesis.py}
-%files -n python3-%{pypi_name}
+%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
-%license LICENSE.txt
%{_bindir}/jp.py
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
+* Wed Nov 04 2026 Miro Hrončok <miro@hroncok.cz> - 1.0.1-17
+- Convert to pyproject RPM macros (rhbz#2377823)
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-07 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 18:05 [rpms/python-jmespath] rawhide: Convert to pyproject RPM macros (rhbz#2377823)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox