semvec/pypi-packages huggingface dataset:
conan-clang-update 0.3.0
Conan script to update Clang on Travis CI
License: MIT
Keywords: conan,C/C++,package,libraries,developer,manager,dependency,tool,c,c++,cpp

[![Build Status: Linux and Macos](https://travis-ci.org/uilianries/conan-clang-update.svg?branch=master)](https://travis-ci.org/uilianries/conan-clang-update)
[![Build status: Windows](https://ci.appveyor.com/api/projects/status/github/uilianries/conan-clang-update?svg=true)](https://ci.appveyor.com/project/uilianries/conan-clang-update)
[![codecov](https://codecov.io/gh/uilianries/conan-clang-update/branch/master/graph/badge.svg)](https://codecov.io/gh/uilianries/conan-clang-update)
[![Pypi Download](https://img.shields.io/badge/download-pypi-blue.svg)](https://pypi.python.org/pypi/conan-clang-update)

# Conan Clang Update

## A script to update Travis CI file

This project contains the script to add Clang 9.1 on OSX builds

#### 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 conan_clang_update

#### RUN
To update **ALL** Conan projects on Github https://github.com/uilianries

    $ conan_clang_update --remote=uilianries

To update **ONLY** one project on Github https://github.com/uilianries/conan-libusb

    $ conan_clang_update --remote=uilianries/conan-libusb

To **AVOID** to execute push command after to update

    $ conan_clang_update --remote=uilianries/conan-libusb --skip-push

To filter **PROJECTS** by pattern

    $ conan_clang_update --remote=uilianries --project-pattern uilianries/conan-*

To filter **BRANCHES** by pattern

    $ conan_clang_update --remote=uilianries --branch-pattern stable/*

or

    $ conan_clang_update --remote=uilianries/conan-libzip --branch-pattern stable/*

To update a **LOCAL** file

    $ conan_clang_update --file=.travis.yml


##### 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 conan_clang_update/requirements_test.txt
    cd tests
    pytest -v --cov=conan_clang_update


#### REQUIREMENTS and DEVELOPMENT
To develop or run conan clang update

    pip install -r conan_clang_update/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 (python 2.7) will upload, the second one 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](LICENSE.md)
configlines 0.3
Add line number information to ConfigParser options
License: MIT

.. image:: https://travis-ci.org/benfogle/configlines.svg?branch=master
    :target: https://travis-ci.org/benfogle/configlines

.. image:: https://codecov.io/gh/benfogle/configlines/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/benfogle/configlines


Description
-----------
This module is an extension to Python's standard `configparser`_ module
that adds file and line number information to each stored option. This
is primarily useful in reporting error messages: you can point your user
to exactly where a bad value occurred:

.. code:: python

    try:
        timeout = config.getint('connection', 'retry')
    except ValueError:
        filename, line = config.get_location('connection', 'retry')
        logging.error("retry must be an integer (%s:%d)", filename, line)
        ...

This package is compatible with both Python 2 and 3.

Installation
------------

Install with pip::

    $ pip install configlines

Usage
-----

Given the following two configuration files:

.. code:: ini

    # Line one of data1.cfg
    [some_section]
    foo = 1

    [DEFAULT]
    bar = 2

.. code:: ini

    # Line one of data2.cfg
    [some_section]
    baz = 3

You can read and manipulate them exactly the same as the standard module:

.. code:: python

    >>> from configlines import ConfigParser
    >>> cfg = ConfigParser()
    >>> cfg.read(['data1.cfg', 'data2.cfg'])
    >>> cfg.get('some_section', 'foo')
    '1'

You can also access file and line information:

.. code:: python

    >>> cfg.get_location('some_section', 'foo')
    ('data1.cfg', 3)
    >>> cfg.get_location('some_section', 'bar')
    ('data1.cfg', 6)
    >>> cfg.get_location('some_section', 'baz')
    ('data2.cfg', 3)

In addition to ``get_location``, this module also provides ``get_line`` and
``get_filename`` functions for convenience.

If an option didn't come from a file, (i.e., you set it programmatically,) then
line number information will not be present:

.. code:: python

    >>> cfg.set('some_section', 'qwerty', '1234')
    >>> cfg.get_location('some_section', 'qwerty')
    None

Overwriting options programmatically will erase line number information:

.. code:: python

    >>> cfg.get_location('some_section', 'foo')
    ('data1.cfg', 3)
    >>> cfg.set('some_section', 'foo', '1234')
    >>> cfg.get_location('some_section', 'foo')
    None

Line number information can be set explicitly:

.. code:: python

    >>> cfg.set('some_section', 'foo', '1234', location=('somefile.cfg',10))
    >>> cfg.get_location('some_section', 'foo')
    ('somefile.cfg', 10)
    >>> cfg.set('some_section', 'foo', '1234', location='preserve')
    >>> cfg.get_location('some_section', 'foo')
    ('somefile.cfg', 10)
    >>> cfg.set_location('some_section', 'foo', ('otherfile.cfg', 50))
    >>> cfg.get_location('some_section', 'foo')
    ('otherfile.cfg', 50)

.. _configparser: https://docs.python.org/3/library/configparser.html