prjemian / punx

Python Utilities for NeXus HDF5 files
https://prjemian.github.io/punx
5 stars 7 forks source link

CI failure with publishing distribution to PyPI #174

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

CI failure occurs when constructing docker container for publishing distribution to PyPI. Not related to PR #173.

Originally posted by @prjemian in https://github.com/prjemian/punx/issues/173#issuecomment-998340721

prjemian commented 2 years ago

The workflow action is a wrapper around the twine upload command. The action applies certain tests and makes parameters of the various options. Could just call:

twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive --verbose dist/*

See the twine docs for more details.

prjemian commented 2 years ago

These lines from action's shell script may be useful:

TWINE_USERNAME="$INPUT_USER" \
TWINE_PASSWORD="$INPUT_PASSWORD" \
TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL" \
  exec twine upload ${TWINE_EXTRA_ARGS} ${INPUT_PACKAGES_DIR%%/}/*
prjemian commented 2 years ago

Original problem cited in #173 was temporal. Resolved on server by waiting for hours for next retest.