mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-09-01 14:58:58 +00:00
Update to support Click 8
This commit is contained in:
parent
04a9c712f9
commit
21b530c256
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file
|
All notable changes to this project will be documented in this file
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Updated to support Click version 8
|
||||||
|
|
||||||
|
|
||||||
## 1.0.1 - 2021-05-10
|
## 1.0.1 - 2021-05-10
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -29,7 +29,7 @@ project_urls =
|
|||||||
|
|
||||||
[options]
|
[options]
|
||||||
install_requires =
|
install_requires =
|
||||||
Click ~= 7.0
|
Click >= 7.0, < 9.0
|
||||||
GitPython >= 3
|
GitPython >= 3
|
||||||
packaging >= 20
|
packaging >= 20
|
||||||
python_requires = >= 3.8
|
python_requires = >= 3.8
|
||||||
|
@ -172,13 +172,20 @@ def entry(obj: Changelog, bullets, paragraphs, section_name, version_name):
|
|||||||
|
|
||||||
|
|
||||||
@cli.command(short_help='Release versions.')
|
@cli.command(short_help='Release versions.')
|
||||||
@click.option('-M', '--major', 'rel_seg', flag_value=0, default=None, help='Increment major version number.')
|
@click.option('-M', '--major', 'rel_seg', flag_value=0, type=int, default=None,
|
||||||
@click.option('-m', '--minor', 'rel_seg', flag_value=1, help='Increment minor version number.')
|
help='Increment major version number.')
|
||||||
@click.option('-p', '--patch', 'rel_seg', flag_value=2, help='Increment patch number.')
|
@click.option('-m', '--minor', 'rel_seg', flag_value=1, type=int,
|
||||||
@click.option('-a', '--alpha', 'pre_seg', flag_value='a', default=None, help='Increment alpha version number.')
|
help='Increment minor version number.')
|
||||||
@click.option('-b', '--beta', 'pre_seg', flag_value='b', help='Increment beta version number.')
|
@click.option('-p', '--patch', 'rel_seg', flag_value=2, type=int,
|
||||||
@click.option('-r', '--rc', 'pre_seg', flag_value='rc', help='Increment release candidate version number.')
|
help='Increment patch number.')
|
||||||
@click.option('-f', '--full', 'pre_seg', flag_value='', help='Clear the prerelease value creating a full release.')
|
@click.option('-a', '--alpha', 'pre_seg', flag_value='a', type=str, default=None,
|
||||||
|
help='Increment alpha version number.')
|
||||||
|
@click.option('-b', '--beta', 'pre_seg', flag_value='b', type=str,
|
||||||
|
help='Increment beta version number.')
|
||||||
|
@click.option('-r', '--rc', 'pre_seg', flag_value='rc', type=str,
|
||||||
|
help='Increment release candidate version number.')
|
||||||
|
@click.option('-f', '--full', 'pre_seg', flag_value='',
|
||||||
|
help='Clear the prerelease value creating a full release.')
|
||||||
@click.option('-c', '--commit', is_flag=True,
|
@click.option('-c', '--commit', is_flag=True,
|
||||||
help='Create a git commit tagged with the new version number. '
|
help='Create a git commit tagged with the new version number. '
|
||||||
'If there are no changes to commit, the current commit will be tagged instead.')
|
'If there are no changes to commit, the current commit will be tagged instead.')
|
||||||
|
Loading…
Reference in New Issue
Block a user