PyHistory maintains history entries for your project.
App to maintain history file for your project.
- Free software: BSD license
- Source: https://github.com/beregond/pyhistory
- PyPI: https://pypi.python.org/pypi/pyhistory
PyHistory maintains history entries in distributed work environment, which allows many developers to add/remove history entries between releases without conflicts.
pip install pyhistory
(All commands can start either with pyhistory or shortcut - pyhi.)
Add history entry:
$ pyhi add 'New feature' $ pyhi add Something
List history entries:
$ pyhi list * New feature * Something
Update your history file with entries for given release:
$ cat HISTORY.rst my project ========== 0.4.1 (2015-08-04) ++++++++++++++++++ * Added PyHistory to project. * Improved codebase. * Other features. $ pyhi update 0.4.2 $ cat HISTORY.rst my project ========== 0.4.2 (2015-08-05) ++++++++++++++++++ * Bug fixes * Change in API * Removed old features 0.4.1 (2015-08-04) ++++++++++++++++++ * Added PyHistory to project * Improved codebase * Other features
Delete selected entries:
$ pyhi delete 1. New feature 2. Something 3. Another one 4. Wrong one (Delete by choosing entries numbers.) $ pyhi delete 2 4 $ pyhi list * New feature * Another one
Clear all history:
$ pyhi clear Do you really want to remove all entries? [y/N]: y
Or without prompt:
$ pyhi clear --yes
You can adjust Pyhistory behaviour to your needs by setup.cfg file. Just put pyhistory section in there:
[pyhistory] history_dir = some_dir # 'history' by default history_file = myhistory.rst # 'HISTORY.rst' by default at_line = 42 # by default history will be injected after first headline
- Fixed error for empty file.
- Unpinned hard requirements for package.
- Added support for py35 and py36.
- Added line splitting.
- Moved CLI interface to Click library.
- Added ‘–yes’ flag for clear command.
- Removed ‘squash’ subcommand.
- Added microseconds to generated files.
- 0 as at-line option in no longer valid.
- Timestamps are now in miliseconds (again).
- Added load config from file.
- Improved format of generated hash (no miliseconds now).
- Added delete command.
- Added timestamp to generated files, so now entries are properly ordered.
- Pyhistory traverses directory tree to find proper place for history directory.
- Added squash command (alias to update).
- Further bug fixing of start detecting.
- Fixed error raised by clear when history dir is absent.
- Fixed update - command will now try to find file start.
- First release on PyPI.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|pyhistory-2.1.linux-x86_64.tar.gz (10.9 kB) Copy SHA256 Checksum SHA256||–||Source||Sep 29, 2017|
|pyhistory-2.1-py2.py3-none-any.whl (9.6 kB) Copy SHA256 Checksum SHA256||py2.py3||Wheel||Sep 29, 2017|