1
0

3 Commits

2 changed files with 21 additions and 29 deletions

View File

@@ -1,26 +1,7 @@
-------------------------------------------------------------------
Mon Feb 26 12:47:18 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
Wed Feb 5 15:27:05 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Remove the forced switch to Python 3.11 in SLE 15 SP4 and
openSUSE Leap 15.4 and later. However the updated version will only
be available as a Python 3.11 build. (jsc#PED-4514)
-------------------------------------------------------------------
Thu Feb 1 21:08:03 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Switch users of SLE 15 SP4 and openSUSE Leap 15.4 and later to the
Python 3.11 build (jsc#PCT-371). The Python 3.6 build will no longer be
maintained
-------------------------------------------------------------------
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>
- Add %{?sle15_python_module_pythons}
- Use libalternatives instead of update-alternatives, bsc#1235786
-------------------------------------------------------------------
Fri Feb 10 09:10:10 UTC 2023 - Matej Cepl <mcepl@suse.com>
@@ -39,7 +20,7 @@ Sat Sep 17 15:41:47 UTC 2022 - Dirk Müller <dmueller@suse.com>
Mon Sep 27 03:03:07 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- 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

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-jmespath
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,8 +15,12 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-jmespath
Version: 1.0.1
Release: 0
@@ -26,16 +30,19 @@ 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
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
%python_subpackages
@@ -74,10 +81,10 @@ The expression: foo.*.name will return ["one", "two"].
%autosetup -p1 -n jmespath.py-%{version}
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
%python_clone -a %{buildroot}%{_bindir}/jp
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -86,6 +93,10 @@ mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
# hangs on python 3.8 with pytest
%pyunittest discover -v
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative jp
%post
%python_install_alternative jp
@@ -96,7 +107,7 @@ mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/jmespath
%{python_sitelib}/jmespath-%{version}.dist-info
%{python_sitelib}/jmespath-%{version}*-info
%python_alternative %{_bindir}/jp
%changelog