File tree 3 files changed +20
-4
lines changed
3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,21 @@ jobs:
125
125
export PYTHONPATH="$PWD"
126
126
python examples/monitoring_and_alerting.py
127
127
python examples/buckets_management.py
128
+ check-sphinx :
129
+ docker :
130
+ - image : *default-python
131
+ environment :
132
+ PIPENV_VENV_IN_PROJECT : true
133
+ steps :
134
+ - checkout
135
+ - run :
136
+ name : Checks that sphinx docs are successfully generated
137
+ command : |
138
+ pip install -e . --user
139
+ pip install sphinx==1.8.5 --user
140
+ pip install sphinx_rtd_theme --user
141
+ cd docs
142
+ python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
128
143
check-aws-lambda-layer :
129
144
docker :
130
145
- image : docker:19
@@ -147,6 +162,7 @@ workflows:
147
162
- check-docstyle
148
163
- check-twine
149
164
- check-examples
165
+ - check-sphinx
150
166
- tests-python :
151
167
name : test-3.6
152
168
- tests-python :
File renamed without changes.
Original file line number Diff line number Diff line change 22
22
from pathlib import Path
23
23
24
24
meta = {}
25
- with open (Path (__file__ ).parent .parent / 'influxdb_client' / '__init__ .py' ) as f :
26
- exec ('\n ' .join (l for l in f if l .startswith ('__ ' )), meta )
25
+ with open (Path (__file__ ).parent .parent / 'influxdb_client' / 'version .py' ) as f :
26
+ exec ('\n ' .join (l for l in f if l .startswith ('CLIENT_VERSION ' )), meta )
27
27
28
28
29
29
def setup (app ):
@@ -37,9 +37,9 @@ def setup(app):
37
37
autoclass_content = 'both'
38
38
39
39
# The short X.Y version
40
- version = meta ['__version__ ' ]
40
+ version = meta ['CLIENT_VERSION ' ]
41
41
# The full version, including alpha/beta/rc tags
42
- release = meta ['__version__ ' ]
42
+ release = meta ['CLIENT_VERSION ' ]
43
43
44
44
# -- General configuration ---------------------------------------------------
45
45
You can’t perform that action at this time.
0 commit comments