Loading .gitlab-ci.yml +10 −5 Original line number Diff line number Diff line Loading @@ -27,8 +27,11 @@ before_script: build:python2: stage: build script: - apt-get install -y libc6-dev gcc make python-numpy python-dev python-setuptools - python setup.py build_ext --inplace - apt-get install -y libc6-dev gcc make python2-dev wget - wget https://bootstrap.pypa.io/pip/2.7/get-pip.py -O get-pip.py - python2 get-pip.py - python2 -m pip install setuptools numpy - python2 setup.py build_ext --inplace build:python3: stage: build Loading @@ -40,8 +43,10 @@ release: stage: deploy only: - tags variables: SHARED_ARRAY_VERSION: "$CI_COMMIT_TAG" script: - apt-get install -y python-numpy python-setuptools python-pypandoc twine - echo $CI_COMMIT_TAG > .version - python setup.py sdist - apt-get install -y python3-numpy python3-setuptools python3-pypandoc twine - 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 +10 −5 Original line number Diff line number Diff line Loading @@ -27,8 +27,11 @@ before_script: build:python2: stage: build script: - apt-get install -y libc6-dev gcc make python-numpy python-dev python-setuptools - python setup.py build_ext --inplace - apt-get install -y libc6-dev gcc make python2-dev wget - wget https://bootstrap.pypa.io/pip/2.7/get-pip.py -O get-pip.py - python2 get-pip.py - python2 -m pip install setuptools numpy - python2 setup.py build_ext --inplace build:python3: stage: build Loading @@ -40,8 +43,10 @@ release: stage: deploy only: - tags variables: SHARED_ARRAY_VERSION: "$CI_COMMIT_TAG" script: - apt-get install -y python-numpy python-setuptools python-pypandoc twine - echo $CI_COMMIT_TAG > .version - python setup.py sdist - apt-get install -y python3-numpy python3-setuptools python3-pypandoc twine - 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