Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rye version doesn't respect dynamic = ['version'] setting #1028

Open
Aran-Fey opened this issue Apr 19, 2024 · 1 comment
Open

rye version doesn't respect dynamic = ['version'] setting #1028

Aran-Fey opened this issue Apr 19, 2024 · 1 comment

Comments

@Aran-Fey
Copy link

Aran-Fey commented Apr 19, 2024

Steps to Reproduce

  1. Create a pyproject.toml with dynamic versioning:
    [project]
    dynamic = ["version"]
  2. Use rye version -b to bump the version:
    rye version -b patch

Expected Result

The version gets bumped in the correct place, similar to what hatch version would do.

Actual Result

The version gets written to the pyproject.toml file, resulting in:

[project]
dynamic = ["version"]
version = "1.2.3"

Version Info

rye 0.32.0
commit: 0.32.0 (e1b4f2a 2024-03-29)
platform: windows (x86_64)
self-python: cpython@3.12.2
symlink support: true
uv enabled: true

Stacktrace

No response

@ssteinerx
Copy link

You have to use the hatch versioning mechanisms if you want to use dynamic versioning. Versioning - Hatch

They work fine.

Would be better if rye just wrapped them.

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

No branches or pull requests

2 participants