Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-WebTest for openSUSE:Factory checked in at 2023-05-04 17:09:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-WebTest (Old) and /work/SRC/openSUSE:Factory/.python-WebTest.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-WebTest" Thu May 4 17:09:50 2023 rev:31 rq:1084335 version:3.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-WebTest/python-WebTest.changes 2022-08-20 20:27:42.585194019 +0200 +++ /work/SRC/openSUSE:Factory/.python-WebTest.new.1533/python-WebTest.changes 2023-05-04 17:10:02.064175210 +0200 @@ -1,0 +2,7 @@ +Wed May 3 11:41:12 UTC 2023 - Martin Liška <mli...@suse.cz> + +- Do not depend on pkg_resources.get_distribution and build_sphinx + that is gone in Sphinx 7.0 (boo#1211051). +- Add sphinx-7-fix.patch patch. + +------------------------------------------------------------------- New: ---- sphinx-7-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-WebTest.spec ++++++ --- /var/tmp/diff_new_pack.hR8WkD/_old 2023-05-04 17:10:02.624178489 +0200 +++ /var/tmp/diff_new_pack.hR8WkD/_new 2023-05-04 17:10:02.632178536 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-WebTest # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL: https://docs.pylonsproject.org/projects/webtest/ Source: https://files.pythonhosted.org/packages/source/W/WebTest/WebTest-%{version}.tar.gz +Patch0: sphinx-7-fix.patch BuildRequires: %{python_module PasteDeploy} BuildRequires: %{python_module WSGIProxy2} BuildRequires: %{python_module WebOb >= 1.2} @@ -63,10 +64,11 @@ %prep %setup -q -n WebTest-%{version} +%patch0 -p1 %build %python_build -python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo +sphinx-build -b html docs build/sphinx/html && rm build/sphinx/html/.buildinfo %install %python_install ++++++ sphinx-7-fix.patch ++++++ diff --git a/docs/conf.py b/docs/conf.py index 96746bf..fed362e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,9 +59,11 @@ copyright = '2012-%s, Ian Bicking' % thisyear # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. -import pkg_resources -version = pkg_resources.get_distribution(project).version -release = version +import pathlib +lines = (pathlib.Path(__file__).parent.parent / 'PKG-INFO').open().readlines() +line = lines[2] +assert line.startswith('Version: ') +release = line.split(':')[1].strip() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.