Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sphinx-autodoc-typehints for 
openSUSE:Factory checked in at 2021-04-24 23:09:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinx-autodoc-typehints (Old)
 and      /work/SRC/openSUSE:Factory/.python-sphinx-autodoc-typehints.new.12324 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sphinx-autodoc-typehints"

Sat Apr 24 23:09:03 2021 rev:7 rq:888210 version:1.11.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-sphinx-autodoc-typehints/python-sphinx-autodoc-typehints.changes
  2021-04-23 17:51:06.618844173 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sphinx-autodoc-typehints.new.12324/python-sphinx-autodoc-typehints.changes
       2021-04-24 23:10:14.183486717 +0200
@@ -1,0 +2,8 @@
+Sat Apr 24 14:11:17 UTC 2021 - Matej Cepl <[email protected]>
+
+- Remove no-net-tests.patch as adding the fixed
+  python-sphinx-autodoc-typehints-system-object.inv.patch 
+  makes tests requiring network working
+  (gh#agronholm/sphinx-autodoc-typehints#174).
+
+-------------------------------------------------------------------

Old:
----
  no-net-tests.patch

New:
----
  python-sphinx-autodoc-typehints-system-object.inv.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sphinx-autodoc-typehints.spec ++++++
--- /var/tmp/diff_new_pack.OL8oNe/_old  2021-04-24 23:10:14.643487367 +0200
+++ /var/tmp/diff_new_pack.OL8oNe/_new  2021-04-24 23:10:14.647487373 +0200
@@ -26,9 +26,9 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/agronholm/sphinx-autodoc-typehints
 Source:         
https://files.pythonhosted.org/packages/source/s/sphinx-autodoc-typehints/sphinx-autodoc-typehints-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM no-net-tests.patch 
gh#agronholm/sphinx-autodoc-typehints#174 [email protected]
+# PATCH-FIX-UPSTREAM python-sphinx-autodoc-typehints-system-object.inv.patch 
gh#agronholm/sphinx-autodoc-typehints#174 [email protected]
 # skip network tests
-Patch0:         no-net-tests.patch
+Patch0:         python-sphinx-autodoc-typehints-system-object.inv.patch
 BuildRequires:  %{python_module setuptools >= 36.2.7}
 BuildRequires:  %{python_module setuptools_scm >= 1.7.0}
 BuildRequires:  fdupes
@@ -55,6 +55,7 @@
 
 %build
 %python_build
+%python_expand sed -i -e 's/@PYTHON_VERSION@/%{$python_version}/' 
tests/conftest.py
 
 %install
 %python_install
@@ -62,7 +63,7 @@
 
 %check
 # test_sphinx_output -- too depenedent on sphinx version available
-%pytest -k 'not (test_sphinx_output or network)'
+%pytest -k 'not test_sphinx_output'
 
 %files %{python_files}
 %{python_sitelib}/*

++++++ python-sphinx-autodoc-typehints-system-object.inv.patch ++++++
---
 tests/conftest.py |   13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,5 +1,4 @@
 import os
-import sys
 import pathlib
 import shutil
 
@@ -13,16 +12,8 @@ collect_ignore = ['roots']
 
 @pytest.fixture(scope='session')
 def inv(pytestconfig):
-    cache_path = 
'python{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
-    inv_dict = pytestconfig.cache.get(cache_path, None)
-    if inv_dict is not None:
-        return Inventory(inv_dict)
-
-    print("Downloading objects.inv")
-    url = 
'https://docs.python.org/{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
-    inv = Inventory(url=url)
-    pytestconfig.cache.set(cache_path, inv.json_dict())
-    return inv
+    inv_dict = 
'/usr/share/doc/packages/python@PYTHON_VERSION@/html/objects.inv'
+    return Inventory(inv_dict)
 
 
 @pytest.fixture(autouse=True)

Reply via email to