Skip to content
Snippets Groups Projects
Commit 3255ec69 authored by Juraj Paluba's avatar Juraj Paluba
Browse files

Merge branch 'develop' into 'master'

Develop

See merge request !9
parents aebcac26 33136683
No related branches found
No related tags found
1 merge request!9Develop
Pipeline #143486 passed
...@@ -26,15 +26,11 @@ build: ...@@ -26,15 +26,11 @@ build:
stage: build stage: build
script: script:
# Get version. Variable CI_COMMIT_TAG is set only when tag was pushed. # Get version. Variable CI_COMMIT_TAG is set only when tag was pushed.
- export VERSION=$(if [[ "$CI_COMMIT_TAG" == "" ]]; then echo 0.0.0; else echo $CI_COMMIT_TAG | cut -c 2-; fi) - export LATEST_TAG=$(git describe --abbrev=0)
- python3 setup.py setopt --command=metadata --option=version --set-value=$VERSION - export VERSION=$(if [[ "$CI_COMMIT_TAG" == "" ]]; then echo ""; else echo $CI_COMMIT_TAG | cut -c 2-; fi)
- if [[ "$VERSION" != "" ]]; then python3 setup.py setopt --command=metadata --option=version --set-value=$VERSION; fi
- echo VERSION=$VERSION - echo VERSION=$VERSION
# Get package filename
- export WHEEL_NAME=$(python3 setup.py --name | tr '-' '_')
- export PACKAGE=$WHEEL_NAME-$VERSION-$PYTHON_TAG-$ABI_TAG-$PLATFORM_TAG.$PACKAGE_EXTENSION
- echo PACKAGE=$PACKAGE
- python3 setup.py bdist_wheel - python3 setup.py bdist_wheel
- echo $PACKAGE > dist/.package-name
only: only:
- branches - branches
- tags - tags
...@@ -49,10 +45,12 @@ deploy: ...@@ -49,10 +45,12 @@ deploy:
TWINE_PASSWORD: '$CI_CUSTOM_REGISTRY_PASSWORD' TWINE_PASSWORD: '$CI_CUSTOM_REGISTRY_PASSWORD'
TWINE_USERNAME: '$CI_CUSTOM_REGISTRY_USER' TWINE_USERNAME: '$CI_CUSTOM_REGISTRY_USER'
script: script:
- export PACKAGE=$(cat dist/.package-name)
- pip3 install twine - pip3 install twine
- python3 -m twine upload --repository-url $KYPO_PYPI_UPLOAD_URL dist/$PACKAGE - python3 -m twine upload --repository-url $KYPO_PYPI_UPLOAD_URL dist/*
dependencies: dependencies:
- build - build
only: rules:
- tags - if: $CI_COMMIT_BRANCH == "develop"
changes:
- setup.cfg
- if: $CI_COMMIT_TAG
[metadata]
version = v0.1.0rc1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment