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

chore(python): Use uv for make requirements #14618

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ FILTER_PIP_WARNINGS=| grep -v "don't match your environment"; test $${PIPESTATUS

.PHONY: requirements
requirements: .venv ## Install/refresh Python project requirements
$(VENV_BIN)/python -m pip install --upgrade pip
$(VENV_BIN)/pip install --upgrade -r py-polars/requirements-dev.txt
$(VENV_BIN)/pip install --upgrade -r py-polars/requirements-lint.txt
$(VENV_BIN)/pip install --upgrade -r py-polars/docs/requirements-docs.txt
$(VENV_BIN)/pip install --upgrade -r docs/requirements.txt
$(VENV_BIN)/python -m pip install --upgrade uv
$(VENV_BIN)/uv pip install --upgrade -r py-polars/requirements-dev.txt
$(VENV_BIN)/uv pip install --upgrade -r py-polars/requirements-lint.txt
$(VENV_BIN)/uv pip install --upgrade -r py-polars/docs/requirements-docs.txt
$(VENV_BIN)/uv pip install --upgrade -r docs/requirements.txt

.PHONY: build
build: .venv ## Compile and install Python Polars for development
Expand Down
2 changes: 0 additions & 2 deletions py-polars/docs/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
--prefer-binary

numpy
pandas
pyarrow
Expand Down
2 changes: 0 additions & 2 deletions py-polars/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# We're not pinning package dependencies, because our tests need to pass with the
# latest version of the packages.

--prefer-binary

# -----
# BUILD
# -----
Expand Down