Skip to main content

Build Status: Linux and Macos Build status: Windows codecov Codacy Badge Pypi Download

Conan Remove Outdated

A script to remove all outdated packages from remote

logo

Requirements

  • Python 3
  • the Conan client

INSTALL

To install by pip is just one step

Local

If you want to install by local copy

pip install .
Remote

Or if you want to download our pip package

pip install bincrafters_remove_outdated

RUN

  • Make sure your remote is properly listed on Conan remote list (conan remote list)

  • Make sure your Conan client is logged in (conan user) the repository you want to clean. Then:

    $ bincrafters-remove-outdated

To remove ALL outdated packages on Bincrafters https://api.bintray.com/conan/bincrafters/public-conan

$ bincrafters-remove-outdated bincrafters

USAGE

bincrafters-remove-outdated [-h] [--yes] [--ignore] [--dry-run] [--pattern PATTERN | --package-list-file PACKAGE_LIST_FILE] [--version] remote

Conan Remove Outdated

positional arguments:
  remote                Conan remote to be cleaned e.g conan-center

optional arguments:
  -h, --help            show this help message and exit
  --yes, -y             Do not ask for confirmation
  --ignore, -i          Ignore errors receive from remote
  --dry-run, -d         Check which packages will be removed only
  --pattern PATTERN, -p PATTERN
                        Pattern to filter package name to be removed. e.g
                        Boost/*
  --package-list-file PACKAGE_LIST_FILE, -plf PACKAGE_LIST_FILE
                        Package list file path
  --version, -v         show program's version number and exit
FILTER

If you need to remove only some packages, there are some options:

Pattern

You could apply a pattern to filter the reference name.

For example, removing all Boost packages from bincrafters:

bincrafters-remove-outdated --pattern=Boost/* bincrafters
Package List

You could use a file to list all packages to be removed.

For example, remove outdated builds from Boost, Poco and OpenSSL using a text file:

boost/1.71.0@conan/stable
poco/1.9.1@pocoproject/stable
openssl/1.0.2s@conan/stable
bincrafters-remove-outdated --package-list-file=package_list.txt bincrafters
Testing and Development

To install extra packages required to test

pip install .[test]

TESTING

To run all unit test + code coverage, just execute:

pip install -r bincrafters_remove_outdated/requirements_test.txt
cd tests
pytest -v --cov=bincrafters_remove_outdated

REQUIREMENTS and DEVELOPMENT

To develop or run conan remove outdated

pip install -r bincrafters_remove_outdated/requirements.txt

UPLOAD

There are two ways to upload this project.

Travis CI

After to create a new tag, the package will be uploaded automatically to PyPi.
Both username and password (encrypted) are in travis file.
Only one job will upload, the others will be skipped.

Command line

To upload this package on pypi (legacy mode):

pip install twine
python setup.py sdist
twine upload dist/*

LICENSE

MIT

Metadata

Release files for bincrafters-remove-outdated 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bincrafters-remove-outdated 0.5.0
File Size Uploaded Provenance
bincrafters_remove_outdated-0.5.0.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bincrafters-remove-outdated 0.5.0
File Interpreter ABI Platform
bincrafters_remove_outdated-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / bincrafters_remove_outdated-0.5.0.tar.gz

Download URL bincrafters_remove_outdated-0.5.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c114457fe68648ff64255fff0d3c7d33f09320c18b3c4ff4675eec5a3ad42999
BLAKE2b-256 checksum
How to use checksums
68900d3662c421e0ff53533a2aa98819d8de5de222ded034e7554dca6082a9fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

Release files / bincrafters_remove_outdated-0.5.0-py3-none-any.whl

Download URL bincrafters_remove_outdated-0.5.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79f1f7c44e1ee286290862b1c60a5c8dd8ac9137113efdb0ddcfb73542ad7eb1
BLAKE2b-256 checksum
How to use checksums
c7cb3d596bd0a5b0ebc83bb8cb813a7ad0655179a89e592cd844be19c6e703d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

Security for bincrafters-remove-outdated 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page