Skip to main content

Mario, the devpi-plumber, helps to automate and test large devpi installations.

Project description

Build Status Coverage Status Latest Version Requirements Status

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

New BSD

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

devpi-plumber-0.2.9.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

devpi_plumber-0.2.9-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file devpi-plumber-0.2.9.tar.gz.

File metadata

File hashes

Hashes for devpi-plumber-0.2.9.tar.gz
Algorithm Hash digest
SHA256 77ea250aa97b6f77bf7fa7c8c7334e2902f45abd67b00042fd50e03409fe61aa
MD5 36c87bae8151273b767b2047a305d386
BLAKE2b-256 3c9613bb482c67909eb72452217a71f9e77edef681abac1c0dd9bba9a50d2439

See more details on using hashes here.

File details

Details for the file devpi_plumber-0.2.9-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for devpi_plumber-0.2.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0490ebaccc932334632f13ef8a1199871c336d1ae8911c4729a6dc0429a8b6b1
MD5 6b5541c575eb3c66986a7cd7fb481493
BLAKE2b-256 03d3e9c8ce4c661c5fc1ab2249692d65cf2ad6e29a61a9b5b4b97dbdf99dad20

See more details on using hashes here.

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