14
0
forked from pool/python-requre

Accepting request 1099033 from devel:languages:python

- Remove BuildRequires on setuptools_scm_git_archive.
- Switch to pyproject macros.
- Add missing Requires on update-alternatives.
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1099033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requre?expand=0&rev=3
This commit is contained in:
2023-07-18 19:55:14 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 7 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jul 17 07:00:01 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Remove BuildRequires on setuptools_scm_git_archive.
- Switch to pyproject macros.
- Add missing Requires on update-alternatives.
- Stop using greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 20 06:04:36 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com> Mon Jun 20 06:04:36 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-requre # spec file for package python-requre
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-requre Name: python-requre
Version: 0.8.2 Version: 0.8.2
Release: 0 Release: 0
@@ -25,9 +23,10 @@ Summary: Python libray for storing and using objects for testing
License: MIT License: MIT
URL: https://github.com/packit-service/requre URL: https://github.com/packit-service/requre
Source: https://files.pythonhosted.org/packages/source/r/requre/requre-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/r/requre/requre-%{version}.tar.gz
BuildRequires: %{python_module setuptools_scm_git_archive} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-GitPython Requires: python-GitPython
@@ -35,6 +34,8 @@ Requires: python-PyYAML
Requires: python-click Requires: python-click
Requires: python-requests Requires: python-requests
Suggests: python-pytest Suggests: python-pytest
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module PyYAML}
@@ -60,10 +61,10 @@ sed -i 's/not network_connection_avalilable()/False/' tests/*.py
rm tests/test_E2E_ogr.py rm tests/test_E2E_ogr.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/requre-patch %python_clone -a %{buildroot}%{_bindir}/requre-patch
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -85,6 +86,7 @@ export LANG=en_US.UTF-8
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/requre-patch %python_alternative %{_bindir}/requre-patch
%{python_sitelib}/* %{python_sitelib}/requre
%{python_sitelib}/requre-%{version}.dist-info
%changelog %changelog