Skip to content

Dynamic version in pyproject.toml. - #256

Merged
Ja-Gk-00 merged 13 commits into
mainfrom
GH-177/Automatic-version
Aug 6, 2025
Merged

Dynamic version in pyproject.toml.#256
Ja-Gk-00 merged 13 commits into
mainfrom
GH-177/Automatic-version

Conversation

@Ja-Gk-00

@Ja-Gk-00 Ja-Gk-00 commented Aug 3, 2025

Copy link
Copy Markdown
Contributor

Set up dynamic versioning in pyproject.toml.

@Ostrzyciel Ostrzyciel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General comment: are you sure this will work? Seems like magic and the package is somewhat underdocumented.

Comment thread pyproject.toml Outdated
@codecov

codecov Bot commented Aug 4, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated

@Ostrzyciel Ostrzyciel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming this was tested in a fork – approve :)

@Ja-Gk-00
Ja-Gk-00 merged commit d30d568 into main Aug 6, 2025
12 checks passed
@Ja-Gk-00
Ja-Gk-00 deleted the GH-177/Automatic-version branch August 6, 2025 14:40
@johnslavik

johnslavik commented Aug 18, 2025

Copy link
Copy Markdown

Keep an eye for astral-sh/uv#14137.
It would have been less confusing to set dynamic = ["version"] in the [project] table (part of PEP 621) and reach out to hatchling for the version from the tag (uvx --with hatch-vcs hatchling version). This way you wouldn't need to rely on that package. The hatch-vcs plugin is maintained by Ofek Lev, the author of your build system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants