Poetry: `poetry new` refuses to run on an existing dir - no way to override according to help options.

Created on 30 Sep 2019  Â·  7Comments  Â·  Source: python-poetry/poetry

  • [x ] I am on the latest Poetry version.
  • [x ] I have searched the issues of this repo and believe that this is not a duplicate.

Issue

I was just trying to start a new project. I created a git repo, then ran "poetry new --src ." and it failed as follows:

[RuntimeError]                                        
Destination /.../myproject exists and is not empty

Caution in a tool of this nature is well warranted, but allowing me to say "I know, I don't care, just do it" should also be an option.

Bug

Most helpful comment

I'm not the developer, so I can't fully answer your question, but I think
the new command exists for people who don't already have an existing
project structure.

On Mon, Oct 14, 2019 at 5:42 PM Curtis Maloney notifications@github.com
wrote:

In that case, why have it at all? Is it not a pointless, confusing
duplicate of init?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sdispater/poetry/issues/1422?email_source=notifications&email_token=AG6L6WL2HTPPJNOLWWBZO7LQOTRTZA5CNFSM4I3U4GU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBGVIZY#issuecomment-541938791,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6L6WLCKN5Y7MRAUVHQU4LQOTRTZANCNFSM4I3U4GUQ
.

--
Julian DeMille

CEO, demilleTech, LLC.

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.

All 7 comments

изображение
Have the same problem.

Go into the directory and run poetry init.

poetry init does not offer the --src option.

The --src options seems to just make src and tests directories. I don't see anything special in the pyproject.toml file.

In that case, why have it at all? Is new not then a pointless, confusing duplicate of init?

I'm not the developer, so I can't fully answer your question, but I think
the new command exists for people who don't already have an existing
project structure.

On Mon, Oct 14, 2019 at 5:42 PM Curtis Maloney notifications@github.com
wrote:

In that case, why have it at all? Is it not a pointless, confusing
duplicate of init?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sdispater/poetry/issues/1422?email_source=notifications&email_token=AG6L6WL2HTPPJNOLWWBZO7LQOTRTZA5CNFSM4I3U4GU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBGVIZY#issuecomment-541938791,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6L6WLCKN5Y7MRAUVHQU4LQOTRTZANCNFSM4I3U4GUQ
.

--
Julian DeMille

CEO, demilleTech, LLC.

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended recipient
you are notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this information is strictly
prohibited.

@jdemilledt is correct.

poetry new is for creating a new project. It creates a folder (and thus can't create one if you pass it an existing folder). So proper use is poetry new non-existing-folder

For an exising folder use poetry init

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sobolevn picture sobolevn  Â·  3Comments

probablykasper picture probablykasper  Â·  3Comments

EdgyEdgemond picture EdgyEdgemond  Â·  3Comments

AWegnerGitHub picture AWegnerGitHub  Â·  3Comments

ambv picture ambv  Â·  3Comments