From 0fb9c270f21a0b3447f15bfb1b437f9b2a9d7b65 Mon Sep 17 00:00:00 2001 From: Juliana Cardozo Date: Wed, 17 Jun 2026 12:03:05 -0300 Subject: [PATCH 1/2] fix docs conf.py --- docs/conf.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 61051b15..97bc26ee 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -83,16 +83,12 @@ # # The short X.Y version. try: - import networkapi - version = networkapi.VERSION -except (ImportError, AttributeError): + with open(os.path.join(dirname(dirname(__file__)), 'version.txt')) as f: + version = f.read().strip() +except (IOError, OSError): version = '3.14.11' # The full version, including alpha/beta/rc tags. -try: - import networkapi - release = networkapi.VERSION -except (ImportError, AttributeError): - release = '3.14.11' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. From a7442ab5c4a8cf4619e01cddc3da0ed383ea987f Mon Sep 17 00:00:00 2001 From: Juliana Cardozo Date: Wed, 17 Jun 2026 12:05:16 -0300 Subject: [PATCH 2/2] fix docs conf.py --- docs/conf.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 97bc26ee..161943dc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -82,13 +82,11 @@ # built documents. # # The short X.Y version. -try: - with open(os.path.join(dirname(dirname(__file__)), 'version.txt')) as f: - version = f.read().strip() -except (IOError, OSError): - version = '3.14.11' +#version = networkapi.VERSION +version = '3.14.11' # The full version, including alpha/beta/rc tags. -release = version +#release = networkapi.VERSION +release = '3.14.11' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.