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.
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
File details
Details for the file devpi-plumber-0.2.15.tar.gz
.
File metadata
- Download URL: devpi-plumber-0.2.15.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc8657b58812f7986608dc9ed1be5533eefb3045c1eefc32cba038ceef8f84ae |
|
MD5 | 6f7f3c68c263bfca9e5cc54ce0690c06 |
|
BLAKE2b-256 | 3a3c076648fc69de652d885bbe37dd2b472d591d76f31c5e1ca1ff151e638522 |
File details
Details for the file devpi_plumber-0.2.15-py2.py3-none-any.whl
.
File metadata
- Download URL: devpi_plumber-0.2.15-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26f1bd43ed57149c14923aa4ffa8358ae89edac208717b7a089fca7c70967d73 |
|
MD5 | e6d85347a1a649039474bbd6564c26f6 |
|
BLAKE2b-256 | 5721faa43a925ac25ca64a6aa1a8256b7e376edd63c7df7ecbc79bfd3c8c209d |