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

Version command can show dynamic version #355

Merged
merged 4 commits into from Jul 7, 2023

Conversation

ischaojie
Copy link
Contributor

@ischaojie ischaojie commented Jul 2, 2023

Can read version info when dynamic.

dynamic = ["version"]

[tool.hatch.version]
path="src/o/__init__.py"

Some tests:

➜  o git:(main) ✗ rye version
0.1.0

➜  o git:(main) ✗ rye version 0.2.0
error: unsupported set dynamic version

@mitsuhiko mitsuhiko merged commit d920f84 into astral-sh:main Jul 7, 2023
5 of 6 checks passed
@ischaojie ischaojie deleted the version branch March 24, 2024 09:20
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.

None yet

2 participants