-
Notifications
You must be signed in to change notification settings - Fork 12
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
Remove uv
as a direct dependency
#299
base: develop
Are you sure you want to change the base?
Conversation
uv
as a direct dependencyuv
as a direct dependency
uv
as a direct dependencyuv
as a direct dependency
uv
as a direct dependencyuv
as a direct dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall happy with the MR but can we document this behavior to make it easily discoverable ? Something like "kraken is using uv
from the $PATH
. If you use a custom uv, make sure it is available in there"
try: | ||
response = sp.check_output(command, cwd=self.project_directory, env=environ).decode().strip() | ||
except sp.CalledProcessError as exc: | ||
if exc.returncode != 1: | ||
raise | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find that the management of the error and returned value between this block and the parent function get_path
is a bit weird. However, this is inspired by the PoetryManagedEnvironment
and PdmManagedEnvironment
so I went this this approach for consistency.
b70189b
to
4b825c7
Compare
@vsiles , I added a note in the documentation based on your suggestion. Let me know what you think. |
7c5a5d5
to
36017a1
Compare
4b825c7
to
f6ce255
Compare
f6ce255
to
9efe461
Compare
This mimics how other package managers are operated, that is by assuming they are installed by the user and available via the
PATH
environment variable. This will also reduce potential mismatches between the different installed versions.Stacked on #297