[packages/python3-sphobjinv] - up to 2.3.1.2
baggins
baggins at pld-linux.org
Sat Apr 5 23:51:39 CEST 2025
commit 0af42857ba946b4c9cc71be18b88d1471f8bd9e8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Apr 6 00:51:25 2025 +0200
- up to 2.3.1.2
no-latin1-test.patch | 27 +++++++++++++++++++++++++++
python3-sphobjinv.spec | 12 +++++++-----
2 files changed, 34 insertions(+), 5 deletions(-)
---
diff --git a/python3-sphobjinv.spec b/python3-sphobjinv.spec
index 1cd5b53..3298f98 100644
--- a/python3-sphobjinv.spec
+++ b/python3-sphobjinv.spec
@@ -6,13 +6,14 @@
Summary: Manipulate and inspect Sphinx objects.inv files
Summary(pl.UTF-8): Operacje i badanie plików object.inv Sphinksa
Name: python3-sphobjinv
-Version: 2.3.1
-Release: 3
+Version: 2.3.1.2
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/sphobjinv/
Source0: https://files.pythonhosted.org/packages/source/s/sphobjinv/sphobjinv-%{version}.tar.gz
-# Source0-md5: 0c2bef8c17e65785b266fbbf3b3390e8
+# Source0-md5: 069226ea6bb15ed387360303961919fb
+Patch0: no-latin1-test.patch
URL: https://pypi.org/project/sphobjinv/
BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
@@ -20,7 +21,7 @@ BuildRequires: python3-setuptools
BuildRequires: python3-Sphinx >= 1.6
BuildRequires: python3-attrs >= 19.2
BuildRequires: python3-certifi
-BuildRequires: python3-dictdiffer
+BuildRequires: python3-dictdiffer >= 0.9.0
BuildRequires: python3-jsonschema >= 3.0
BuildRequires: python3-pytest >= 4.4.0
BuildRequires: python3-pytest-check >= 1.1.2
@@ -58,6 +59,7 @@ Dokumentacja API modułu Pythona sphobjinv.
%prep
%setup -q -n sphobjinv-%{version}
+%patch -P0 -p1
%build
%py3_build
@@ -85,7 +87,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS.md CHANGELOG.md LICENSE.txt README.rst
+%doc AUTHORS.md CHANGELOG.md LICENSE.txt README.md
%attr(755,root,root) %{_bindir}/sphobjinv
%{py3_sitescriptdir}/sphobjinv
%{py3_sitescriptdir}/sphobjinv-%{version}-py*.egg-info
diff --git a/no-latin1-test.patch b/no-latin1-test.patch
new file mode 100644
index 0000000..1532e41
--- /dev/null
+++ b/no-latin1-test.patch
@@ -0,0 +1,27 @@
+--- sphobjinv-2.3.1.2/tests/test_valid_objects.py.orig 2025-04-06 00:45:17.546647320 +0200
++++ sphobjinv-2.3.1.2/tests/test_valid_objects.py 2025-04-06 00:49:10.743314043 +0200
+@@ -159,24 +159,3 @@
+ def latin_1_id(val):
+ """Provide the value-and-character string for a latin-1 int value."""
+ return str(val) + "_" + int_to_latin_1(val)
+-
+-
+- at pytest.mark.parametrize("leadint", range(255), ids=latin_1_id)
+-def test_name_lead_chars(misc_info, sphinx_ifile_data_count, leadint):
+- """Screen for valid/invalid first characters."""
+- name = int_to_latin_1(leadint) + " foo"
+-
+- # Expect only two fail cases, newline and '#'
+- if leadint in (10, 35):
+- pytest.xfail("Known invalid name lead char")
+-
+- test_dataobjstr_valid_objects(
+- misc_info,
+- sphinx_ifile_data_count,
+- name=name,
+- domain="py",
+- role="data",
+- prio=1,
+- uri="data.html#$",
+- dispname="-",
+- )
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphobjinv.git/commitdiff/0af42857ba946b4c9cc71be18b88d1471f8bd9e8
More information about the pld-cvs-commit
mailing list