-
-
Notifications
You must be signed in to change notification settings - Fork 227
Description
IIUC, setuptools_scm does two things:
- auto-generates a version from the SCM
- generates a file list for the sdist from the SCM
But as far as I can tell, it always does both of these. There are times when one might want one or the other, but not both.
Is there a way to specify which of these functions you want in pyproject.toml? If not, where in the code would I go to add that?
NOTE: my use case is that I really want the file finding, but I have other ways to specify the version. I could probably just write the version to _version and ignore it, though it might overwrite it anyway in the metadata. But worse than that, right now my SCM is not set up right for setuptools_scm to generate the version (I think I don't have the right tags)
File "/Users/chris.barker/miniconda3/envs/gnome_build/lib/python3.10/site-packages/setuptools_scm/version.py", line 97, in tag_to_version
version = config.version_cls(version_str)
File "/Users/chris.barker/miniconda3/envs/gnome_build/lib/python3.10/site-packages/packaging/version.py", line 198, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'v0.0.5sp'
Fine -- I have a tag that's incompatible with the version package -- but it then kills the whole process :-( So now I can't use the find_files, which is critical to my use case.