Skip to content

Conversation

basnijholt
Copy link

Previously I opened #76 which was closed.

I (and my team) keep running into the same issue where we need to copy in a huge .git folder just to make our package installable. In a mono repo with hundreds of installable packages this is certainly not desirable.

This PR allows to overwrite the version via a simple file.

xref: #45 (comment)

@ghisvail
Copy link

ghisvail commented Oct 5, 2025

Having an override such as SETUPTOOLS_SCM_PRETEND_VERSION is also desirable for builds from shallow git clones, which is used a lot in downstream packaging from git source (such as in Nix or Guix for instance).

Placing a file under .git/versioningit-pretend-version is perhaps an overly complicated escape hatch, compared to an envvar. I don't think regular users will ever be using them anyway.

@basnijholt
Copy link
Author

@ghisvail I implemented that in #76 but @jwodder doesn't want it (see the comment).

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.

2 participants