Accepting request 1143395 from devel:languages:python

- switch to PEP517 / wheel build

  * Remove use of nose in the tests.

OBS-URL: https://build.opensuse.org/request/show/1143395
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jmespath?expand=0&rev=23
This commit is contained in:
Ana Guerrero 2024-02-02 14:44:47 +00:00 committed by Git OBS Bridge
commit 192a520467
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 1 14:09:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
- switch to PEP517 / wheel build
-------------------------------------------------------------------
Sun Jun 11 14:05:39 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@ -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