it-is-wednesday / pipenv-pex Goto Github PK
View Code? Open in Web Editor NEWA reaaaally short script for generating Python executable files using info from Pipfile
License: GNU Affero General Public License v3.0
A reaaaally short script for generating Python executable files using info from Pipfile
License: GNU Affero General Public License v3.0
pipenv-pex fails with KeyError: 'version'
when a package is installed in editable mode (pipenv install -e
) because there is no version specified in the lockfile.
To reproduce:
$ putup myproject
$ cd myproject
[add a myproject:main entry point]
$ pipenv install -e .
$ pipenv install --dev pipenv-pex
$ pipenv run pipenv-pex --entry-point myproject:main
Traceback (most recent call last):
File "/Users/satwell/.local/share/virtualenvs/myproject-6KIcXZ9t/bin/pipenv-pex", line 8, in <module>
sys.exit(main())
File "/Users/satwell/.local/share/virtualenvs/myproject-6KIcXZ9t/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/satwell/.local/share/virtualenvs/myproject-6KIcXZ9t/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/satwell/.local/share/virtualenvs/myproject-6KIcXZ9t/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/satwell/.local/share/virtualenvs/myproject-6KIcXZ9t/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/satwell/.local/share/virtualenvs/myproject-6KIcXZ9t/lib/python3.7/site-packages/pipenv_pex/pipenv_pex.py", line 99, in main
for key, value in project.get_or_create_lockfile()["default"].items()
File "/Users/satwell/.local/share/virtualenvs/myproject-6KIcXZ9t/lib/python3.7/site-packages/pipenv_pex/pipenv_pex.py", line 99, in <listcomp>
for key, value in project.get_or_create_lockfile()["default"].items()
KeyError: 'version'
The default
section of Pipfile.lock
looks like this (with no version for myproject
):
"default": {
"myproject": {
"editable": true,
"path": "."
},
"pyscaffold": {
"hashes": [
"sha256:862ba8415361c7b9947bc9aba83c12af325e61f6c1f70890759b9e9bef498ab7",
"sha256:96c3e7f5529df0b5b351e879a141e1e5c9f26211f30d493c23d8c09d9d610a6f"
],
"markers": "python_version >= '3.4'",
"version": "==3.2.3"
}
},
--index-url
--interpreter-constraint
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.