Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
python-WebTest
sphinx-7-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sphinx-7-fix.patch of Package python-WebTest
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.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor