build: fix readthedocs build version number

This commit is contained in:
Brian May 2025-03-12 08:52:55 +11:00
parent 7b662536ba
commit 63f94aa6ec
No known key found for this signature in database
GPG Key ID: 2A92599257644AFA

View File

@ -16,7 +16,7 @@
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
import sshuttle.version # NOQA
import sshuttle # NOQA
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@ -56,7 +56,7 @@ copyright = '2016, Brian May'
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = sshuttle.version.version
release = sshuttle.__version__
# The short X.Y version.
version = '.'.join(release.split('.')[:2])