forked from pool/python-WebTest
- 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
This commit is contained in:
18
sphinx-7-fix.patch
Normal file
18
sphinx-7-fix.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user