diff --git a/docs/conf.py b/docs/conf.py index 18a29b93..42153417 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,9 +49,9 @@ # built documents. # here = os.path.abspath(os.path.dirname(__file__)) -with io.open(os.path.join(here, '..', 'wheel', '__init__.py'), +with io.open(os.path.join(here, '..', 'src', 'wheel', '__init__.py'), encoding='utf8') as version_file: - match = re.search(r'__version__ = "((\d+\.\d+\.\d+).*)"', + match = re.search(r"__version__ = '((\d+\.\d+\.\d+).*)'", version_file.read()) # The short X.Y version. version = match.group(2)