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>
@ -54,24 +60,24 @@ Thu Apr 13 22:44:27 UTC 2023 - Matej Cepl <mcepl@suse.com>
Tue Apr 12 02:32:28 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch remove-mock.patch:
* Use stdlib mock, not external mock.
* Use stdlib mock, not external mock.
- Drop mock BuildRequires.
-------------------------------------------------------------------
Tue Dec 14 00:08:20 UTC 2021 - Ben Greiner <code@bnavigator.de>
- refresh migrate-to-pytest.patch: remove pytest-relaxed
- refresh migrate-to-pytest.patch: remove pytest-relaxed
-------------------------------------------------------------------
Mon Sep 13 06:17:58 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch migrate-to-pytest.patch:
* Migrate to pytest, lightly rebased from upstream.
* Migrate to pytest, lightly rebased from upstream.
-------------------------------------------------------------------
Mon May 25 21:27:01 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Restore semanticversioning.patch to allow semantic_version >= 2.7
- Restore semanticversioning.patch to allow semantic_version >= 2.7
gh#bitprophet/releases#84
gh#bitprophet/releases#86
- remove color printout in tests

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
# 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
# PATCH-FIX-OPENSUSE remove-icecream.patch to remove icecream dependency
Patch1: remove-icecream.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 4
@ -72,17 +74,18 @@ Specifically:
%autosetup -p1 -n releases-%{version}
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest tests
# https://github.com/bitprophet/releases/issues/103
%pytest tests -k "not unused_kwargs_become_releases_config_options"
%endif
%if !%{with test}
@ -90,7 +93,7 @@ Specifically:
%doc README.rst
%license LICENSE
%{python_sitelib}/releases
%{python_sitelib}/releases-%{version}*-info
%{python_sitelib}/releases-%{version}.dist-info
%endif
%changelog