Skip to content

Releases: mtkennerly/poetry-dynamic-versioning

v1.3.0 (2024-04-29)

30 Apr 03:23
983f69f
Compare
Choose a tag to compare
  • Added:
    • pattern-prefix option to add a prefix to the version tag pattern.
    • ignore-untracked option to control the detection of dirty state.
    • from-file config section to read a version from a file instead of the VCS.
    • POETRY_DYNAMIC_VERSIONING_DEBUG environment variable for some logging.
  • Changed:
    • Updated Dunamai to 1.21.0+ for the latest features.

v1.2.0 (2023-12-02)

02 Dec 14:49
dd9952f
Compare
Choose a tag to compare
  • Added:
    • initial-content-jinja option in tool.poetry-dynamic-versioning.files section.
  • Fixed:
    • Line ending style was not preserved in some cases because of the default behavior of pathlib.Path.read_text. To avoid this, pathlib.Path.read_bytes is used instead now. (Contributed by nardi)

v1.1.1 (2023-10-27)

27 Oct 05:37
c9aa740
Compare
Choose a tag to compare
  • Fixed:
    • Custom substitutions in pyproject.toml weren't cleaned up correctly. This was because the plugin would record the "original" content of the file after the version and enable fields had already been changed. Now, substitutions are reverted first before reverting version and enable.

v1.1.0 (2023-10-01)

01 Oct 14:35
65e2bc4
Compare
Choose a tag to compare
  • Added:
    • tool.poetry-dynamic-versioning.files config section. This allows you to create a file in a default state before applying substitutions to it. You can also leave the substitutions in place when the plugin deactivates.

v1.0.1 (2023-08-21)

21 Aug 03:43
4b30513
Compare
Choose a tag to compare
  • Fixed:
    • Compatibility with poetry-core 1.7.0, which removed the poetry.core.semver module.
    • The enable command now constrains the plugin version to >=1.0.0,<2.0.0 to protect against any potential API changes.

v1.0.0 (2023-08-18)

17 Aug 17:48
572fc57
Compare
Choose a tag to compare
  • Fixed:
    • Running poetry dynamic-versioning followed by poetry build would leave the plugin enabled in the sdist's pyproject.toml.

v0.25.0 (2023-07-11)

11 Jul 15:39
a93a76b
Compare
Choose a tag to compare
  • Added:
    • fix-shallow-repository option to attempt to automatically fix shallow repositories. Currently, this only supports Git and will run git fetch --unshallow.
  • Changed:
    • Updated Dunamai to 1.18.0+ for the latest features.

v0.24.0 (2023-06-30)

29 Jun 16:05
40003d9
Compare
Choose a tag to compare
  • Added:
    • POETRY_DYNAMIC_VERSIONING_COMMANDS_NO_IO environment variable to prevent the plugin from modifying files during certain commands. The plugin still sets the dynamic version in memory so that Poetry itself can write it as needed.
  • Changed:
    • During poetry version, the plugin still activates, but no longer modifies pyproject.toml.

v0.23.0 (2023-06-13)

13 Jun 08:34
28ba70d
Compare
Choose a tag to compare
  • Added:
    • CLI enable subcommand to enable the plugin in pyproject.toml.
    • Support for POETRY_DYNAMIC_VERSIONING_OVERRIDE environment variable.
    • mode option for substitution to support __version_tuple__ style.
  • Changed:
    • CLI: poetry dynamic-versioning now outputs a summary of the changes, the same way that poetry-dynamic-versioning already did.

v0.22.0 (2023-05-19)

19 May 09:38
e8ba44d
Compare
Choose a tag to compare
  • Added:
    • The plugin will print a warning for shallow Git repositories (and any other Concerns reported by Dunamai in the future). This becomes an error with strict = true.
  • Changed:
    • Updated Dunamai to 1.17.0+ for the latest features and bug fixes.