poetry init uses existing pyproject.toml if possible#2448
poetry init uses existing pyproject.toml if possible#2448abn merged 8 commits intopython-poetry:masterfrom
Conversation
abn
left a comment
There was a problem hiding this comment.
Minor changes. Would be good to add test coverage for this.
|
Instead of simply raising an error when a different I recently ran into this when converting a project from setuptools to Poetry. In this case, I already had a |
|
@finswimmer can we rebase this please? |
32b9bb9 to
3f363da
Compare
abn
left a comment
There was a problem hiding this comment.
Looks good. We should add test coverage for this.
3f363da to
9cad9fb
Compare
|
@finswimmer here is an example for the init command test cases: abn@e378a88 |
9cad9fb to
50e68b6
Compare
|
@finswimmer rebase please. |
e5846e3 to
3f5bb7d
Compare
|
I'v expected this @abn :) Is done. |
@tarkatronic I thinnk that should be a new feature request as the scope of that is a bit larger than what is changed here. |
That is totally reasonable. 😄 |
…em section. If not prepend data on init.
3f5bb7d to
45dcc24
Compare
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
At the moment a
poetry initwill fail, if apyproject.tomlalready exists.As this file is becoming more and more widely used to store configuration for other tools like
blackandisort, this PR changes the behavior to only skip creating the content forpyproject.tomlif the file already contains atool.poetrysection or abuild-systemsection.closes: #1639