From abe244591d87b1545c39f2eb1c0fb397a22f3ebf03715076e693a32a60049afb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 1 Feb 2024 14:09:43 +0000 Subject: [PATCH] - switch to PEP517 / wheel build * Remove use of nose in the tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jmespath?expand=0&rev=53 --- python-jmespath.changes | 7 ++++++- python-jmespath.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-jmespath.changes b/python-jmespath.changes index c8d0b81..647cf4d 100644 --- a/python-jmespath.changes +++ b/python-jmespath.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 1 14:09:31 UTC 2024 - Dirk Müller + +- switch to PEP517 / wheel build + ------------------------------------------------------------------- Sun Jun 11 14:05:39 UTC 2023 - ecsos @@ -20,7 +25,7 @@ Sat Sep 17 15:41:47 UTC 2022 - Dirk Müller Mon Sep 27 03:03:07 UTC 2021 - Steve Kowalik - Add patch remove-nose.patch: - * Remove use of nose in the tests. + * Remove use of nose in the tests. ------------------------------------------------------------------- Mon May 31 08:00:06 UTC 2021 - pgajdos@suse.com diff --git a/python-jmespath.spec b/python-jmespath.spec index d09f584..c9bfe56 100644 --- a/python-jmespath.spec +++ b/python-jmespath.spec @@ -1,7 +1,7 @@ # # spec file for package python-jmespath # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,14 +26,16 @@ URL: https://github.com/jmespath/jmespath.py Source: https://github.com/jmespath/jmespath.py/archive/refs/tags/%{version}.tar.gz#/jmespath-%{version}.tar.gz # Testing BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pip} BuildRequires: %{python_module ply >= 3.4} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-ply >= 3.4 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -72,10 +74,10 @@ The expression: foo.*.name will return ["one", "two"]. %autosetup -p1 -n jmespath.py-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp %python_clone -a %{buildroot}%{_bindir}/jp %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -94,7 +96,7 @@ mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp %license LICENSE.txt %doc README.rst %{python_sitelib}/jmespath -%{python_sitelib}/jmespath-%{version}*-info +%{python_sitelib}/jmespath-%{version}.dist-info %python_alternative %{_bindir}/jp %changelog