Skip to content

Adding automatic fetch of license file when calling init command #9178

@quentinhaenn

Description

@quentinhaenn

Issue Kind

Brand new capability

Description

  • 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.

I just started a python initializer project on my own and several colleagues told me your tool exist. After digging into it, it came out that Poetry is a wonderful tool for managing python project. However, I implemented a feature that load License content and fill the license file associated with the project. As I supposed a great part of project using poetry might either be open licensed or using a commonly used license, it would be great to implement this one in Poetry.

One may also think about another feature that woould be changing the license tag (eg from MIT to gpl-3.0) in pyproject.toml and using poetry update pulling the new license required.

Impact

I believe that this would be a great feature in Poetry as it pushed me to develop my own solution to create python projects from scratch using a simple CLI.
I would love to see a --license' option to pass to poetry new` command, choosing the "MIT" license as default behavior and pulling the license body and adding it into the LICENSE file directly at project creation. Not a great gain of time but I certainly support it as comfort gain.

Workarounds

Not really a workaround but my own implementation of this feature is accessible on Pypi as pyproject-init and on GitHub

I know several other tools already exists on PyPi doing same but submitting it to Poetry seemed the thing to do.

Also, I'd like to contribute by implementing it by myself and submitting a PR but the legacy codebase is pretty huge and I am facing difficulties to navigate in.

I know this seems a very tiny improvement but I'd really like to see it in a great tool like Poetry 😃

Please let me know if this feature may be of interest and if I can contribute in any way !
Thanks in advance 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementationsstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions