diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b704f98..9ecedbc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -138,11 +138,11 @@ jobs: - name: Install flit run: | python -m pip install --upgrade pip - python -m pip install flit~=3.9 + python -m pip install "flit>=4,<5" "flit_core>=4,<5" - name: Build and publish run: | - flit publish + flit publish --use-vcs env: FLIT_USERNAME: __token__ FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 07ffbde..9163160 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] # Build the package with [flit](https://flit.readthedocs.io) -requires = ["flit_core >=3.4,<4"] +requires = ["flit_core >=4,<5"] build-backend = "flit_core.buildapi" [project]