Skip to main content

A simple tool for packing shippable virtualenvs

Project description

bundler.py

A simple tool for packing shippable virtualenvs

bundler.py bundle [-h] [--output OUTPUT] [--compression {gz,bz2,xz} | --gz | --bz2 | --xz] [venv]

Bundle a virtualenv folder into a tarball, ready for caching or shipping between environments

Output files are just compressed tar files, with an additional metadata file (currently unused, but intended for future validation post-unpacking)

bundler.py unpack [-h] [--shebang SHEBANG] [--python PYTHON] [--no-repair] bundle_path [output]

Unpack and optionally repair a bundle into a usable virtualenv

bundler.py repair [-h] [--shebang SHEBANG] [--python PYTHON] path

Repair a virtualenv, rewriting venv/bin script shebangs, and updating bin/python symlinks to point to the correct path.

Future versions will inspect shebangs before rewriting, so as not to break potential shell scripts and other files that get stuck in venv/bin

Development

This project uses poetry for development dependency management, although it's not strictly necessary.

py.test is used for testing, flakeheaven for linting, and black for formatting.

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

bundler.py-0.1.1.tar.gz (16.3 kB view hashes)

Uploaded Source

Built Distribution

bundler.py-0.1.1-py3-none-any.whl (16.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page