diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f012a90..090a0d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -112,6 +112,7 @@ repos: - flake8-2020 ~= 1.7.0 - flake8-pytest-style ~= 1.6.0 - wemake-python-styleguide ~= 0.19.0 + language_version: python3.11 # flake8-commas doesn't work w/ Python 3.12 - repo: https://github.com/PyCQA/pylint.git rev: v3.1.0 diff --git a/requirements/runtime.txt b/requirements/runtime.txt index cdeaa1d..40837e2 100644 --- a/requirements/runtime.txt +++ b/requirements/runtime.txt @@ -18,7 +18,7 @@ docutils==0.20.1 # via readme-renderer id==1.3.0 # via -r runtime.in -idna==3.6 +idna==3.7 # via requests importlib-metadata==7.0.2 # via twine diff --git a/twine-upload.sh b/twine-upload.sh index 62de5d5..592a366 100755 --- a/twine-upload.sh +++ b/twine-upload.sh @@ -40,9 +40,9 @@ INPUT_VERIFY_METADATA="$(get-normalized-input 'verify-metadata')" INPUT_SKIP_EXISTING="$(get-normalized-input 'skip-existing')" INPUT_PRINT_HASH="$(get-normalized-input 'print-hash')" -PASSWORD_DEPRECATION_NUDGE="::error title=Password-based uploads deprecated::\ -Starting in 2024, PyPI will require all users to enable Two-Factor \ -Authentication. This will consequently require all users to switch \ +PASSWORD_DEPRECATION_NUDGE="::error title=Password-based uploads disabled::\ +As of 2024, PyPI requires all users to enable Two-Factor \ +Authentication. This consequently requires all users to switch \ to either Trusted Publishers (preferred) or API tokens for package \ uploads. Read more: \ https://blog.pypi.org/posts/2023-05-25-securing-pypi-with-2fa/" @@ -74,6 +74,7 @@ else if [[ "${INPUT_REPOSITORY_URL}" =~ pypi\.org ]]; then echo "${PASSWORD_DEPRECATION_NUDGE}" echo "${TRUSTED_PUBLISHING_NUDGE}" + exit 1 fi fi