Install a package from github, but the generated entry in Pipfile.lock doesn't contain github url
See original GitHub issue "host-environment-markers": {
"implementation_name": "cpython",
"implementation_version": "0",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_python_implementation": "CPython",
"platform_release": "4.4.0-104-generic",
"platform_system": "Linux",
"platform_version": "#127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017",
"python_full_version": "2.7.14",
"python_version": "2.7",
"sys_platform": "linux2"
}
Celery has a critical bug about timezone, which has been fixed on master but not uploaded to pypi.
So have to install celery directly from github:
$ pipenv install git+https://github.com/celery/celery.git@bd347f7565f3a72c8cfb686ea0bfe38cfa76e09b#egg=celery
# Or
$ pipenv install git+https://github.com/celery/celery.git@master#egg=celery
This results an entry in Pipfile:
celery = {git = "https://github.com/celery/celery.git", ref = "master"}
However, In Pipfile.lock the corresponding entry is like below:
"celery": {
"hashes": [
"sha256:81a67f0d53a688ec2bc8557bd5d6d7218f925a6f2e6df80e01560de9e28997ec",
"sha256:77ff3730198d6a17b3c1f05579ebe570b579efb35f6d7e13dba3b1368d068b35"
],
"version": "==4.1.0"
}
So when I do pipenv install
in another setup, I will get the wrong version of celery.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Local package with Git dependency is not installed ... - GitHub
Install created package via pipenv install -e ./package-with-git-sha-dep and look at generated Pipfile.lock - it doesn't contain information ...
Read more >Trouble installing editable packages from git repos · Issue #1866
Issue I'm having trouble getting pipenv to deal with editable installs from git. I've narrowed down as much as possible for the purposes...
Read more >Unable to install package from private repository #1393 - GitHub
I am attempting to install from a private repository. The output indicates the package and dependencies were installed but when pipenv is ...
Read more >Pipfile.lock doesn't preserve some extras information #1014
Now, for this issue: From what I can see, the "extra" part itself is respected: Flask and Blinker are installed everytime. That's some...
Read more >pipenv install -e . fails due to dependency resolution ... - GitHub
You likely have a mismatch in your sub-dependencies. First try clearing your dependency cache with $ pipenv lock --clear, then try the original ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You should be using
-e
for sure.I’d say something else is at play, since for me it worked without adding -e