Commit 432ff3fd authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added PyPI auto-deploy to CI configuration.

updated __version__ and _versionalias__
parent 70113a01
Pipeline #335 failed
before_script:
- git lfs pull
# Advise GitLab that these environment vars should be loaded from the Variables config.
variables:
PYPI_USER: SECURE
PYPI_PASSWORD: SECURE
stage:
- test
- deploy
- cleanup
test_arosics:
stage: test
script:
- source /root/anaconda3/bin/activate
- export GDAL_DATA=/root/anaconda3/share/gdal
......@@ -13,6 +27,7 @@ test_arosics:
- htmlcov/
- docs/_build/html/
pages:
stage: deploy
dependencies:
......@@ -29,3 +44,24 @@ pages:
expire_in: 30 days
only:
- master
deploy_pypi:
stage: deploy
script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
- echo "[server-login]" >> ~/.pypirc
- echo "username=" ${PYPI_USER} >> ~/.pypirc
- echo "password=" ${PYPI_PASSWORD} >> ~/.pypirc
- python setup.py check sdist bdist upload # This will fail if your creds are bad.
- echo "" > ~/.pypirc && rm ~/.pypirc # If the above fails, this won't run.
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except:
- dev
cleanup_pypirc:
stage: cleanup
when: always # this is important; run even if preceding stages failed.
script:
- rm -vf ~/.pypirc # we don't want to leave these around, but GitLab may clean up anyway.
......@@ -4,8 +4,8 @@
__author__ = """Daniel Scheffler"""
__email__ = 'daniel.scheffler@gfz-potsdam.de'
__version__ = '0.2.3'
__versionalias__ = '2017-07-03_03'
__version__ = '0.3.0'
__versionalias__ = '2017-07-04_01'
from .CoReg import COREG
......
......@@ -24,7 +24,7 @@ test_requirements = ['coverage']
setup(
name='arosics',
version='0.2.3',
version='0.3.0',
description="An Automated and Robust Open-Source Image Co-Registration Software for Multi-Sensor Satellite Data",
long_description=readme + '\n\n' + history,
author="Daniel Scheffler",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment