Skip to main content

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.

Project description

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:

import cookiepatcher
cookiepatcher.-()

Development

To run all the tests run:

tox

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

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cookiepatcher-0.5.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

cookiepatcher-0.5.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file cookiepatcher-0.5.0.tar.gz.

File metadata

  • Download URL: cookiepatcher-0.5.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for cookiepatcher-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c54bba540816fe711fc89be2715ee7537fb919d111dbaae38fe86ab5fd1de278
MD5 58bb56ba52c78ef1dab832c05591989a
BLAKE2b-256 c7ca3225616a1554990bccd1f495f849b38d53858583788913a8724d52b742fa

See more details on using hashes here.

File details

Details for the file cookiepatcher-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cookiepatcher-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3af655acb407c0c84dc669aecb3a6addc49aa5005ee52f1e84faa4e7671a8264
MD5 b903213080a69720a1dc108ae98f2f47
BLAKE2b-256 11051dea635e35d6c753480d3f1a3c0b42549e2e7466187061ba4afe66c8d004

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page