-
Notifications
You must be signed in to change notification settings - Fork 13
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
Help for LookupError: setuptools-scm was unable to detect version for #48
Comments
If your project is not at the root, setuptools-scm needs to be told or configured to search (doing this automatic breaks too many upstreams) |
Thanks so much for getting back so quickly! Would you be able to point me to where to include the setting? While I love My guess is: Thanks so much ❤️ |
Thanks for getting back, I had previously read this bit and was not sure how to use it. (probably my ignorance about It would be amazing to have an example on how to use the From what I read, I should probably use My guess would be:
|
[tool.hatch.build.hooks.vcs]
raw-options = { root = "../.." } |
Thanks a lot for the hint, I seem to be getting the same error (also with variations of locating the root). Will have to abandon for now, going with a version in the packages In case you are curious at checking what is wrong, this is my attempt: mckinsey/vizro@main...release/try_hatch_vcs The whole project is set up with |
I don't know if it helps someone, but at least works for me: Put in your [tool.hatch.version]
source = "vcs"
raw-options = { root = "../.." } Tested on |
Hey guys,
I am trying to implement
hatch-vcs
but seem to be missing something to make it work. I get the following traceback when running the commandhatch version
:I have added
to the
pyproject.toml
and
to the
hatch.toml
Am I missing something? Sorry to ask here, I could not figure out a solution so far (new to version determination via VCS!)
This issue: pypa/setuptools_scm#278 seems to suggest something about
.git
being at a different level than thesetup.py
(orpyproject.toml
I suppose) - could the reason be that I am trying to implement this on a monorepo?Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: