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

prefers uv over pip if found #1940

Merged
merged 3 commits into from
Oct 10, 2024
Merged

prefers uv over pip if found #1940

merged 3 commits into from
Oct 10, 2024

Conversation

rudolfix
Copy link
Collaborator

@rudolfix rudolfix commented Oct 9, 2024

Description

see commit list

@rudolfix rudolfix requested a review from burnash October 9, 2024 16:08
Copy link

netlify bot commented Oct 9, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 5f0114f
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/6706aa5da776070008b91952

Copy link
Collaborator

@burnash burnash left a comment

Choose a reason for hiding this comment

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

I'd rename PIP_TOOL to something more clear and explicit, DEPENDENCY_MANAGER, or PACKAGE_INSTALLER

@@ -22,6 +23,8 @@ def post_setup(self, context: types.SimpleNamespace) -> None:
class Venv:
"""Creates and wraps the Python Virtual Environment to allow for code execution"""

PIP_TOOL: ClassVar[str] = os.environ.get(known_env.DLT_PIP_TOOL, None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe DEPENDENCY_MANAGER? This communicates the purpose of the var more explicitly

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

those are good points. but PIP means "Preferred Installer Program" so I think the name here... we can still change it before next release... maybe by expanding the acronym

@rudolfix rudolfix merged commit 47633c6 into devel Oct 10, 2024
60 of 61 checks passed
@rudolfix rudolfix deleted the feat/prefer-uv branch October 10, 2024 14:08
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.

2 participants