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

Add support for dependency groups #183

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Add support for dependency groups #183

merged 1 commit into from
Jul 23, 2021

Conversation

sdispater
Copy link
Member

This PR adds support for dependency groups at the core level (PR on the Poetry side to follow).

Basically, dependency groups can be declared in the pyproject.toml file like so:

[tool.poetry.group.dev.dependencies]
black = "*"

[tool.poetry.group.test.dependencies]
pytest = "*"

There is also support for optional dependency groups that can be opted in:

[tool.poetry.group]
optional = true

[tool.poetry.group.docsdependencies]
mkdocs = "*"

Groups can be excluded, opted in and exclusively selected via specific methods on the Package class.

Resolves: python-poetry/poetry#1644

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

@sdispater sdispater requested a review from a team July 7, 2021 18:27
@sdispater sdispater force-pushed the dependency-groups branch 2 times, most recently from 51d7a8f to c81924f Compare July 7, 2021 19:03
@sdispater sdispater force-pushed the dependency-groups branch from c81924f to f3215b7 Compare July 7, 2021 19:46
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sdispater sdispater merged commit afaa690 into master Jul 23, 2021
@sdispater sdispater deleted the dependency-groups branch July 23, 2021 09:42
@sdispater sdispater mentioned this pull request Jul 30, 2021
@davidszotten
Copy link

is the plan to keep these groups as a separate concept to tool.poetry.extras (ie to generate extras_require)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support dependencies groups
2 participants