Update your version while having a drink
Project description
Update your version while having a drink
Full documentation available at http://punch.readthedocs.io/en/latest/
About punch
Punch is a configurable version updater, and you can use to automate the management of your project’s version number.
Punch stores the version of your project in its own file. Each time you need to update it, Punch runs through the configured files and replaces the old version with the new one. Additionally, Punch may also automatically commit the version change on your VCS of choice.
This project has been heavily inspired by bumpversion, and I want to thank Filip Noetzel, the author of that project for his work and the inspiring ideas.
Installation
Punch is available for both Python 2 and Python 3 through pip. Just create a virtual environment and run
pip install punch.py
To start working with Punch you need a configuration file and a version file. You may ask Punch to create the two files for you with reasonable starting values with the flag --init
punch --init
which will create the punch_config.py and punch_version.py files in the current directory.
Contributing
See the CONTRIBUTING file for detailed information. Please remember that this project is actively developed in the develop branch, so be sure to work there if you try to implement new feature of fix bugs.
History
1.6.2 (2019-08-22)
Updating the HISTORY file and considering that it is high time I come up with a solution for files that require manual intervention when updating the version.
1.6.1 (2019-08-22)
Merged PR#38: Fixes the behavious of the standard annotation message
1.6.0 (2019-04-12)
Merged PR #37: Adds a –quiet option to suppress all warnings
Added VCS information to –simulate
Tests updated to use latest pytest features and to remove deprecated features
Fixed the requirements setup (development.txt now inherits testing.txt)
Internal structure improvements to ease the development of new features like enhanced actions
1.5.0 (2018-05-03)
Fixed issue #31: Punch doesn’t add files to commits + make file additions configurable
Fixed part of issue #34: [git VCS] Additional branch options (by joshua-s)
Added ‘include_files’ and ‘include_all_files’ flags (issue #31)
Added ‘target_branch’ flag (issue #34)
1.4.5 (2018-04-20)
Using version.to_file in CLI (PR#33 by gthank)
1.4.4 (2018-04-18)
Fixed wrong behaviour of DateVersionPart (PR#32 by gthank)
1.4.3 (2018-03-21)
Fixed issue #23: Print a warning when no match is found in controlled files
Fixed issue #27: Possible typo in docs
Fixed issue #29: punch silently adds and commits unrelated untracked files to git
1.4.2 (2017-10-05)
Fixed error with months and days ending with 0
1.4.1 (2017-09-16)
Minor fixes to the date part representation
1.4.0 (2017-06-07)
Support for actions to specify complex behaviours
PEP8 compliance global review
1.3.2 (2017-03-29)
Fixed CLI script installation on Windows (by jobec)
1.3.1 (2017-01-23)
Readthedocs documentation link added to README
1.3.0 (2017-01-20)
Date-base version part added (with support for CalVer syntax)
1.2.0 (2016-09-09)
Mercurial support added by Michele D’Amico
1.1.2 (2016-06-09)
Fixed issue #7
1.1.1 (2016-06-01)
Fixed issues #3, #4, #5
1.1.0 (2016-05-26)
Added –set-part and –reset-on-set flags
1.0.2 (2016-05-24)
Fixed the PyPI badge in the documentation
Added some examples both in documentation and in the test suite
1.0.1 (2016-05-21)
Last minute change of package name on PyPI due to a name clash.
1.0.0 (2016-05-19)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file punch.py-1.6.2.tar.gz
.
File metadata
- Download URL: punch.py-1.6.2.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e0df4e61458cbee2a7b17a815303ef7e460a18524a04062c3fbcda7f8167caf |
|
MD5 | 5381ebc4fa490299f98e975adef2df6d |
|
BLAKE2b-256 | f067fbcecb206fa4db77fdece21e94353e0382dda0598bb477c6372dee8f6b6c |