Commit graph

506 commits

Author SHA1 Message Date
Michał Pasternak
da44922261 Optional GITHASH directive for version_pattern
Optionally add GIT hash to your version number.
2022-06-08 19:48:18 +00:00
Manuel Barkhau
e96904438b bugfix 2022-06-08 19:48:18 +00:00
Manuel Barkhau
9be1186601 fix #171: parse remote (remove hardcoded 'origin') 2022-03-12 00:22:23 +00:00
Manuel Barkhau
25b6d39c03 bump 2022.1115 -> 2022.1116 2022-03-11 12:43:28 +00:00
Manuel Barkhau
04ba386802 credit @timoludwig 2022-03-11 09:52:49 +00:00
Manuel Barkhau
3e6fa33eeb fix gh #172: allow recursive globs 2022-03-11 09:49:42 +00:00
Timo Ludwig
1fb7e84e91 Fix incorrect version comparison when updating from vcs tag 2022-03-08 01:20:51 +00:00
Manuel Barkhau
defbf89fa8 fix hardcoded test cases 2022-02-11 22:49:58 +00:00
Manuel Barkhau
328ef5c10a bump 2021.1114 -> 2022.1115 2022-02-11 22:44:31 +00:00
Manuel Barkhau
465c6831d9 update changelog 2022-02-11 22:43:52 +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
028d77751b bump 2021.1113 -> 2021.1114 2021-11-07 12:45:44 +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
Manuel Barkhau
0a109aad21 update vcs option cascade
- use cfg.commit explicitly (this condition was previously only
  implicit, because the function isn't called in the first place
  if cfg.commit is False
- allow push even with tag=False
2021-11-07 12:41:06 +00:00
Manuel Barkhau
52af1e554e release prep 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
Manuel Barkhau
c8138d89ef fix missing compat tests on gh 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
mbarkhau
48da0a51bf
fix typo 2021-09-10 16:00:13 +00:00
Manuel Barkhau
172dd90611 updates for mypy 2021-07-19 16:12:04 +00:00
Manuel Barkhau
9137e84bed pacify the pedants 2021-07-19 16:09:25 +00:00
Manuel Barkhau
1549e84aee cleanup old icons 2021-07-11 23:03:45 +00:00
Manuel Barkhau
4faea54781 drop pypy2.7 (not available for osx anymore) 2021-05-13 20:36:26 +00:00
Manuel Barkhau
bf6aa6549f macos ci fix 🤞 2021-05-13 20:18:38 +00:00
Manuel Barkhau
0219eaf557 use py39 on docker ci 2021-05-13 20:03:07 +00:00
Manuel Barkhau
9379984b93 bump 2021.1112 -> 2021.1113 2021-05-13 19:33:12 +00:00
Manuel Barkhau
c69839f448 update changelog 2021-05-13 19:31:15 +00:00
Manuel Barkhau
03f8015e71 fix lint issue 2021-05-13 19:23:44 +00:00
Manuel Barkhau
3fb74f9789 documentation for --commit-message 2021-05-13 19:23:44 +00:00
Manuel Barkhau
0e26efd0e7 update README.md for 'bumver update --help' 2021-05-13 19:23:44 +00:00
Manuel Barkhau
bf030d4fa0 implement -c/--commit-message 2021-05-13 19:23:44 +00:00
Manuel Barkhau
9b9748a816 lint fix (if it's not one, it's the other) 2021-05-13 18:57:04 +00:00
Manuel Barkhau
b1d6d5ede6 compat fixes for click>=8.0 2021-05-13 18:43:29 +00:00
Manuel Barkhau
2243e025b7 fix false positive lint issue 2021-05-13 18:17:50 +00:00
Manuel Barkhau
26e3232170 update changelog 2021-04-02 20:34:34 +00:00
Manuel Barkhau
96a301f34b bump 2021.1111 -> 2021.1112 2021-04-02 20:30:58 +00:00
Manuel Barkhau
0f82c7eff7 bump 2021.1110 -> 2021.1111 2021-04-02 20:29:23 +00:00
Manuel Barkhau
cf4f323c94 update changelog 2021-04-02 20:29:06 +00:00
Manuel Barkhau
2804d845a4 fix build on windows 2021-04-02 20:24:38 +00:00
Julien Palard
ad9d7f0b52 FIX: hg backend won't work with PYTHONDEBUG=y
This is due to hg currently having a warning:

$ hg pull
/usr/lib/python3.9/importlib/util.py:245: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  self.__spec__.loader.exec_module(self)

and the has_remote function checking:

   if output.strip() == "":
2021-03-19 19:21:01 +00:00
Manuel Barkhau
72f1c32348 update changelog for 2021.1110 2021-03-18 20:21:55 +00:00
Manuel Barkhau
0b48690dd3 bump 2021.1109 -> 2021.1110 2021-03-18 20:03:45 +00:00
Manuel Barkhau
14ffed1c36 fix lint error 2021-03-18 19:51:45 +00:00
Manuel Barkhau
7a90be74ab update README 2021-03-18 19:49:54 +00:00
Manuel Barkhau
7c70eee289 cleanup whitespace in readme 2021-03-18 19:45:13 +00:00
Manuel Barkhau
689dd4b73b cleanup regex101 url gen 2021-03-18 19:42:23 +00:00
Manuel Barkhau
b7af1bbe55 fix #157 @gh: better error messages 2021-03-18 19:41:56 +00:00
Manuel Barkhau
cfa18334c5 add fastentrypoints 2021-03-18 19:20:26 +00:00
Manuel Barkhau
81a4ef0a9b update logo 2021-03-18 18:55:44 +00:00
Manuel Barkhau
92213162c2 lazy import pkg_resources for faster cli 2021-03-18 18:42:35 +00:00