mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 15:32:54 +00:00
ci(release): fix building distributions without local version identifier
This commit is contained in:
parent
b85893d43e
commit
72e180ca8f
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user