Skip to content

Releases: mtkennerly/dunamai

v1.12.0 (2022-05-07)

06 May 19:43
99b85dd
Compare
Choose a tag to compare
  • Added Pattern type for named pattern presets. Currently, this includes:
    • Pattern.Default (CLI: --pattern default) for the existing default.
    • Pattern.DefaultUnprefixed (CLI: --pattern default-unprefixed) for the existing default, but without requiring the v prefix.
  • Added tag_branch option (CLI: --tag-branch) for Git repositories. This is particularly useful for Gitflow without fast forward, where develop does not contain the tag history, so you can specify --tag-branch master.
  • Added full_commit option (CLI: --full-commit) for Git and Mercurial repositories to obtain the full commit hash instead of the short form.
  • Fixed Version.parse so that it better handles versions without the v prefix when the pattern does not (or may not) require it.
  • Fixed error reporting when a custom pattern is an invalid regular expression, as well as when a custom format is malformed.
    It was fine when Dunamai was used as a library, but the error message lacked context on the CLI.
  • Fixed from any not passing the --tag-dir option along for Subversion repositories.

v1.11.1 (2022-04-05)

05 Apr 06:58
b6165f5
Compare
Choose a tag to compare
  • Fixed the --bump CLI option and the bump argument of Version.serialize bumping even on a commit with a version tag. Now, no bumping occurs on such a commit.

v1.11.0 (2022-03-15)

05 Apr 06:58
eaad8de
Compare
Choose a tag to compare
  • Explicitly specified Optional[...] typing on arguments with a default of None. (Contributed by jonathangreen)
  • Made VERSION_SOURCE_PATTERN public for consumption by other tools.

v1.10.0 (2022-03-08)

09 Mar 02:21
ef95542
Compare
Choose a tag to compare
  • Added branch and timestamp to the Version class, along with associated format placeholders (branch, branch_escaped, timestamp). Branch info is not populated for Darcs and Subversion repositories.

  • Fixed validation for PEP 440, where the local segment was allowed to contain any characters.

  • Fixed validation for Semantic Versioning, where some segments were allowed to contain these additional characters:

    [ \ ] ^ _ `
    

v1.9.0 (2022-02-20)

20 Feb 18:51
Compare
Choose a tag to compare

v1.8.0 (2022-01-27)

27 Jan 16:54
Compare
Choose a tag to compare
  • Changed the build backend to poetry-core. (Contributed by fabaff)
  • Clarified serialization options that are ignored when using a custom format.
  • Relaxed dependency range of importlib-metadata for compatibility with Poetry.
  • Added epoch to Version class, default tag pattern, and format placeholders.
  • Fixed PEP 440 validation to allow multiple digits in the epoch.
  • Improved parsing of optional pattern groups so that we don't stop checking at the first one that's omitted.
  • Fixed handling of tags with post/dev stages so that they are serialized and bumped correctly when using PEP 440.

v1.7.0 (2021-10-31)

31 Oct 12:34
Compare
Choose a tag to compare
  • Broadened the default version tag pattern to allow more separator styles recognized in PEP 440 pre-normalized forms (-, ., and _).
  • Enhanced serialize_pep440() to normalize the alternative prerelease names (alpha -> a, beta -> b, c/pre/preview -> rc) and capitalizations (RC -> rc, etc).
  • Added a py.typed file for PEP-561. (Contributed by wwuck)
  • Replaced pkg_resources dependency with packaging and importlib_metadata. (Contributed by flying-sheep)
  • Added some missing public items to __all__.

v1.6.0 (2021-08-09)

09 Aug 18:33
Compare
Choose a tag to compare
  • Fixed an oversight where the default version tag pattern would only find tags with exactly three parts in the base (e.g., v1.0.0 and v1.2.3). This is now relaxed so that v1, v1.2.3.4, and so on are also recognized.

    If you prefer the old default, you can pass a custom --pattern on the command line or a custom pattern to the Version.from_* methods. Specifically, the previous default used ^v(?P<base>\d+\.\d+\.\d+) instead of the new ^v(?P<base>\d+(\.\d+)*), but the rest of the pattern is the same in both defaults.

  • Added support for execution via python -m dunamai. (Contributed by jstriebel)

v1.5.5 (2021-04-26)

27 Apr 02:00
Compare
Choose a tag to compare

v1.5.4 (2021-01-20)

21 Jan 02:37
Compare
Choose a tag to compare
  • Fixed handling of Git tags that contain commas.