ci(release): fix building distributions without local version identifier

This commit is contained in:
Sigurd Spieckermann 2025-04-25 14:00:24 +02:00 committed by Sigurd Spieckermann
parent b85893d43e
commit 72e180ca8f

View File

@ -26,9 +26,14 @@ jobs:
# See https://peps.python.org/pep-0440/#local-version-identifiers
- name: Omit local version for publishing to test.pypi.org
run: >
echo SETUPTOOLS_SCM_OVERRIDES_FOR_COPIER='{local_scheme="no-local-version"}'
>> $GITHUB_ENV
if: github.ref == 'refs/heads/master'
# HACK: https://github.com/ofek/hatch-vcs/issues/43
run: |
cat << EOF >> pyproject.toml
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
EOF
- name: Build project for distribution
run: uv build