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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devpi-plumber-0.4.2.tar.gz.
File metadata
- Download URL: devpi-plumber-0.4.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59f354897f997f47baf591e0e31577b4e29f1172570667e66811ff1b9460bbed
|
|
| MD5 |
acac1cb07e070b1fcc48b7dc0f626dc1
|
|
| BLAKE2b-256 |
1e7b55af66bb15db5dd5cc0170c2eb772e4b65782d88411f4be096f51e79aaee
|
File details
Details for the file devpi_plumber-0.4.2-py2.py3-none-any.whl.
File metadata
- Download URL: devpi_plumber-0.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68dd5c8d24097fd405fab6ad2d4882a89a6387d48dff575c210e90a31cf50c1f
|
|
| MD5 |
10d0eba510763467034e02b1ca8527fc
|
|
| BLAKE2b-256 |
922959e6d0a3ffdd80871df01af0353eb9062e0238c8cf7cd54d2f300f1c7914
|