*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 19ce6691 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Add validation checks before attempting to publish on PyPI

* in hopes that publish failures will be less confusing from now on
* also, to detect errors (e.g. missing files in MANIFEST.in) earlier
parent 974c2053
No related branches found
No related tags found
1 merge request!41Allow edits to published records to record owners
......@@ -19,7 +19,9 @@ pypi-release:
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+/'
script:
- pip3 install --upgrade pip build twine
- pip3 install --upgrade pip build twine check-manifest
- rm -f dist/*
- python3 -m check_manifest
- python3 -m build
- python3 -m twine check dist/*
- TWINE_USERNAME=${PYPI_USER} TWINE_PASSWORD=${PYPI_PASSWORD} python3 -m twine upload --skip-existing --non-interactive dist/*
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