File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -32,3 +32,6 @@ sphinx:
3232python :
3333 install :
3434 - requirements : docs/requirements.txt
35+ - method : pip
36+ path : .
37+
Original file line number Diff line number Diff line change 11sphinx >= 7.0.0
22recommonmark >= 0.7.1
3- datacrunch >= 1.8.3
Original file line number Diff line number Diff line change 1313# documentation root, use os.path.abspath to make it absolute, like shown here.
1414#
1515import datetime
16+ from importlib .metadata import version as pkg_version
1617from recommonmark .parser import CommonMarkParser
17- from datacrunch import __version__
1818import os
1919import sys
2020
21- sys .path .insert (0 , os .path .abspath ('../../' ))
22-
2321# -- Project information -----------------------------------------------------
2422current_year = datetime .datetime .now ().year
2523
2624project = 'DataCrunch Python SDK'
2725copyright = f'{ current_year } , DataCrunch.io'
2826author = '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 ---------------------------------------------------
You can’t perform that action at this time.
0 commit comments