mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 23:42:55 +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
|
# See https://peps.python.org/pep-0440/#local-version-identifiers
|
||||||
- name: Omit local version for publishing to test.pypi.org
|
- name: Omit local version for publishing to test.pypi.org
|
||||||
run: >
|
if: github.ref == 'refs/heads/master'
|
||||||
echo SETUPTOOLS_SCM_OVERRIDES_FOR_COPIER='{local_scheme="no-local-version"}'
|
# HACK: https://github.com/ofek/hatch-vcs/issues/43
|
||||||
>> $GITHUB_ENV
|
run: |
|
||||||
|
cat << EOF >> pyproject.toml
|
||||||
|
|
||||||
|
[tool.hatch.version.raw-options]
|
||||||
|
local_scheme = "no-local-version"
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build project for distribution
|
- name: Build project for distribution
|
||||||
run: uv build
|
run: uv build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user