Commit a65848a7 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added auto-deploy to PyPI; revised badges.

updated __version__ and __versionalias__
parent 9b165553
Pipeline #357 passed with stages
in 1 minute and 1 second
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
stages:
- test
- deploy_pages
- deploy_to_pypi
- cleanup
test_geoarray:
stage: test
script:
- source /root/anaconda3/bin/activate
- export GDAL_DATA=/root/anaconda3/share/gdal
......@@ -13,8 +28,9 @@ test_geoarray:
- htmlcov/
- docs/_build/html/
pages:
stage: deploy
stage: deploy_pages
dependencies:
- test_geoarray
script:
......@@ -29,3 +45,28 @@ pages:
expire_in: 30 days
only:
- master
deploy_pypi:
stage: deploy_to_pypi
dependencies:
- test_geoarray
script: # Configure the PyPI credentials, then push the package, and cleanup the creds.
- source /root/anaconda3/bin/activate
- printf "[distutils]\nindex-servers =\n pypi\n\n" >> ~/.pypirc
- printf "[pypi]\n""repository:"" https://upload.pypi.org/legacy/\n" >> ~/.pypirc
- printf "username= ${PYPI_USER}\n" >> ~/.pypirc
- printf "password= ${PYPI_PASSWORD}\n" >> ~/.pypirc
- python setup.py check sdist upload -r pypi # 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.
......@@ -13,9 +13,6 @@ Fast Python interface for geodata - either on disk or in memory.
Status
------
.. .. image:: https://img.shields.io/pypi/v/geoarray.svg
:target: https://pypi.python.org/pypi/geoarray
.. .. image:: https://img.shields.io/travis/danschef/geoarray.svg
:target: https://travis-ci.org/danschef/geoarray
......@@ -28,7 +25,11 @@ Status
:alt: Updates
.. image:: https://gitext.gfz-potsdam.de/danschef/geoarray/badges/master/build.svg
:target: https://gitext.gfz-potsdam.de/danschef/geoarray/commits/master
.. image:: https://gitext.gfz-potsdam.de/danschef/geoarray/badges/master/coverage.svg
:target: https://gitext.gfz-potsdam.de/danschef/geoarray/commits/master
.. image:: https://img.shields.io/pypi/v/geoarray.svg
:target: https://pypi.python.org/pypi/geoarray
See also the latest coverage_ report.
......
......@@ -2,8 +2,8 @@
__author__ = """Daniel Scheffler"""
__email__ = 'danschef@gfz-potsdam.de'
__version__ = '0.4.7'
__versionalias__ = 'v20170703.07'
__version__ = 'v0.5.0'
__versionalias__ = 'v20170705.01'
from .baseclasses import GeoArray
......
......@@ -17,7 +17,7 @@ test_requirements = ["coverage"]
setup(
name='geoarray',
version='0.4.7',
version='0.5.0',
description="Fast Python interface for geodata - either on disk or in memory.",
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