diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index b8b812bcd..759632398 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -7,6 +7,8 @@ on: concurrency: group: publish-pypi-{{ github.sha }} cancel-in-progress: false +env: + SETUPTOOLS_SCM_LOCAL_SCHEME: no-local-version jobs: build-packages: @@ -32,8 +34,6 @@ jobs: shell: bash - name: Build package - env: - SETUPTOOLS_SCM_LOCAL_SCHEME: no-local-version run: | python -m pip install --upgrade pip wheel setuptools setuptools_scm build twine python -m build --sdist --wheel . --outdir dist @@ -152,10 +152,6 @@ jobs: with: fetch-depth: 0 - - name: Get tags - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - shell: bash - - uses: actions/setup-python@v6 with: python-version: "3.12"