Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
docs: Update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Oct 27, 2020
1 parent 44b006a commit 04c8084
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.6
version: 3.8
install:
- requirements: requirements/docs.txt
18 changes: 10 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
_init_path = (Path(__file__).parent.parent / 'src' /
'ai' / 'backend' / 'client' / '__init__.py')
_init_text = _init_path.read_text()
try:
_version_info = re.search(
r"^__version__ = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<tag>.*)?'$", # noqa
_init_text, re.M).groupdict()
except IndexError:
_version_info = None
_m = re.search(
r"^__version__ = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<tag>.*)?'$",
_init_text, re.M)
if _m is not None:
_version_info = _m.groupdict()
else:
raise RuntimeError('Unable to determine version.')


Expand All @@ -34,14 +36,14 @@
try:
from ai.backend.client import request # noqa
except ImportError:
subprocess.run('pip install -U "pip>=19.2" "setuptools>=41.2"', shell=True)
subprocess.run('pip install -e "..[docs]"', shell=True)
subprocess.run('pip install -U "pip>=20.2" "setuptools>=50.3"', shell=True)
subprocess.run('pip install -r "requirements/docs.txt"', shell=True)


# -- Project information -----------------------------------------------------

project = 'Backend.AI Client SDK for Python'
copyright = '2019, Lablup Inc.'
copyright = '2020, Lablup Inc.'
author = 'Lablup Inc.'

# The short X.Y version.
Expand Down

0 comments on commit 04c8084

Please sign in to comment.