File tree 5 files changed +11
-4
lines changed
5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ recursive-include src *.yml
2
2
recursive-include src *.yaml
3
3
recursive-include src *.ico
4
4
recursive-include src *.png
5
+ include VERSION
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools>=43.0.0" , " wheel " ]
2
+ requires = [" setuptools>=43.0.0" ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
5
[project ]
@@ -76,4 +76,4 @@ robot = [
76
76
Source = " https://github.com/TheDeanLab/navigate"
77
77
78
78
[tool .setuptools .dynamic ]
79
- version = {attr = " navigate.__version__ " }
79
+ version = {file = " src/ navigate/VERSION " }
Original file line number Diff line number Diff line change
1
+ 0.0.2
Original file line number Diff line number Diff line change 1
- from ._version import __version__ # noqa: F401
1
+ import os
2
+ from pathlib import Path
3
+
2
4
from ._commit import __commit__ # noqa: F401
5
+
6
+ with open (os .path .join (Path (__file__ ).resolve ().parent , 'VERSION' )) as version_file :
7
+ __version__ = version_file .read ().strip ()
8
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments