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

Uploaded Source

Built Distribution

devpi_plumber-0.2.7-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for devpi-plumber-0.2.7.tar.gz
Algorithm Hash digest
SHA256 f4db90aa591206be8ecb69274604f1a4918aa7702b6307c8e9d56f67976d174d
MD5 2f1c7a1e688907a032250915da8591f4
BLAKE2b-256 6b3661d98b15b49dbe03f9b9377735c5892a5a158d91a47a26dcf5f8158e1db9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_plumber-0.2.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fc0ec81c04d482164d2b316df7dabe64a18038dfe7e4a17136683e54c12cb831
MD5 7418d121c80fe94f2eadc654a02aaf1d
BLAKE2b-256 e8b16cf4cd9508c9ae6fb065d71eec837027a1476dd7cab4fb34791718160f3f

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