Skip to content

Commit 9c24a95

Browse files
committed
Allowing spec of major and minor version
1 parent 2f545fc commit 9c24a95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
# If we are running in the context of a GitHub action then we use the GITHUB_RUN_NUMBER
2929
# otherwise we will default to 0 for the micro version.
3030

31-
major = 0
32-
minor = 0
31+
major = os.environ['MAJOR'] if 'MAJOR' in os.environ else 0
32+
minor = os.environ['MINOR'] if 'MINOR' in os.environ else 0
3333
micro = os.environ['GITHUB_RUN_NUMBER'] if 'GITHUB_RUN_NUMBER' in os.environ else 0
3434
dev = '.dev0' if 'IS_RELEASE' not in os.environ else ''
3535

0 commit comments

Comments
 (0)