-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #718 from SUNET/lundberg_uv
switch from pip-tools to uv for pip compile and pip sync
- Loading branch information
Showing
18 changed files
with
2,028 additions
and
1,806 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
PYTHON=$(shell which python) | ||
PIPCOMPILE=pip-compile -v --upgrade --generate-hashes --allow-unsafe --index-url https://pypi.sunet.se/simple | ||
PIPSYNC=pip-sync --index-url https://pypi.sunet.se/simple --python-executable $(PYTHON) | ||
UV=$(shell which uv) | ||
PIPCOMPILE=$(UV) pip compile --upgrade --generate-hashes --no-strip-extras --index-url https://pypi.sunet.se/simple --emit-index-url | ||
PIPSYNC=$(UV) pip sync --index-url https://pypi.sunet.se/simple | ||
|
||
update_deps: sub_main.txt main.txt $(patsubst %_requirements.in,%_requirements.txt,$(wildcard *_requirements.in)) | ||
|
||
main.txt: sub_main.in main.in | ||
CUSTOM_COMPILE_COMMAND="make update_deps" $(PIPCOMPILE) main.in | ||
CUSTOM_COMPILE_COMMAND="make update_deps" $(PIPCOMPILE) main.in -o $@ | ||
|
||
sub_main.txt: sub_main.in | ||
CUSTOM_COMPILE_COMMAND="make update_deps" $(PIPCOMPILE) sub_main.in | ||
CUSTOM_COMPILE_COMMAND="make update_deps" $(PIPCOMPILE) sub_main.in -o $@ | ||
|
||
%_requirements.txt: %_requirements.in | ||
CUSTOM_COMPILE_COMMAND="make update_deps" $(PIPCOMPILE) $< | ||
CUSTOM_COMPILE_COMMAND="make update_deps" $(PIPCOMPILE) $< -o $@ | ||
|
||
dev_sync_deps: | ||
@test $${VIRTUAL_ENV?virtual env not activated} | ||
$(PIPSYNC) test_requirements.txt |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ pip-tools | |
pytest | ||
pytest-cov | ||
respx | ||
pip-tools | ||
uv | ||
motor-types | ||
ruff |
Oops, something went wrong.