forked from pool/python-StrEnum
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f6e160584b | |||
| 43b7efdc69 | |||
| d4f4aee2eb | |||
| b8ed64a072 |
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:878fb5ab705442070e4dd1929bb5e2249511c0bcf2b0eeacf3bcd80875c82eff
|
oid sha256:ab442e918760a39a3b07e7923c128ff13a0bbebc6a173cda67237acb738d7e49
|
||||||
size 23384
|
size 31544
|
||||||
|
|||||||
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 26 00:54:11 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Lowercase metadata directory name.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 10 02:03:49 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to GitHub tarball for tests, and run the testsuite.
|
||||||
|
- Add patch support-python-312.patch:
|
||||||
|
* Support configparser changes in Python 3.12.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 30 12:14:47 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Tue Jan 30 12:14:47 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-StrEnum
|
# 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
|
# 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
|
||||||
@@ -22,8 +22,11 @@ Release: 0
|
|||||||
Summary: An Enum that inherits from str
|
Summary: An Enum that inherits from str
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/irgeek/StrEnum
|
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 pip}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -31,7 +34,6 @@ BuildRequires: python-rpm-macros
|
|||||||
Suggests: python-sphinx
|
Suggests: python-sphinx
|
||||||
Suggests: python-sphinx_rtd_theme
|
Suggests: python-sphinx_rtd_theme
|
||||||
Suggests: python-myst-parser
|
Suggests: python-myst-parser
|
||||||
Suggests: python-twine
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -40,6 +42,9 @@ An Enum that inherits from str.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n StrEnum-%{version}
|
%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
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -48,10 +53,13 @@ An Enum that inherits from str.
|
|||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/strenum
|
%{python_sitelib}/strenum
|
||||||
%{python_sitelib}/StrEnum-%{version}.dist-info
|
%{python_sitelib}/strenum-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
25
support-python-312.patch
Normal file
25
support-python-312.patch
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
From 896bef1b7e4a50c8b53d90c8d2fb5c0164f08ecd Mon Sep 17 00:00:00 2001
|
||||||
|
From: Fabian Affolter <mail@fabian-affolter.ch>
|
||||||
|
Date: Wed, 17 Jan 2024 17:15:30 +0100
|
||||||
|
Subject: [PATCH] Replace SafeConfigParser and readfp
|
||||||
|
|
||||||
|
---
|
||||||
|
versioneer.py | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/versioneer.py b/versioneer.py
|
||||||
|
index 64fea1c..3aa5da3 100644
|
||||||
|
--- a/versioneer.py
|
||||||
|
+++ b/versioneer.py
|
||||||
|
@@ -339,9 +339,9 @@ def get_config_from_root(root):
|
||||||
|
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
|
||||||
|
# the top of versioneer.py for instructions on writing your setup.cfg .
|
||||||
|
setup_cfg = os.path.join(root, "setup.cfg")
|
||||||
|
- parser = configparser.SafeConfigParser()
|
||||||
|
+ parser = configparser.ConfigParser()
|
||||||
|
with open(setup_cfg, "r") as f:
|
||||||
|
- parser.readfp(f)
|
||||||
|
+ parser.read_file(f)
|
||||||
|
VCS = parser.get("versioneer", "VCS") # mandatory
|
||||||
|
|
||||||
|
def get(parser, name):
|
||||||
Reference in New Issue
Block a user