Loading .gitlab-ci.yml +3 −1 Original line number Diff line number Diff line Loading @@ -43,8 +43,10 @@ release: stage: deploy only: - tags variables: SHARED_ARRAY_VERSION: "$CI_COMMIT_TAG" script: - apt-get install -y python3-numpy python3-setuptools python3-pypandoc twine - echo $CI_COMMIT_TAG > .version - echo $SHARED_ARRAY_VERSION > .version - python3 setup.py sdist - twine upload dist/* setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ def get_version(): # GitLab CI environment and points as the git tag being built, if # any. This is the path followed by official releases. try: return os.environ['CI_COMMIT_TAG'] return os.environ['SHARED_ARRAY_VERSION'] except: pass Loading Loading
.gitlab-ci.yml +3 −1 Original line number Diff line number Diff line Loading @@ -43,8 +43,10 @@ release: stage: deploy only: - tags variables: SHARED_ARRAY_VERSION: "$CI_COMMIT_TAG" script: - apt-get install -y python3-numpy python3-setuptools python3-pypandoc twine - echo $CI_COMMIT_TAG > .version - echo $SHARED_ARRAY_VERSION > .version - python3 setup.py sdist - twine upload dist/*
setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ def get_version(): # GitLab CI environment and points as the git tag being built, if # any. This is the path followed by official releases. try: return os.environ['CI_COMMIT_TAG'] return os.environ['SHARED_ARRAY_VERSION'] except: pass Loading