Files
python-WebTest/sphinx-7-fix.patch
Dirk Mueller d47b8c0b36 - Update to 3.0.1
* Multiple file input support.
  * Drop support for Python 3.8 and bellow
  * Allows the TestResponse to follow customised onclick buttons
  * Response.pyquery object now use the html parser.
  * You can use the Response.PyQuery method to customize pyquery init.
  * Various docs / testing improvments
  * Rename "master" git branch to "main".
- Refresh sphinx-7-fix.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=63
2024-11-07 13:19:34 +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.