-
Notifications
You must be signed in to change notification settings - Fork 16
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
Data files are missing from wheel when building from git archive #49
Comments
Yes, Have you ever experienced a similar issue with other projects using |
Actually, no, I don't recall seeing a similar issue over the last few months, at least. Many projects require I mean, I've just switched to the pypi sdist since it works in this case (though I don't feel exactly good about relying on the redirector service for old URLs which sounds kinda temporary by definition) but I still think it's worth fixing. The simplest idea I have is adding a minimal
Ofc, you'd need to add more than if you wanted to have |
Since you are building from a tar.gz what is the biggest advantage in using GitHub's one vs the actual sdist? I suspect that a better to get around this problem would be defining |
Well, two I can think of:
|
Actually, I thought nowadays |
Unfortunately not yet. I will have a look on this and probably add Side note, it seems that we need some sort of software that downloads files from PyPI by navigating the JSON API and getting the correct hashes... I noticed that before in other projects, so I may decide some day to write one.
|
https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.rst setuptools_scm v7 recent release mentions support for git archives. Are you using the latest version? Otherwise there is also https://pypi.org/project/setuptools-scm-git-archive/ which might help here? |
@wwuck I suspect that the support for git archives in (I just did some experiments and that was my conclusion, so it seems that the only reliable way of building packages from source is indeed the |
I have opened pypa/setuptools-scm#752. Depending on how it goes, maybe we just need to add the git archive setup. |
The approach in the original post seems overly complicated. Why not just use https://pypa.github.io/pipx and do... ?
|
I suspect something goes wrong around setuptools_scm.
To reproduce:
At least the JSON schemas are missing.
The text was updated successfully, but these errors were encountered: