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

(documentation) clarify that upper range does not include patch versions #1877

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sarah-kamall
Copy link

@sarah-kamall sarah-kamall commented Nov 12, 2024

Closes #1824

include patch versions

Signed-off-by: sarah-kamall <[email protected]>
@sarah-kamall sarah-kamall requested a review from a team as a code owner November 12, 2024 22:47
Copy link
Member

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Choose a reason for hiding this comment

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

Hi @sarah-kamall, thanks for contributing this change. I took a closer look at the docs and it feels like this is already covered in the docs. In foo-1.2+<2, we document how the requests work and we have an example for foo-1.2+<2 that explicitly says foo-1.2 or greater, but less than 2 and gives some examples like foo-1.2.0, foo-1.6.4, foo-1.99.

I'll leave this open in case you want to maybe make the example clearer or rework that section of the doc.

@@ -121,7 +121,7 @@ of each attribute):
env.PYTHONPATH.append("{root}/python")
env.PATH.append("{root}/bin")

The :attr:`requires` section defines the requirements of the package. The :func:`commands` section describes
The :attr:`requires` section defines the requirements of the package, excluding *any* subsequent patch versions. The :func:`commands` section describes

Choose a reason for hiding this comment

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

I feel like this could be added to the "Package Requests" section. And in theory it's already covered by the foo-1.2+<2 example, isn't it?

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

Successfully merging this pull request may close these issues.

Weak Requirement Range Causes Conflict
2 participants