Commit 50c9b012 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

Add CI target to upload wheels to pypi.org

parent 16a094fe
Pipeline #1483 passed with stage
in 1 minute and 23 seconds
......@@ -12,14 +12,17 @@
stages:
- build
- testpypi
- pypi
variables :
TWINE_USERNAME: jcl
TWINE_PASSWORD: $TEST_PY_PASSWD
WHEEL : 0
TESTPYPI : 0
TESTPYPIOSX : 0
PYPI : 0
OSX : 0
TESTPYPIOSX : 0
PYPIOSX : 0
before_script:
# clone
......@@ -55,6 +58,7 @@ manylinux2010 :
- wheel/*
expire_in: 1 week
# Push wheel to testpypi repos
push-testpypi-manylinux2010:
stage: testpypi
image : portus.lam.fr/jclamber/unsio-manylinux2010
......@@ -68,6 +72,20 @@ push-testpypi-manylinux2010:
paths:
- wheel/
# Push wheel to pypi repos
push-pypi-manylinux2010:
stage: pypi
image : portus.lam.fr/jclamber/unsio-manylinux2010
only :
variables:
- $PYPI == "1"
script:
- /opt/python/cp37-cp37m/bin/python -m twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD ./wheel/python*unsio*
cache:
key: manylinux2010
paths:
- wheel/
#
# BUILD wheels for macosx
#
......@@ -95,6 +113,7 @@ OSX:
- wheel/*
expire_in: 1 week
# Push wheel to testpypi repos
push-testpypi-OSX:
stage: testpypi
tags:
......@@ -108,6 +127,21 @@ push-testpypi-OSX:
key: osx
paths:
- wheel/
# Push wheel to pypi repos
push-pypi-OSX:
stage: pypi
tags:
- osx_10.13.6
only :
variables:
- $PYPIOSX == "1"
script:
- python3.7 -m twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD ./wheel/python*unsio*
cache:
key: osx
paths:
- wheel/
#
# RPM Distros
#
......
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