GithubHelp home page GithubHelp logo

it-is-wednesday / pipenv-pex Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 2.0 35 KB

A reaaaally short script for generating Python executable files using info from Pipfile

License: GNU Affero General Public License v3.0

Python 98.43% Shell 1.57%

pipenv-pex's Introduction

hey

pipenv-pex's People

Contributors

it-is-wednesday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

abeusher jwishnie

pipenv-pex's Issues

KeyError: 'version' when package is installed in editable mode

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"
        }
    },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.