-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a0e456
commit c008202
Showing
8 changed files
with
32 additions
and
23 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,23 +1,29 @@ | ||
SHELL=/bin/bash | ||
|
||
venv: ## Set up virtual environment | ||
python3 -m venv .venv | ||
.venv/bin/pip install -r requirements.txt | ||
VENV=.venv | ||
|
||
install: venv | ||
unset CONDA_PREFIX && \ | ||
source .venv/bin/activate && maturin develop -m Cargo.toml | ||
ifeq ($(OS),Windows_NT) | ||
VENV_BIN=$(VENV)/Scripts | ||
else | ||
VENV_BIN=$(VENV)/bin | ||
endif | ||
|
||
.venv: | ||
python3 -m venv $(VENV) | ||
$(MAKE) dev-requirements | ||
|
||
requirements: .venv | ||
@unset CONDA_PREFIX \ | ||
&& $(VENV_BIN)/python -m pip install --upgrade uv \ | ||
&& $(VENV_BIN)/uv pip install --upgrade -r requirements.txt \ | ||
&& $(VENV_BIN)/uv pip install --upgrade -r requirements.txt \ | ||
&& $(VENV_BIN)/uv pip install --upgrade -r tests/requirements-test.txt \ | ||
&& $(VENV_BIN)/uv pip install --upgrade -r docs/requirements-docs.txt \ | ||
|
||
dev-release: venv | ||
dev-release: .venv | ||
unset CONDA_PREFIX && \ | ||
source .venv/bin/activate && maturin develop --release -m Cargo.toml | ||
|
||
pre-commit: venv | ||
pre-commit: .venv | ||
cargo fmt | ||
pre-commit run --all-files | ||
|
||
# run: install | ||
# source .venv/bin/activate && python run.py | ||
|
||
# run-release: install-release | ||
# source venv/bin/activate && python run.py |
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
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,2 +1,3 @@ | ||
maturin[patchelf] | ||
polars | ||
pre-commit |
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