Closed Simon-McIntosh closed 3 months ago
Hey, thanks for reporting this. I'll test it out and add handling for the project
section :)
Hi, thanks for looking into this. I have raised the minimum version for poetry-dynamic-versioning
to v1.4.0 and removed the name field from the tool.poetry section as shown below. We I then run poetry_pep621 install
the process fails with 'name'
printed back to the terminal as before. Am I missing something?
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.4.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
version = "0.0.0"
Poetry ignores the build-system
section for the main project (https://github.com/python-poetry/poetry/issues/6154#issuecomment-1218493969), so you do still need to install via poetry self add "poetry-dynamic-versioning[plugin]"
. What plugin version do you see in poetry self show
?
Use of poetry-dynamic-versioning with poetry_pep621
poetry-core@git+https://github.com/radoering/poetry-core.git@pep621-support
requires a duplication of the project's name in pyproject.toml.Pep621 and poetry-core require that the
name
field is defined asproject.name
whilst poetry-dynamic-versioning appears to source the project name fromtool.poetry.name
.Running
poetry_pep621
on a project with a duplicatedname
field in pyproject.toml returns an error code of 1 due to this duplicated field.Could poetry-dynamic-versioning extract name from
project.name
rather thantool.poetry.name
when using a pep621 compliant poetry-core build-backend?