Package: copyrite
===============================copyrite===============================.. image:: https://img.shields.io/pypi/v/copyrite.svg:target: https://pypi.python.org/pypi/copyrite.. image:: https://img.shields.io/travis/PCManticore/copyrite.svg:target: https://travis-ci.org/PCManticore/copyriteUpdates copyright notices.* Free software: MIT licenseAbout=====This is a short tool I've built for handling missing copyrightnotices in my open source projects (mostly pylint_ and astroid_).The problem was that the copyright notices were too coarse,belonging only to the initial author of those two projects (Logilab),who stopped contributing that much in the past years.Since some contributors weren't willing to rennounce the copyright for acommercial entity, we found the need of a tool for updating thecopyright notices across the board in order to reflect the realityof the contributions from the last year.**copyrite** is extremely simple: it just need a repositoryand, driven by a couple of options, it goes into each file andreplaces the copyright notices it finds with more up-to-date notices.Features--------* `concurrent`.You can use the ``--jobs`` flag for controllingthe number of processes it should use for processing your file.Defaults to 1.* can support multiple VCSes.It could support multiple VCSes easily, although right now ithas only ``git`` support.* supports aliasesIf a contributor used multiple emails for contributing to a project,you can use the ``--aliases`` option. It requires a JSON file witha certain structure, as seen below.Each entry in the alias should be a dictionary, containing tworequired fields, ``mails`` and ``name`` and one optional field,``authoritative_mail``.If the ``authoritative_mail`` is not given, the generated copyrightwill look as in::# Copyright (c) {year_span} {name}If the ``authoritative_name`` is given, then this will look as::# Copyright (c) {year_span} {name} <{mail}>The ``year_span`` represents the years in which a contributormade their contributions to that particular file... code-block:: js[{"mails": ["cpopa@cloudbasesolutions.com"],"authoritative_mail": "ala@bala.com","name": "Claudiu Popa"},{"mails": ["george@oops.com"],"name": "Oops",},]* supports thresholds for contributionsThere are two flags which control if a contribution should beconsidered. ``--contribution-threshold`` is specifying how manycommits a contributor should have for a file in order for thecontributions to be taken in consideration.``--change-threshold`` specifies what is the least amount ofadded lines that a change should have. These two are exclusive,which means that a change threshold of 100 can have moreimportance than a contribution threshold of 2.And here is an example::$ copyrite --contribution-threshold 10 --change-threshold 4 --backend-type git my_repo --aliases=aliases_fileCredits---------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template... _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage.. _pylint: https://github.com/PyCQA/pylint.. _astroid: https://github.com/PyCQA/astroid)=======History=======0.1.0 (2016-07-21)------------------* First release on PyPI.