Generate Python executable files via PEX using info from Pipfile
Project description
pipenv-pex
Quickly create PEX files out of your Pipenv projects using this one simple command!
PEX files are an expansion upon zipapps. You can bundle your application's modules along with their dependencies into one file, executable using a Python interpreter.
Installation
Using the lovely pipx:
pipx install pipenv-pex
Usage
cd project-with-pipfile
pipenv-pex --entry-point "epic_project:main"
python ./project-with-pipfile.pex
--entry-point
argument should have the form “pkg.mod:fn”, where “pkg.mod” is a package/module in the archive, and “fn” is a callable in the given module. (taken from here)- All parameters except
--exclude
are passed directly to PEX,--entry-point
being one of them.
Why not use pex directly?
Since pipenx-pex
piggybacks on the informaton in your Pipfile
, some automations become possible:
- Dependencies are fetched from your Pipfile, so you don't have to update your Makefile each time you change a dependency in your Pipfile
- (unrelated to pipenv actually) Irrelevant noise files are ignored when bundling the modules (such as .mypy_cache, __pycache__ etc.), saving a few precious MBs :) additional files and directories can be added to this list via the
--exclude
parameter.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pipenv-pex-0.2.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
pipenv_pex-0.2.1-py3-none-any.whl
(16.3 kB
view hashes)
Close
Hashes for pipenv_pex-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b222657ada8a3f576d80b23b10b2bcabbc8fad43ea2c500facdc4094e2095fc |
|
MD5 | 69f4d9b16924ad94520dff684a858df1 |
|
BLAKE2b-256 | b500820f84c4b1946efbe8f3a7562d762ee585e314b57ddff3452a3e86197262 |