Closed jungornti closed 7 years ago
Hrmm, so https://pypi.python.org/simple lists the package name as django
while every other resource has it as Django
. This is causing our name normalization to get a different name casing than what pip
is sending back. It currently looks like this is only happening for Django.
Is it possible to instead of automatically normalize package names, throw some obvious error about that casing is wrong?
Explicit is better than implicit → the dev will see the error and fix Pipfile?
@jungornti, not in this case, I have to use pip-tools, which is not such comfortable, pipenv's behavior looks like modern package managers and I want to avoid manual work for dependency management, by the way it should be automated
Tentatively fixed in 3.2.14 (#172). Please let us know if you encounter any further occurrences.
I'm having more or less the same issue on pipenv 3.4.2. The following Pipfile
:
[[source]]
verify_ssl = true
url = "https://pypi.python.org/simple"
[dev-packages]
django-debug-toolbar = "*"
django-extensions = "*"
tox = "*"
Werkzeug = "*"
[packages]
psycopg2 = "*"
django-cms = "*"
djangocms-column = "*"
Results in the following Pipfile.lock
(you can see django
appears both as django
and Django
, with different versions):
{
"default": {
"django-sekizai": {
"version": "==0.10.0",
"hash": "sha256:cbd48e7be29e8cc4108476b9420d7c391fc509a504bc20b60616b116ba6ea51e"
},
"django-cms": {
"version": "==3.4.2",
"hash": "sha256:4d6f440b537d045398431b5e960b1450a98030e148c4bb0d01e97695ec63bfc7"
},
"django": {
"version": "==1.9.12",
"hash": "sha256:a59f85a2b007145006915f6134ec3b9c09e68e4377e0a6fd3529d6c56d6aeb04"
},
"djangocms-admin-style": {
"version": "==1.2.6.2",
"hash": "sha256:3613101d122ef91f198e2220395fc6024bcecf46cc99b9d00e7266a4619bf09e"
},
"django-treebeard": {
"version": "==4.1.0",
"hash": "sha256:f13c9a612a554ee0784632961904870efcf05f58282cd158da84ee88120fbafb"
},
"psycopg2": {
"version": "==2.7",
"hash": "sha256:e0313fb08c883ebc772d11c9ecf0b4ecf8946a37ed6fb3d2b6ad96f833a1af2b"
},
"djangocms-column": {
"version": "==1.7.0",
"hash": "sha256:06b73e18868fe40a364f33dbee99f20ffcd6a768ec14b5525794ef337a6cd542"
},
"django-formtools": {
"version": "==2.0",
"hash": "sha256:369443cdbff1cc8803e08f239c105dc76627239e7dad781060f76f93b919cf84"
},
"django-classy-tags": {
"version": "==0.8.0",
"hash": "sha256:f6d12f5a4df3e387795a0d9ef2836af389cae9a1fbebda035dac043d4722b1f7"
},
"Django": {
"version": "==1.10.6",
"hash": "sha256:2cfb83859bfaa10e2bd586340bead27c69fdcaa21fa683a008cc712482c26726"
}
},
"develop": {
"virtualenv": {
"version": "==15.1.0",
"hash": "sha256:39d88b533b422825d644087a21e78c45cf5af0ef7a99a1fc9fbb7b481e5c85b0"
},
"django-extensions": {
"version": "==1.7.7",
"hash": "sha256:ae69b1e33815d0baab7c14114af05840812f395a758bd45e80cf32548fbd6981"
},
"tox": {
"version": "==2.6.0",
"hash": "sha256:0001379c6dc21e69902e0279e7f91d420857bbb70901203564fb9e118c376dab"
},
"py": {
"version": "==1.4.32",
"hash": "sha256:2d4bba2e25fff58140e6bdce1e485e89bb59776adbe01d490baa6b1f37a3dd6b"
},
"django-debug-toolbar": {
"version": "==1.6",
"hash": "sha256:62f95c09c0faa4b2deac7edba69a84d0d8ad794e79ce24d86c7cd004c91053d8"
},
"Werkzeug": {
"version": "==0.11.15",
"hash": "sha256:c6f6f89124df0514d886782c658c3e12f2caaa94da34cee3fd82eebf4ebf052b"
},
"sqlparse": {
"version": "==0.2.3",
"hash": "sha256:740a023ef38ce11bbb99a9d143856f56ef4ec5b0d7a853f58c02c65b035114c4"
},
"six": {
"version": "==1.10.0",
"hash": "sha256:0ff78c403d9bccf5a425a6d31a12aa6b47f1c21ca4dc2573a7e2f32a97335eb1"
},
"pluggy": {
"version": "==0.4.0",
"hash": "sha256:d2766caddfbbc8ef641d47da556d2ae3056860ce4d553aa04009e42b76a09951"
},
"Django": {
"version": "==1.10.6",
"hash": "sha256:2cfb83859bfaa10e2bd586340bead27c69fdcaa21fa683a008cc712482c26726"
}
},
"_meta": {
"sources": [
{
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
],
"requires": {},
"hash": {
"sha256": "cbcca3de6cd1499e7c49d5b59364625e71a62a2402c1c67317ab9ff3e65cd675"
}
}
}
And running pipenv install --dev
unsurprisingly results in: Double requirement given: django==1.9.12 (from -r /tmp/tmpG2J7MX-requirements.txt (line 31)) (already in Django==1.10.6 (from -r /tmp/tmpG2J7MX-requirements.txt (line 18)), name='django')
.
Hey @sephii, this is addressed in 3.5.0 which I'll be pushing a release for in the next hour or so. Thanks for letting us know!
Hello again, i have found new problem, after
pipenv install
i got a message:Additionnaly, i noticed that Pipfile transformed to new look (pymorphy2's extras section).
Pipenv version: installed from master (updating prompt example a771b7a)]
How to reproduce the problem:
pipenv install
Source Pipfile:
Resulting Pipfile after
pipenv install
:Generated requirements.txt file:
Thanks!