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

Uploaded Source

Built Distribution

devpi_plumber-0.5.1-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: devpi-plumber-0.5.1.tar.gz
  • Upload date:
  • Size: 181.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.6

File hashes

Hashes for devpi-plumber-0.5.1.tar.gz
Algorithm Hash digest
SHA256 09d67f124cc3188a4b8e1002e81ee01163bdcf2fa4f7538316fa59dc5848c251
MD5 a5cbbc035b29c402084ec3943a9901d9
BLAKE2b-256 3d4bd51f8c8b45a731cda2f33e13188039ef30a38ee3da403c4deefab61d7a13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devpi_plumber-0.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.6

File hashes

Hashes for devpi_plumber-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 19a8cfa8a057853d1e0f0d72cbad8460af26c0fafdd2d731e3f7d40d6d8ec3dc
MD5 c30fda4b6e4cb52076afbafa7cbcce23
BLAKE2b-256 ef2b826933b0901f3aa1e500853e25988e77f39c5b3b6e88b93ca2dd02439f82

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