From 8e28b463d7b49f9449944f09fda6c82cbfda3bee Mon Sep 17 00:00:00 2001 From: Clement Bonnet Date: Fri, 15 Mar 2024 16:38:16 +0100 Subject: [PATCH 1/2] fix: pypi deployment --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b112769b..a475eebbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,8 @@ jobs: pip install --upgrade pip setuptools twine - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | python setup.py sdist twine upload dist/* From 2ee74a26a6d223700bb64a345ee8d99818553a7d Mon Sep 17 00:00:00 2001 From: Clement Bonnet Date: Fri, 15 Mar 2024 18:07:43 +0100 Subject: [PATCH 2/2] ci: replace setuptools with hatch --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a475eebbb..1721ce877 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,11 +16,11 @@ jobs: python-version: "3.x" - name: Install dependencies run: | - pip install --upgrade pip setuptools twine + pip install --upgrade pip hatch twine - name: Build and publish env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | - python setup.py sdist + hatch build twine upload dist/*