Sync from SUSE:SLFO:Main python-releases revision 645ca113d188537c4fcc7946c07f7f6d

This commit is contained in:
Adrian Schröter 2024-12-13 12:19:09 +01:00
parent 1ef8c91feb
commit 981a807585
2 changed files with 19 additions and 10 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 2 20:37:33 UTC 2024 - Dirk Müller <dmueller@suse.com>
- switch to PEP517 build
- skip one failing test
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 12 08:15:25 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com> Fri May 12 08:15:25 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file # spec file for package python-releases
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 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
@ -35,7 +35,9 @@ Source: https://files.pythonhosted.org/packages/source/r/releases/releas
Patch0: semanticversioning.patch Patch0: semanticversioning.patch
# PATCH-FIX-OPENSUSE remove-icecream.patch to remove icecream dependency # PATCH-FIX-OPENSUSE remove-icecream.patch to remove icecream dependency
Patch1: remove-icecream.patch Patch1: remove-icecream.patch
BuildRequires: %{python_module pip}
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-Sphinx >= 4 Requires: python-Sphinx >= 4
@ -72,17 +74,18 @@ Specifically:
%autosetup -p1 -n releases-%{version} %autosetup -p1 -n releases-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%if !%{with test} %if !%{with test}
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
%if %{with test} %if %{with test}
%check %check
%pytest tests # https://github.com/bitprophet/releases/issues/103
%pytest tests -k "not unused_kwargs_become_releases_config_options"
%endif %endif
%if !%{with test} %if !%{with test}
@ -90,7 +93,7 @@ Specifically:
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/releases %{python_sitelib}/releases
%{python_sitelib}/releases-%{version}*-info %{python_sitelib}/releases-%{version}.dist-info
%endif %endif
%changelog %changelog