From 94e719401bcb9fb90adc8af407bed412a6ce1cc8 Mon Sep 17 00:00:00 2001 From: Allan - CodeWorks Date: Mon, 8 Jan 2024 10:57:29 +0100 Subject: [PATCH 1/2] Edit CI workflow to authenticate to Pypi via API token --- .github/workflows/workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b38c2ce25..578b371cb 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -184,8 +184,8 @@ jobs: needs: [ check-for-functional-changes ] if: needs.check-for-functional-changes.outputs.status == 'success' env: - PYPI_USERNAME: openfisca-bot - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + PYPI_USERNAME: __token__ + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_OPENFISCA_BOT }} CIRCLE_TOKEN: ${{ secrets.CIRCLECI_V1_OPENFISCADOC_TOKEN }} # Personal API token created in CircleCI to grant full read and write permissions steps: @@ -213,7 +213,7 @@ jobs: key: release-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ github.sha }} - name: Upload a Python package to PyPi - run: twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD + run: twine upload dist/* --username $PYPI_USERNAME --password $PYPI_TOKEN - name: Publish a git tag run: "${GITHUB_WORKSPACE}/.github/publish-git-tag.sh" From e0bb414ea8c9cae7f057987a12e7ff1ea66aae2d Mon Sep 17 00:00:00 2001 From: Allan - CodeWorks Date: Mon, 8 Jan 2024 11:17:57 +0100 Subject: [PATCH 2/2] Updates CHANGELOG and setup.py for 41.4.2 --- CHANGELOG.md | 6 ++++++ setup.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99c4419ba..c013acf3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +### 41.4.2 [#1203](https://github.com/openfisca/openfisca-core/pull/1203) + +#### Technical changes + +- Changes the Pypi's deployment authentication way to use token API following Pypi's 2FA enforcement starting 2024/01/01. + ### 41.4.1 [#1202](https://github.com/openfisca/openfisca-core/pull/1202) #### Technical changes diff --git a/setup.py b/setup.py index fc0bbfef7..b804cbb79 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ setup( name="OpenFisca-Core", - version="41.4.1", + version="41.4.2", author="OpenFisca Team", author_email="contact@openfisca.org", classifiers=[