-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry init fails when pyproject.toml exists and --dependency is specified #3073
Closed
3 tasks done
Labels
kind/bug
Something isn't working as expected
Comments
amaralbf
added
kind/bug
Something isn't working as expected
status/triage
This issue needs to be triaged
labels
Oct 4, 2020
abn
added a commit
to abn/poetry
that referenced
this issue
Oct 4, 2020
This change ensures that we create closer to reality scenarios when testing init command. Relates-to: python-poetry#3073
abn
added a commit
to abn/poetry
that referenced
this issue
Oct 4, 2020
abn
added a commit
to abn/poetry
that referenced
this issue
Oct 4, 2020
This change ensures that we create closer to reality scenarios when testing init command. Relates-to: python-poetry#3073
abn
added a commit
to abn/poetry
that referenced
this issue
Oct 4, 2020
finswimmer
pushed a commit
that referenced
this issue
Oct 5, 2020
This change ensures that we create closer to reality scenarios when testing init command. Relates-to: #3073
finswimmer
pushed a commit
that referenced
this issue
Oct 5, 2020
abn
added a commit
to abn/poetry
that referenced
this issue
Oct 5, 2020
This change ensures that we create closer to reality scenarios when testing init command. Relates-to: python-poetry#3073
abn
added a commit
to abn/poetry
that referenced
this issue
Oct 5, 2020
3 tasks
finswimmer
pushed a commit
that referenced
this issue
Oct 5, 2020
This change ensures that we create closer to reality scenarios when testing init command. Relates-to: #3073
finswimmer
pushed a commit
that referenced
this issue
Oct 5, 2020
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Ubuntu 16.04 (Xenial)
Poetry version: 1.1.0
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/amaralbf/f5a2d2f24b72235f5f8ff53a3182c272
Issue
First of all, thank you so much for putting so much effort into this project! It's been my favorite tool for packaging and managing my projects' dependencies.
The issue I've encountered occurs when I try to execute the
poetry init
command and:pyproject.toml
already exists (and has no poetry sections);--dependency
or--dev-dependency
are specified.If I run
poetry init
without specifying any--dependency
or--dev-dependency
, it works as expected.Example
pyproject.toml
Command:
poetry init -n --dependency numpy -vvv
Output:
Thanks again!
The text was updated successfully, but these errors were encountered: