Enables batch removal of packages from a devpi server.
Project description
Devpi Cleaner
Léon, the devpi cleaner, helps to batch removal of files from a devpi server. Given a package and version specification it will remove the specified versions of a package from all indices of a given user.
Rationale
Devpi cleaner wraps the original devpi remove command. It provides the following extensions:
Conditionally limit removal to development packages.
Temporarily switch non-volatile indices to volatile.
Apply a remove operation to all indices of a user.
Léon by Example
The following command will delete all development packages preceding version 0.2 of delete_me in indices of the user:
> devpi-cleaner http://localhost:2414/ user 'delete_me<=0.2' --dev-only Password: Packages to be deleted: * http://localhost:2414/user/index2/+f/842/84d1283874110/delete_me-0.2.dev2.tar.gz * http://localhost:2414/user/index2/+f/636/95eef6ac86c76/delete_me-0.2.dev2-py2.py3-none-any.whl * http://localhost:2414/user/index1/+f/842/84d1283874110/delete_me-0.2.dev2.tar.gz * http://localhost:2414/user/index1/+f/636/95eef6ac86c76/delete_me-0.2.dev2-py2.py3-none-any.whl Enter "yes" to confirm: yes >
As shown, packages will be listed and confirmation required before they are actually deleted from the server.
Commandline Usage
usage: devpi-cleaner [-h] [--batch] [--dev-only] [--force] [--password PASSWORD] server user package_specification A utility to clean packages from the Devpi server used at Blue Yonder. positional arguments: server The devpi server to operate on. user The devpi server of which to clean the indices. package_specification The specification of the package version(s) to remove. optional arguments: -h, --help show this help message and exit --batch Assume yes on confirmation questions. --dev-only Remove only development versions as specified by PEP 440. --force Temporarily make indices volatile to enable package removal. --password PASSWORD The password with which to authenticate.
License
Changelog
This is the version history of devpi_cleaner.
Version 0.1
Initial release
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
Built Distribution
Hashes for devpi_cleaner-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 757dbbdd316bfbc45f5fc1f12c7743974fda5a3f7c254ac8bbc3a00fbe992e6d |
|
MD5 | a5175493217155140758aa8403e9e6a2 |
|
BLAKE2b-256 | 45236f2a4e4d2b24fffce5749bf6cafc427dc8ef2bcdc717cfca759600f6eaa1 |