Manuel Barkhau
28dcbf7f8a
fix handling of pep440 with epoch, e.g. '1!2.3'
2023-05-18 15:36:14 +00:00
Jusong Yu
e73ce30774
Add --ignore-vcs-tag to support bumping older versions ( #207 )
...
* Add --ignore-vcs-tag to support bumping older versions
2023-05-18 14:17:34 +00:00
Dingan(Will) Wang
04d7ecc112
Added unit tests for pep440 parse function and dev tag. ( #206 )
2023-05-09 23:05:48 +00:00
Manuel Barkhau
a8da75e538
fix test referencing copyright header
2023-05-04 16:46:19 +00:00
Sharon Yogev
a0f092c61b
Add dev to the list of valid release tags ( #199 )
...
* Add dev to the list of valid release tags
* Add test for --tag=dev
* Update changelog for #203
---------
Co-authored-by: Manuel Barkhau <mbarkhau@gmail.com>
2023-05-04 15:35:01 +00:00
Markus Holtermann
72227d3e75
Add temporary pinning of increments ( #197 )
...
Fixes #196 - Add temporary pinning of increments
Co-authored-by: Manuel Barkhau <mbarkhau@gmail.com>
2022-12-02 00:43:25 +00:00
Manuel Barkhau
fa6d48fd9f
remove regex chars: ^ and $ during replacement
2022-07-01 22:34:59 +00:00
Manuel Barkhau
defbf89fa8
fix hardcoded test cases
2022-02-11 22:49:58 +00:00
Manuel Barkhau
53617b2624
fix: gh#172 use default date values
...
When parsing the current version, if it doesn't
specify anyt date part, (such as is the case for
e.g. SemVer), then use the current date to
populate default parts.
This enables updating YYYY patterns in copyright
headers even for projects that don't use a CalVer
pattern.
2022-02-11 22:33:17 +00:00
Manuel Barkhau
29f0925bd3
cleanup
...
- flat is better than nested
- more consistent variable names
- positive messages
2021-11-07 12:41:06 +00:00
Timo Ludwig
b4cf3a5f32
Add command line parameters for VCS configuration
...
- Add the following flags to the 'bumpver update' command:
* --commit / --no-commit
* --tag-commit / --no-tag-commit
* --push / --no-push
- Add test cases for these flags including checks for incorrect usage
- Document new flags in README
2021-11-07 12:41:06 +00:00
Timo Ludwig
b3e7228189
Convert regular format strings to f-strings
...
This fixes the 'consider-using-f-string' pylint warnings
2021-11-07 12:41:06 +00:00
Manuel Barkhau
bf030d4fa0
implement -c/--commit-message
2021-05-13 19:23:44 +00:00
Manuel Barkhau
f2bbde7ae2
fix test
2021-01-17 21:42:09 +00:00
Manuel Barkhau
732f74439b
update license headers pycalver -> bumpver
2021-01-17 21:34:29 +00:00
Dave Wapstra
140ac2e79b
Add environment output option ( #152 )
...
Add --env option for environment output
2021-01-17 21:20:14 +00:00
Dave Wapstra
a73ab98acb
Fix linting errors
2021-01-17 19:45:53 +01:00
Dave Wapstra
a2a302bce2
check for tag if tag-num specified
2021-01-17 19:06:45 +01:00
Manuel Barkhau
ebd7534281
minor cleanups
2020-12-06 22:58:51 +00:00
Manuel Barkhau
dd575bede7
fix matching of empty patterns
2020-12-06 22:58:50 +00:00
Manuel Barkhau
fb879fc37a
fix gitlab #15 : prioritize config files that have bumpver section
2020-11-16 23:01:10 +00:00
Manuel Barkhau
5714ac3b10
fix gitlab#16: fix rollover handling for tag/pytag
2020-11-16 22:14:21 +00:00
Manuel Barkhau
15c7ea00df
fix gitlab #14 - parse tool.bumpver when using pyproject.toml
2020-11-01 18:22:19 +00:00
Manuel Barkhau
4c9e5df681
add regression test for --set-version option
2020-10-20 23:07:05 +00:00
Manuel Barkhau
72cb75d2b2
bugfix
2020-10-18 20:49:00 +00:00
Manuel Barkhau
bbf5bfa31c
pycalver -> bumpver
2020-10-18 20:47:35 +00:00
Manuel Barkhau
1c21e22720
bugfixes for semver
2020-10-15 22:26:30 +00:00
Manuel Barkhau
a3499c19a6
update defaults and tests
2020-10-15 19:54:26 +00:00
Manuel Barkhau
145401de33
update tests for new defaults
2020-10-14 22:17:18 +00:00
Manuel Barkhau
e3067a06ea
misc cleanup
2020-10-09 22:23:17 +00:00
Manuel Barkhau
3efb72dd3c
cli usability improvements
2020-10-08 20:36:58 +00:00
Manuel Barkhau
ca2052105d
add __main__.py back as wrapper
2020-10-05 19:24:37 +00:00
Manuel Barkhau
a86e5827ab
mv __main__.py cli.py
2020-10-05 19:23:57 +00:00
Manuel Barkhau
768b34ffb8
add regression test for #12
2020-10-05 18:20:16 +00:00
Manuel Barkhau
54a5892957
fix #12 : sorting of tags ignored version number semantics
2020-10-05 17:54:33 +00:00
Manuel Barkhau
43fe8df1fd
fix grep regression
2020-10-04 21:37:03 +00:00
Manuel Barkhau
2eb9b516b8
fix tests
2020-10-04 21:17:20 +00:00
Manuel Barkhau
6b1a3e45d3
improve test coverage
2020-10-04 12:10:38 +00:00
Manuel Barkhau
d23689634c
implement INC0 and INC1 parts
2020-10-04 11:28:53 +00:00
Manuel Barkhau
98647519c2
more consistent internal naming (release -> tag)
2020-10-03 23:44:09 +00:00
Manuel Barkhau
879ff4a945
wip: implement v2 rollover behavior
2020-10-03 23:42:52 +00:00
Manuel Barkhau
14115a2791
fix: multiple file_patterns entries for same file
2020-10-03 19:57:37 +00:00
Manuel Barkhau
f705164e75
better error messages and fixups
2020-10-03 18:36:56 +00:00
Manuel Barkhau
2f421daf16
avoid duplicate pattern groups
...
Since patterns are always wrapped in a named group anyway,
we don't need to do another unnamed group also. This makes
the regular expressions more readable.
2020-10-03 18:04:08 +00:00
Manuel Barkhau
4c8c9b128a
disallow --release=dev
...
dev releases don't work like other kinds of releases, they would
have to be implemented as a different kind of part.
2020-10-03 17:57:58 +00:00
Manuel Barkhau
e2b274a7bf
add pretty printing for regex patterns
2020-10-03 17:10:17 +00:00
Manuel Barkhau
ec4d051e7c
weeknum testing
2020-10-02 22:44:13 +00:00
Manuel Barkhau
7b06012180
add --date argument
2020-10-02 22:43:45 +00:00
Manuel Barkhau
67feeaf8ef
more regression testing
2020-10-02 21:50:09 +00:00
Manuel Barkhau
4d08aea121
test commit_message config
2020-10-02 21:33:12 +00:00