We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f545fc commit 9c24a95Copy full SHA for 9c24a95
setup.py
@@ -28,8 +28,8 @@
28
# If we are running in the context of a GitHub action then we use the GITHUB_RUN_NUMBER
29
# otherwise we will default to 0 for the micro version.
30
31
-major = 0
32
-minor = 0
+major = os.environ['MAJOR'] if 'MAJOR' in os.environ else 0
+minor = os.environ['MINOR'] if 'MINOR' in os.environ else 0
33
micro = os.environ['GITHUB_RUN_NUMBER'] if 'GITHUB_RUN_NUMBER' in os.environ else 0
34
dev = '.dev0' if 'IS_RELEASE' not in os.environ else ''
35
0 commit comments