Skip to content

Conversation

@tiran
Copy link
Collaborator

@tiran tiran commented Jul 21, 2025

The new helper git_clone_and_tarball() is an opinionated function to clone a git repo from tag/ref with submodules and add the content into a tar ball. The tar ball does not include a .git directory, but it comes with a .git_archival.txt for setuptools-scm. An optional callback can be used to rewrite clone URLs.

The base name of the tar ball and first-level directory are always based on the prefix argument.

@mergify mergify bot added the ci label Jul 21, 2025
The new helper `git_clone_and_tarball()` is an opinionated function to
clone a git repo from tag/ref with submodules and add the content into
a tar ball. The tar ball does not include a `.git` directory, but it
comes with a `.git_archival.txt` for `setuptools-scm`. An optional
callback can be used to rewrite clone URLs.

The base name of the tar ball and first-level directory are always based
on the `prefix` argument.

Signed-off-by: Christian Heimes <[email protected]>
@tiran tiran force-pushed the git-clone-and-tarball branch from 6d04b84 to 57c171e Compare July 21, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant