poetry 2.0, adding source
section fails if there is no pre-existing [tool.poetry]
section in the pyproject.toml
#9913
Labels
kind/bug
Something isn't working as expected
Description
with poetry 2.0.0 in main branche
poetry list
return
C:\git\....>poetry source add foo https://my_private_repos/api/pypi/common-pypi/simple/
return this error
[tool.poetry] section not found in C:/git/..../pyproject.toml
Workarounds
nothing
Poetry Installation Method
pipx
Operating System
windows 10
Poetry Version
branch main 2.0.0
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: