19 lines
801 B
Diff
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.
|