Skip to content

Commit

Permalink
Fix version finding in docs/source/conf.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Aug 11, 2022
1 parent 21b9ff9 commit ba27b61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def read(*names, **kwargs):

def find_version(*file_paths):
version_file = read(*file_paths)
print(version_file)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
Expand All @@ -43,11 +44,11 @@ def find_version(*file_paths):
# -- Project information -----------------------------------------------------

project = "linear_operator"
copyright = "2020, Cornellius GP"
copyright = "2022, Cornellius GP"
author = "Cornellius GP"

# The full version, including alpha/beta/rc tags
version = find_version("linear_operator", "__init__.py")
version = find_version("linear_operator", "version.py")
release = version


Expand Down

0 comments on commit ba27b61

Please sign in to comment.