-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Improve interactions between .python-version
files and project requires-python
#6372
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zanieb
commented
Aug 21, 2024
zanieb
force-pushed
the
zb/version-file-discover
branch
from
August 21, 2024 21:08
916db9c
to
df3693e
Compare
zanieb
force-pushed
the
zb/version-file-discover-project
branch
from
August 21, 2024 21:08
62dd871
to
5b48cf1
Compare
zanieb
force-pushed
the
zb/version-file-discover
branch
2 times, most recently
from
August 23, 2024 13:52
1e02b28
to
2ca5bb4
Compare
zanieb
force-pushed
the
zb/version-file-discover-project
branch
4 times, most recently
from
August 23, 2024 16:07
ff3d300
to
584401d
Compare
zanieb
force-pushed
the
zb/version-file-discover
branch
from
September 16, 2024 22:29
2ca5bb4
to
6f07881
Compare
Basically, yes. We will do our best to respect |
zanieb
force-pushed
the
zb/version-file-discover
branch
from
October 1, 2024 22:45
6f07881
to
3564e75
Compare
zanieb
force-pushed
the
zb/version-file-discover-project
branch
from
October 2, 2024 16:06
584401d
to
fdde4bf
Compare
zanieb
force-pushed
the
zb/version-file-discover
branch
6 times, most recently
from
October 4, 2024 16:07
0c31b66
to
932048f
Compare
zanieb
added a commit
that referenced
this pull request
Nov 4, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
zanieb
added a commit
that referenced
this pull request
Nov 4, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
zanieb
added a commit
that referenced
this pull request
Nov 5, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
charliermarsh
pushed a commit
that referenced
this pull request
Nov 6, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
charliermarsh
pushed a commit
that referenced
this pull request
Nov 6, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
charliermarsh
pushed a commit
that referenced
this pull request
Nov 6, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
zanieb
added a commit
that referenced
this pull request
Nov 7, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
zanieb
added a commit
that referenced
this pull request
Nov 7, 2024
…6370) Uses #6369 for test coverage. Updates version file discovery to search up into parent directories. Also refactors Python request determination to avoid duplicating the user request / version file / workspace lookup logic in every command (this supersedes the work started in #6372). There is a bit of remaining work here, mostly around documentation. There are some edge-cases where we don't use the refactored request utility, like `uv build` — I'm not sure how I'm going to handle that yet as it needs a separate root directory.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #5228
Required for #6370
This ensures that we
.python-version
files outside of projects if they specify a version that's incompatible with therequires-python
.python-version
files inside a project are incompatible with therequires-python
Unfortunately, this totally falls apart if the
.python-version
file isn't a version specifier, e.g., if it's an interpreter path.This begins to create a unified place to determine the
PythonRequest
to use — it's getting really complicated.