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

DOC: dependency example not consistent with text (multiple constraint dependencies) #6603

Closed
1 task done
venaturum opened this issue Sep 23, 2022 · 1 comment · Fixed by #6604
Closed
1 task done
Labels
area/docs Documentation issues/improvements status/triage This issue needs to be triaged

Comments

@venaturum
Copy link
Contributor

venaturum commented Sep 23, 2022

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

Issue

The docs for Multiple Constraint Dependencies was updated for version 1.2 . It was previously:

Let’s say you have a dependency on the package foo which is only compatible with Python <3.0 up to version 1.9 and compatible with Python 3.4+ from version 2.0: you would declare it like so:

[tool.poetry.dependencies]
foo = [
    {version = "<=1.9", python = "^2.7"},
    {version = "^2.0", python = "^3.4"}
]

In the 1.2 docs the dependency specs have been updated without the corresponding updates required to the text above it. I.e. 1.2 docs are:

Let’s say you have a dependency on the package foo which is only compatible with Python <3.0 up to version 1.9 and compatible with Python 3.4+ from version 2.0: you would declare it like so:

[tool.poetry.dependencies]
foo = [
    {version = "<=1.9", python = "^3.6"},
    {version = "^2.0", python = "^3.8"}
]
@venaturum venaturum added area/docs Documentation issues/improvements status/triage This issue needs to be triaged labels Sep 23, 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/docs Documentation issues/improvements status/triage This issue needs to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant