Commit bb1f48c4 authored by Sabar Dasgupta's avatar Sabar Dasgupta
Browse files

use sharedarray-specific variable for version string

parent 58b00e2a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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/*
+1 −1
Original line number Diff line number Diff line
@@ -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