canonical / craft-parts

https://canonical-craft-parts.readthedocs-hosted.com
GNU Lesser General Public License v3.0
11 stars 37 forks source link

`python-extras` keyword for Python plugin #657

Open lengau opened 9 months ago

lengau commented 9 months ago

What needs to get done

It would be nice to have a python-extras keyword for the python plugin that will install the given package with any extras specified.

Example:

parts:
  codespell:
    plugin: python
    source: https://github.com/codespell-project/codespell
    source-type: git
    source-tag: v2.2.6
    source-depth: 1
    python-extras:
        - toml

would at the appropriate place run

pip install -U .[toml]

Why it needs to get done

Quality of life improvement

syncronize-issues-to-jira[bot] commented 8 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2520.

This message was autogenerated