15
0
Files
python-WebTest/sphinx-7-fix.patch
Markéta Machová 6fd73d0a70 - Update to 3.0.2
* Bump waitress min version to 3.0.2
- Update BuildRequires from setup.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=66
2025-01-09 12:19:19 +00:00

19 lines
801 B
Diff

diff -Nru webtest-3.0.1.orig/docs/conf.py webtest-3.0.1/docs/conf.py
--- webtest-3.0.1.orig/docs/conf.py 2024-08-30 08:15:19.000000000 +0000
+++ webtest-3.0.1/docs/conf.py 2024-11-07 12:39:25.092026893 +0000
@@ -59,9 +59,11 @@
# 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 importlib.metadata
-version = importlib.metadata.version(project)
-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.