File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 20
20
# -- Project information -----------------------------------------------------
21
21
22
22
project = 'Spatial Maths package'
23
- copyright = '2022 , Peter Corke'
23
+ copyright = '2020- , Peter Corke. '
24
24
author = 'Peter Corke'
25
- version = '0.12'
25
+ import spatialmath
26
+ version = spatialmath .__version__
26
27
27
- print (__file__ )
28
28
# The full version, including alpha/beta/rc tags
29
- with open ('../../RELEASE' , encoding = 'utf-8' ) as f :
30
- release = f .read ()
29
+ # with open('../../RELEASE', encoding='utf-8') as f:
30
+ # release = f.read()
31
+ # import spatialmath
32
+ # release = spatialmath.__version__
31
33
32
34
# -- General configuration ---------------------------------------------------
33
35
Original file line number Diff line number Diff line change 37
37
"smb" ,
38
38
]
39
39
40
+ try :
41
+ import importlib .metadata
42
+ __version__ = importlib .metadata .version ("spatialmath-python" )
43
+ except :
44
+ pass
45
+
40
46
You can’t perform that action at this time.
0 commit comments