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. 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

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.4.3.tar.gz (180.7 kB view details)

Uploaded Source

Built Distribution

devpi_plumber-0.4.3-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for devpi-plumber-0.4.3.tar.gz
Algorithm Hash digest
SHA256 16093c544d151f1c33f559937cceafec1a8562f6acb6655770aff2a08317ed93
MD5 dc6817f75d37b8ad05fe335e5763dc82
BLAKE2b-256 193f9fca68ae099ce94059009ac6986cb699887fa083fc12e205a639f336683d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_plumber-0.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e2594096ed1957df61a746d4f68d1a271ce6b1caa236a6776b1706b66602f65f
MD5 6682d112da2e1d28a4ae4f199d2b2e9a
BLAKE2b-256 ebf2b8ccf91677216f3af88f8097ebd1f8faaefd22ef6a848acce164a061e720

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