forked from pool/python-bidict
Accepting request 1144443 from devel:languages:python
- Add patch support-python-312.patch: * Cope with different TypeError raised. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1144443 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bidict?expand=0&rev=15
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 6 05:38:41 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-python-312.patch:
|
||||
* Cope with different TypeError raised.
|
||||
- No more greedy globs in %files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 15 13:44:03 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ Summary: Bidirectional map implementation for Python
|
||||
License: MPL-2.0
|
||||
URL: https://github.com/jab/bidict
|
||||
Source: https://github.com/jab/bidict/archive/refs/tags/v%{version}.tar.gz#/bidict-%{version}-gh.tar.gz
|
||||
# PATCH-FIX-OPENSUSE Upstream has since rewritten the test suite, drop on update
|
||||
Patch0: support-python-312.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
@@ -61,6 +63,7 @@ export LANG=en_US.UTF-8
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.rst README.rst docs/*.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/bidict
|
||||
%{python_sitelib}/bidict-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
13
support-python-312.patch
Normal file
13
support-python-312.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: bidict-0.22.1/tests/test_class_relationships.py
|
||||
===================================================================
|
||||
--- bidict-0.22.1.orig/tests/test_class_relationships.py
|
||||
+++ bidict-0.22.1/tests/test_class_relationships.py
|
||||
@@ -123,7 +123,7 @@ def test_issubclass_internal() -> None:
|
||||
|
||||
def test_abstract_bimap_init_fails() -> None:
|
||||
"""Instantiating `AbstractBimap` should fail with expected TypeError."""
|
||||
- excmatch = r"Can't instantiate abstract class AbstractBimap with abstract methods .* inverse"
|
||||
+ excmatch = r"Can't instantiate abstract class AbstractBimap with.*abstract methods .*inverse"
|
||||
with pytest.raises(TypeError, match=excmatch):
|
||||
AbstractBimap() # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user