Code Monkey home page Code Monkey logo

bincrafters-remove-outdated's Introduction

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

bincrafters-remove-outdated's People

Contributors

croydon avatar ericlemanissier avatar sse4 avatar uilianries avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

croydon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.