diff --git a/templates/python.yml b/templates/python.yml index 7fef4bc807af4c35cd619ea208d2405f3cc746c0..904ef9218f1c2b7ba6e06e4db1ff76c011fe3948 100644 --- a/templates/python.yml +++ b/templates/python.yml @@ -17,11 +17,12 @@ build-wheel: extends: .python3-build script: - python3 setup.py check --verbose --metadata --restructuredtext --strict - - python3 setup.py bdist_wheel + - python3 -m build after_script: - - twine check dist/*.whl + - &twine_check twine check dist/*.whl artifacts: paths: + - dist/*.tar.gz - dist/*.whl .install-wheel: @@ -48,7 +49,7 @@ pypi-upload: extends: .python3-build stage: deploy script: - - twine check dist/* + - *twine_check - twine upload --config-file "$pypirc" dist/* rules: - if: $CI_COMMIT_TAG && ($SKIP_PYPI_UPLOAD == null)