Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check out repo at depth 0 for Python tests, bump Python and PyPI actions #1713

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

nicholasjng
Copy link
Contributor

The reason for this is that setuptools-scm installs a version relative to the last release tag - if no tag is found, the default version is taken to be v0.1.0. This was the case in GitHub Actions, where only the PR branch is checked out.

Also unpins build system requirements in the pyproject.toml.

The sdist build system was changed to build from python setup.py sdist for forward compatibility - build is superior in every way, and the advertised solution by both cibuildwheel and PyPA itself.

Bump actions/setup-python to v5, pypa/gh-action-pypi-publish to v1.8.11, and docker/setup-qemu-action to v3.

@nicholasjng
Copy link
Contributor Author

@dmah42 I noticed while working on this that some setup might need to be done in the GBM PyPI account to get trusted publishing to work - the Actions setup is only one of the required parts, the account setup being the other.

The reason for this is that `setuptools-scm` installs a version relative
to the last release tag - if no tag is found, the default version is taken
to be v0.1.0. This was the case in GitHub Actions, where only the PR
branch is checked out.

Also unpins build system requirements in the `pyproject.toml`.

The sdist build system was changed to `build` from `python setup.py sdist`
for forward compatibility - `build` is superior in every way, and the
advertised solution by both cibuildwheel and PyPA itself.

Bump `actions/setup-python` to v5, `pypa/gh-action-pypi-publish` to v1.8.11,
and `docker/setup-qemu-action` to v3.
@dmah42 dmah42 merged commit 9a0422e into google:main Dec 19, 2023
78 of 80 checks passed
@nicholasjng nicholasjng deleted the depth-0-checkouts branch December 19, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants