Metadata-Version: 2.1
Name: cookiepatcher
Version: 0.5.0
Summary: Just a small shim around cookiecutter that alters a bit the CLI to work better when reapplying templates to existing projects. Works best with cookiecutter-pylibrary.
Home-page: https://github.com/ionelmc/python-cookiepatcher
Author: Ionel Cristian Mărieș
Author-email: contact@ionelmc.ro
License: BSD-2-Clause
Project-URL: Changelog, https://github.com/ionelmc/python-cookiepatcher/blob/master/CHANGELOG.rst
Project-URL: Issue Tracker, https://github.com/ionelmc/python-cookiepatcher/issues
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Utilities
Requires-Python: >=3.7
License-File: LICENSE
License-File: AUTHORS.rst

========
Overview
========



Just a small shim around cookiecutter that alters a bit the CLI to work better when reapplying templates to existing
projects. Works best with cookiecutter-pylibrary.

* Free software: BSD 2-Clause License

Installation
============

::

    pip install cookiepatcher

You can also install the in-development version with::

    pip install https://github.com/ionelmc/python-cookiepatcher/archive/master.zip


Documentation
=============


To use the project:

.. code-block:: python

    import cookiepatcher
    cookiepatcher.-()


Development
===========

To run all the tests run::

    tox

Note, to combine the coverage data from all the tox environments run:

.. list-table::
    :widths: 10 90
    :stub-columns: 1

    - - Windows
      - ::

            set PYTEST_ADDOPTS=--cov-append
            tox

    - - Other
      - ::

            PYTEST_ADDOPTS=--cov-append tox


Changelog
=========

0.5.0 (2022-09-09)
------------------

* Fixed ``.cookiecutterrc`` serialization issues with boolean-like texts.
* Dropped support for older than 3.7 Python.
* Now depends on ``pyyaml`` 6.0 or later instead of ``ruamel.yml``.
* Added support for path with trailing slashes. Contributed in `PR 1 <https://github.com/ionelmc/python-cookiepatcher/pull/1>`_.


0.4.0 (2020-11-06)
------------------

* Fixed the ``.cookiecutterrc`` save code so that:

  * ``default_context`` is the root key (instead of ``cookiecutter``).
  * underscore prefixed keys are stripped (they are cookiecutter internals).
* Made `3.5` the minimum Python version.

0.3.4 (2020-04-05)
------------------

* Fixed ``.cookiecutterrc`` being dumped with ``!!omap`` garbage.

0.3.3 (2017-10-25)
------------------

* Fixed issues with god knows what changed again in cookiecutter.

0.3.2 (2017-07-19)
------------------

* Fixed issues with linewrapping in ``.cookiecutterrc``.

0.3.1 (2017-07-19)
------------------

* Fixed more breakage.


0.3.0 (2015-11-28)
------------------

* Fix issues with Python 2.7.

0.2.0 (2015-11-19)
------------------

* Removed some workarounds. Requires ``cookiecutter>=1.3.0``.

0.1.1 (2015-11-05)
------------------

* Force `utf8` in various places.

0.1.0 (2015-10-19)
------------------

* First release on PyPI.


