Requirements management tool.
Project description
Pundle
======
[![PyPI](https://img.shields.io/pypi/v/pundle.svg?style=flat-square)](https://pypi-hypernode.com/pypi/pundle)
[![PyPI](https://img.shields.io/pypi/l/pundle.svg?style=flat-square)](https://pypi-hypernode.com/pypi/pundle)
New
---
- Added python shell `try package` feature. To use it use `pundle.use("package_name==0.1")`. Version is optional.
- Added environments support. To use it just make files like `requirement.txt`, `requirements_dev.txt`, `requirements_test.txt`.
To activate env use like `PUNDLEENV=dev pundle ...`
- Added VCS support for urls like `git+https://github.com/mitsuhiko/jinja2.git@85820fceb83569df62fa5e6b9b0f2f76b7c6a3cf#egg=jinja2-2.8.0`. Push exactly like this formatted str to requirements.txt
- Added initial support for setup.py requirements. Helpful for package development.
What is it all about?
---------------------
Pundle get rid of virtualenv, because I think that virtualenv is pile of garbage
and we must get rid of it.
* Pundle install all packages and its versions to special folder. And mount pinned, frozen
versions on activate step.
* After that you program will use exactly this versions that were pinned in `frozen.txt`.
* If you change branch or edit requirements.txt or frozen.txt, pundle will note you about
you need make install new packages or freeze newly added packages. It will not let you
use packages that have not bin pinned. You will never fall in situation where you test
old version of package.
How to
------
Install:
> pip install pundle
or just place `pundle.py` where python can find it
Create `requirements.txt` or `setup.py` (we will support .toml a bit later).
You can pin versions if you need it, or just place package name. Pundle will
pin it anyway as well as all of it dependencies.
Reveal all dependencies, pin versions, download and install everything:
> python -m pundle
Where actually it will install? Pundle use special folder `.pundledir/python-version/package-name-version`
for every seperate package and version.
To make it short create alias:
alias pundle='/usr/bin/env python -m pundle'
pundle install
After packages install, frozen/pinned, we want to use them, you know, import, right?
import pundle; pundle.activate()
Or we can try to use pundle features:
# to execute entry point
pundle exec some_package_entry_point
# to run python script
pundle run my_script.py
# run module like python -m
pundle module some.my.module
To add VCS to `requirements.txt` use `git+url#egg=my_package-0.1.11` form.
Python shell usage
------------------
You can use pundle to expirement in python shell:
>>> import pundle
>>> pundle.use('django==1.11.1') # will download and install django
>>> import django
Environments
------------
Pundle support environments. You can create seperate requirements file with suffix like
`requirements_dev.txt`. Pundle will create `frozen_dev.txt` that will track common
requirements + dev requirements.
To use `dev` environment use `PUNDLEENV=dev` environment variable:
bash> PUNDLEENV=dev pundle run myscript.py
or common usage:
bash> PUNDLEENV=test pundle exec pytest
More usage info
---------------
Upgrade package:
pundle upgrade django
Upgrade all packages:
pundle upgrade
List of all entry points:
pundle entry_points
Do not hesitate to `pundle help` ;)
Howto
-----
Q: How to use custom index url or extra index?
A: use PIP_EXTRA_INDEX_URL or any other `pip` environment variables.
======
[![PyPI](https://img.shields.io/pypi/v/pundle.svg?style=flat-square)](https://pypi-hypernode.com/pypi/pundle)
[![PyPI](https://img.shields.io/pypi/l/pundle.svg?style=flat-square)](https://pypi-hypernode.com/pypi/pundle)
New
---
- Added python shell `try package` feature. To use it use `pundle.use("package_name==0.1")`. Version is optional.
- Added environments support. To use it just make files like `requirement.txt`, `requirements_dev.txt`, `requirements_test.txt`.
To activate env use like `PUNDLEENV=dev pundle ...`
- Added VCS support for urls like `git+https://github.com/mitsuhiko/jinja2.git@85820fceb83569df62fa5e6b9b0f2f76b7c6a3cf#egg=jinja2-2.8.0`. Push exactly like this formatted str to requirements.txt
- Added initial support for setup.py requirements. Helpful for package development.
What is it all about?
---------------------
Pundle get rid of virtualenv, because I think that virtualenv is pile of garbage
and we must get rid of it.
* Pundle install all packages and its versions to special folder. And mount pinned, frozen
versions on activate step.
* After that you program will use exactly this versions that were pinned in `frozen.txt`.
* If you change branch or edit requirements.txt or frozen.txt, pundle will note you about
you need make install new packages or freeze newly added packages. It will not let you
use packages that have not bin pinned. You will never fall in situation where you test
old version of package.
How to
------
Install:
> pip install pundle
or just place `pundle.py` where python can find it
Create `requirements.txt` or `setup.py` (we will support .toml a bit later).
You can pin versions if you need it, or just place package name. Pundle will
pin it anyway as well as all of it dependencies.
Reveal all dependencies, pin versions, download and install everything:
> python -m pundle
Where actually it will install? Pundle use special folder `.pundledir/python-version/package-name-version`
for every seperate package and version.
To make it short create alias:
alias pundle='/usr/bin/env python -m pundle'
pundle install
After packages install, frozen/pinned, we want to use them, you know, import, right?
import pundle; pundle.activate()
Or we can try to use pundle features:
# to execute entry point
pundle exec some_package_entry_point
# to run python script
pundle run my_script.py
# run module like python -m
pundle module some.my.module
To add VCS to `requirements.txt` use `git+url#egg=my_package-0.1.11` form.
Python shell usage
------------------
You can use pundle to expirement in python shell:
>>> import pundle
>>> pundle.use('django==1.11.1') # will download and install django
>>> import django
Environments
------------
Pundle support environments. You can create seperate requirements file with suffix like
`requirements_dev.txt`. Pundle will create `frozen_dev.txt` that will track common
requirements + dev requirements.
To use `dev` environment use `PUNDLEENV=dev` environment variable:
bash> PUNDLEENV=dev pundle run myscript.py
or common usage:
bash> PUNDLEENV=test pundle exec pytest
More usage info
---------------
Upgrade package:
pundle upgrade django
Upgrade all packages:
pundle upgrade
List of all entry points:
pundle entry_points
Do not hesitate to `pundle help` ;)
Howto
-----
Q: How to use custom index url or extra index?
A: use PIP_EXTRA_INDEX_URL or any other `pip` environment variables.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pundle-0.8.3.tar.gz
(12.9 kB
view details)
Built Distribution
File details
Details for the file pundle-0.8.3.tar.gz
.
File metadata
- Download URL: pundle-0.8.3.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9537f9013664a523bdd7c408f47b49f3870e58c98f5c04a4e99de49f2af980b |
|
MD5 | dbef06783faee92e6a9888f8734f4fa6 |
|
BLAKE2b-256 | af51d38cab6f9bb7120c6b9758fc5cdbfce83f6ed917da491603c964d01b1752 |
File details
Details for the file pundle-0.8.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pundle-0.8.3-py2.py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbd3eac7927fdc797e9ed59e6c1453656590bc2110da0cf858bb07735e00787b |
|
MD5 | da312bf6d1e15776bc09e021737bcbe6 |
|
BLAKE2b-256 | 67debfddf7f703a0c31c4e242a37e433b6cb6394604cd290b7284514ffaff263 |