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

Uploaded Source

Built Distribution

devpi_plumber-0.2.11-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.11.tar.gz.

File metadata

File hashes

Hashes for devpi-plumber-0.2.11.tar.gz
Algorithm Hash digest
SHA256 36438aba310b839729b8e2c63e25a111f12e15909f038d5a36da31ce54a504fe
MD5 791c47d3104f826cfe1bb7e3f1fcdf4a
BLAKE2b-256 f4f692ec4e57db72e2e7c88206417fb685c33863c12fec6529aa1841878733b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devpi_plumber-0.2.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4e29088caad0cb830d16cf89d564cc0818a84ca595901fb3507f42acfe1f6aff
MD5 698187c1047d945305aa146e6f736bb1
BLAKE2b-256 601c403a7c51deab5bf972fdf040fd169ece6a735ff257076d37bc8a3131d3e5

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