Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,21 @@ jobs:
export PYTHONPATH="$PWD"
python examples/monitoring_and_alerting.py
python examples/buckets_management.py
check-sphinx:
docker:
- image: *default-python
environment:
PIPENV_VENV_IN_PROJECT: true
steps:
- checkout
- run:
name: Checks that sphinx docs are successfully generated
command: |
pip install -e . --user
pip install sphinx==1.8.5 --user
pip install sphinx_rtd_theme --user
cd docs
python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
check-aws-lambda-layer:
docker:
- image: docker:19
Expand All @@ -147,6 +162,7 @@ workflows:
- check-docstyle
- check-twine
- check-examples
- check-sphinx
- tests-python:
name: test-3.6
- tests-python:
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from pathlib import Path

meta = {}
with open(Path(__file__).parent.parent / 'influxdb_client' / '__init__.py') as f:
exec('\n'.join(l for l in f if l.startswith('__')), meta)
with open(Path(__file__).parent.parent / 'influxdb_client' / 'version.py') as f:
exec('\n'.join(l for l in f if l.startswith('CLIENT_VERSION')), meta)


def setup(app):
Expand All @@ -37,9 +37,9 @@ def setup(app):
autoclass_content = 'both'

# The short X.Y version
version = meta['__version__']
version = meta['CLIENT_VERSION']
# The full version, including alpha/beta/rc tags
release = meta['__version__']
release = meta['CLIENT_VERSION']

# -- General configuration ---------------------------------------------------

Expand Down