Skip to content

Commit 625c247

Browse files
committed
try to fix readthedocs build
1 parent 905dd05 commit 625c247

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ sphinx:
3232
python:
3333
install:
3434
- requirements: docs/requirements.txt
35+
- method: pip
36+
path: .
37+

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
sphinx>=7.0.0
22
recommonmark>=0.7.1
3-
datacrunch>=1.8.3

docs/source/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
1515
import datetime
16+
from importlib.metadata import version as pkg_version
1617
from recommonmark.parser import CommonMarkParser
17-
from datacrunch import __version__
1818
import os
1919
import sys
2020

21-
sys.path.insert(0, os.path.abspath('../../'))
22-
2321
# -- Project information -----------------------------------------------------
2422
current_year = datetime.datetime.now().year
2523

2624
project = 'DataCrunch Python SDK'
2725
copyright = f'{current_year}, DataCrunch.io'
2826
author = 'DataCrunch.io'
2927

30-
# The short X.Y version
31-
version = __version__
32-
# The full version, including alpha/beta/rc tags
33-
release = __version__
28+
try:
29+
release = pkg_version("datacrunch")
30+
except:
31+
release = "0.0.0+dev"
32+
33+
version = release
3434

3535

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

0 commit comments

Comments
 (0)