Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
1c81181c
Commit
1c81181c
authored
Aug 14, 2019
by
Daniel Scheffler
Browse files
Replaced deprecated PyPi upload commands by twine. Updated version info.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
8b1029ef
Pipeline
#4466
failed with stages
in 27 minutes and 3 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
1c81181c
...
...
@@ -4,8 +4,6 @@ before_script:
# Advise GitLab that these environment vars should be loaded from the Variables config.
variables
:
PYPI_USER
:
SECURE
PYPI_PASSWORD
:
SECURE
ANACONDA_USER
:
SECURE
ANACONDA_PASSWORD
:
SECURE
ANACONDA_TOKEN
:
SECURE
...
...
@@ -109,14 +107,12 @@ deploy_pypi:
stage
:
deploy_pypi
dependencies
:
-
test_py_tools_ds
script
:
# Configure the PyPI credentials, then push the package, and cleanup the creds.
script
:
-
source /root/miniconda3/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.
-
source activate ci_env
-
pip install -U twine
-
python setup.py sdist
-
twine upload dist/*
# requires creds as environment variables
only
:
-
/^v\d+\.\d+\.\d+([abc]\d*)?$/
# PEP-440 compliant version (tags)
except
:
...
...
@@ -129,6 +125,7 @@ deploy_anaconda:
-
test_py_tools_ds
script
:
-
source /root/miniconda3/bin/activate
-
source activate ci_env
-
conda install -y -q conda-build anaconda-client
-
yum install -y patch
# https://stackoverflow.com/questions/40392161/building-conda-skeleton-from-pypi-package-throws-error
# - conda skeleton pypi py_tools_ds --output-dir public/conda.recipe/py_tools_ds # create recipe
...
...
@@ -143,10 +140,3 @@ deploy_anaconda:
-
/^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.
py_tools_ds/version.py
View file @
1c81181c
...
...
@@ -19,5 +19,5 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__
=
'0.14.2
0
'
__versionalias__
=
'20190
726
_01'
__version__
=
'0.14.2
1
'
__versionalias__
=
'20190
814
_01'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment