Mario, the devpi-plumber, helps to automate and test large devpi installations.
Project description
Mario, the devpi-plumber, helps to automate and test large devpi installations. It offers a simple python commandline wrapper around the devpi client binary and utilities for using devpi in a test harness. To get access to the latter, install Mario with the extra test requirement:
pip install devpi-plumber[test]
Mario by Example:
Among others, it can be used to automate the upload of packages:
with DevpiClient('https://devpi.company.com', 'user', 'secret') as devpi:
devpi.use('user/testindex')
devpi.upload('path/to/package-1.0.tar.gz')
To make it easier to perform modifications on non-volatile indices, there is a context manager that temporarily toggles the volatile flag.
with volatile_index(devpi, 'user/prodindex'):
devpi.remove('broken_package==0.1.0')
In order to simplify the testing of such plumbing scripts, it ships with a simple context manager for starting and stopping devpi servers in tests.
def do_maintenance(devpi):
""" My plumbing script """
devpi.use('user/testindex')
# ...
users = {
'user': {'password': 'secret'},
}
indices = {
'user/prodindex': {},
'user/testindex': {'bases': 'user/prodindex'},
}
with TestServer(users, indices) as devpi:
do_maintenance(devpi)
License
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
Built Distribution
Hashes for devpi_plumber-0.7.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9aff00606aa3f4a74c53b45d734492179e33cdbae30e0c4ded2f11f2a925b0c |
|
MD5 | c6190a28c1d4136513e9ec4c647803f8 |
|
BLAKE2b-256 | ec049149c8773af694a1a1e18f14c801cdb13dc3023b556f9c4f48df90415e12 |