forked from pool/python-StrEnum
- Switch to GitHub tarball for tests, and run the testsuite.
- Add patch support-python-312.patch: * Support configparser changes in Python 3.12. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-StrEnum?expand=0&rev=5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-StrEnum
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -22,8 +22,11 @@ Release: 0
|
||||
Summary: An Enum that inherits from str
|
||||
License: MIT
|
||||
URL: https://github.com/irgeek/StrEnum
|
||||
Source: https://files.pythonhosted.org/packages/source/S/StrEnum/StrEnum-%{version}.tar.gz
|
||||
Source: https://github.com/irgeek/StrEnum/archive/refs/tags/v%{version}.tar.gz#/StrEnum-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#irgeek/StrEnum#34
|
||||
Patch0: support-python-312.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
@@ -31,7 +34,6 @@ BuildRequires: python-rpm-macros
|
||||
Suggests: python-sphinx
|
||||
Suggests: python-sphinx_rtd_theme
|
||||
Suggests: python-myst-parser
|
||||
Suggests: python-twine
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -40,6 +42,9 @@ An Enum that inherits from str.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n StrEnum-%{version}
|
||||
# We don't need coverage or linting
|
||||
grep -v '^addopts' pytest.ini > new-pytest.ini
|
||||
mv new-pytest.ini pytest.ini
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
@@ -48,6 +53,9 @@ An Enum that inherits from str.
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user