In this condition, pixi project version get works, it returns 1.0.0.
Then, if I run pixi project version minor, the pyproject.toml will add version="1.1.0" to project. In this toml, run pixi project version get, it still returns 1.0.0 rather than 1.1.0.
# after running `pixi project version minor`
[project]
name = "demo2"
requires-python = ">=3.10"
dynamic = ["version"]
authors = [{ name = "Glatzel" }]
version = "1.1.0"
[tool.pixi.project]
version="1.0.0"
channels = ["conda-forge"]
platforms = ["win-64"]
Issue description
In pyproject.toml, version should be in either project table or tool.pixi.project table. Like the toml files above.
pixi project version xxx should be able to detect version in project table.
major/minor/patch command should only modify version in its original location, not to add new line.
Expected behavior
pixi project version commmand works correctly for pyproject.toml
Checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
condition1
If run
pixi project version get
. Nothing happens. If runpixi project version minor
. It showsNo version found in manifest.
condition2
In this condition,
pixi project version get
works, it returns1.0.0
. Then, if I runpixi project version minor
, thepyproject.toml
will addversion="1.1.0"
toproject
. In this toml, runpixi project version get
, it still returns1.0.0
rather than1.1.0
.Issue description
pyproject.toml
,version
should be in either project table or tool.pixi.project table. Like the toml files above.pixi project version xxx
should be able to detect version in project table.Expected behavior
pixi project version
commmand works correctly forpyproject.toml