You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LookupError: setuptools-scm was unable to detect version for /tmp/pip-resolver-lk4h1q2s/django-push-notifications.
Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
Expected result
Installs from a specific commit
Actual result
Gives above error
Other things I tried
I tried following the above advice with using git+https but then I get a warning about not being able to generate hashes (basically, these two errors are pointing at each other as the solution):
# WARNING: pip install will require the following package to be hashed.
# Consider using a hashable URL like https://github.com/jazzband/pip-tools/archive/SOMECOMMIT.zip
django-push-notifications @ git+https://github.com/jazzband/django-push-notifications@6fde730
The text was updated successfully, but these errors were encountered:
This is indeed annoying. FWIW, not all packages will have that metadata problem, basically I think if they don't use setuptools-scm it will work with the archive form.
Trying to install from a GitHub commit with generate hashes but it's not working (see #700)
Environment Versions
Steps to replicate
pip-compile --generate-hashes
Expected result
Installs from a specific commit
Actual result
Gives above error
Other things I tried
I tried following the above advice with using
git+https
but then I get a warning about not being able to generate hashes (basically, these two errors are pointing at each other as the solution):The text was updated successfully, but these errors were encountered: