Skip to content

Releases: mtkennerly/poetry-dynamic-versioning

v1.7.1 (2025-01-22)

23 Jan 04:01
532a60a
Compare
Choose a tag to compare
  • Fixed:
    • There was an intermittent ValueError in PEP 621 mode, related to trying to remove "version" from project.dynamic when it had already been removed.

v1.7.0 (2025-01-15)

16 Jan 03:42
7e60328
Compare
Choose a tag to compare
  • Added:
    • The enable command now supports the bypass/override environment variables to use a different placeholder version than 0.0.0.
  • Fixed:
    • The enable command would add "version" to project.dynamic even if it were already present. (Contributed by waketzheng)
    • The enable command would set tool.poetry.version to "0.0.0" even if the field were already present with a different value.

v1.6.0 (2025-01-10)

10 Jan 20:36
188beee
Compare
Choose a tag to compare
  • Added:
    • CLI: show command to print the version without changing any files.

v1.5.2 (2025-01-09)

10 Jan 04:20
ebb3908
Compare
Choose a tag to compare
  • Fixed:
    • The formatting of project.dynamic and tool.poetry.version could be changed when triggering the plugin via poetry dynamic-versioning or pip install (but not via poetry build or poetry-dynamic-versioning).

v1.5.1 (2025-01-09)

10 Jan 03:22
bbeebe9
Compare
Choose a tag to compare

v1.5.0 (2025-01-05)

05 Jan 22:43
49e2a07
Compare
Choose a tag to compare
  • Added:
    • CLI: When pyproject.toml contains the project section, the enable command will add the required fields for Poetry 2.0.0+.
  • Fixed:
    • For compatibility with Poetry 2.0.0, adjusted Poetry constraint from ^1.2.0 to >=1.2.0.
    • For compatibility with Poetry 2.0.0, when inserting the dynamic version into pyproject.toml with PEP 621 mode activated, the plugin ensures not to set project.version and tool.poetry.version at the same time.
    • An UnboundLocalError could happen when pyproject.toml was misconfigured.

v1.4.1 (2024-09-10)

10 Sep 23:04
54d9d15
Compare
Choose a tag to compare
  • Fixed:
    • The enable command would fail when the pyproject.toml tables were out of order.

v1.4.0 (2024-06-17)

17 Jun 22:04
ae00d3a
Compare
Choose a tag to compare
  • Added:
    • The plugin now supports Poetry's upcoming PEP-621 functionality. More info here: python-poetry/poetry#3332

      If your pyproject.toml defines tool.poetry.name, then the plugin will preserve its existing behavior.

      However, if your pyproject.toml:

      • does not define tool.poetry.name
      • defines project.name
      • defines project.dynamic to include "version"
      • does not define project.version

      ...then the plugin will enable its PEP-621 functionality.

      Because PEP-621 support is not yet released and finalized in Poetry itself, it is also subject to change in the plugin.

      (Prototyped by edgarrmondragon)

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)