Skip to content

Comments

export: add extras flag and exclude optional packages by default#1285

Merged
sdispater merged 1 commit intopython-poetry:developfrom
tommilligan:export-extras
Aug 8, 2019
Merged

export: add extras flag and exclude optional packages by default#1285
sdispater merged 1 commit intopython-poetry:developfrom
tommilligan:export-extras

Conversation

@tommilligan
Copy link
Contributor

  • Added tests for changed code.
  • Updated documentation for changed code.

See #1284 for issue description and feature suggestion.

This PR introduces the --extras flag for poetry export, and changes the default behaviour to exclude optional packages from the exported requirements.txt file.

This is consistent with existing behaviour for two reasons:

  • export already excludes dev packages by default
  • --extras is required by install to install optional packages

While this is a breaking change, export has not currently been released, so there should be no barrier to this making it into version 1 if the feature is accepted.

Feedback time!

Copy link
Member

@sdispater sdispater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍 Thanks!

@github-actions
Copy link

github-actions bot commented Mar 1, 2024

This pull request 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants