Skip to content
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 new to support --dependency & --dev-dependency #1854

Closed
2 tasks done
juhoautio opened this issue Jan 9, 2020 · 6 comments · Fixed by #9088
Closed
2 tasks done

poetry new to support --dependency & --dev-dependency #1854

juhoautio opened this issue Jan 9, 2020 · 6 comments · Fixed by #9088
Labels
area/cli Related to the command line area/init Related to 'poetry init'/project creation kind/feature Feature requests/implementations

Comments

@juhoautio
Copy link
Contributor

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Could these options be added to the poetry new command (non-interactive):

  • --dependency: Package to require with a version constraint
  • --dev-dependency: Development packages

The poetry init command (interactive) already supports these flags.

Both with multiple=True.


Maybe also these (init supports but new doesn't):

  • --description: Description of the package.
  • --author: Author of the package.

I can implement & make a PR if this makes sense to you.

@juhoautio juhoautio added the kind/feature Feature requests/implementations label Jan 9, 2020
@juhoautio juhoautio changed the title poetry new to support --dependency & --dev-dependency poetry new to support --dependency & --dev-dependency Jan 9, 2020
@Secrus
Copy link
Member

Secrus commented May 21, 2022

That could be something to be considered for future release.

@Secrus Secrus added area/init Related to 'poetry init'/project creation area/cli Related to the command line labels May 21, 2022
@juhoautio
Copy link
Contributor Author

Are you open to reviewing a pull request that implements this?

@Secrus
Copy link
Member

Secrus commented May 22, 2022

Are you open to reviewing a pull request that implements this?

If you are willing to make one, sure. However, I can't guarantee that it will be part of the next release.

@juhoautio
Copy link
Contributor Author

@Secrus I'm hoping to get feedback on my PR, I wonder if you could help with that?

I tried to tag @neersighted, but no response so far: #5710 (comment).

Thanks!

@finswimmer
Copy link
Member

I think we should make poetry new an extension of poetry init. This is why I'm closing this in favor of #2563.

@finswimmer finswimmer closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/cli Related to the command line area/init Related to 'poetry init'/project creation kind/feature Feature requests/implementations
Projects
None yet
3 participants