-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: python dependency specification (#2483)
Co-authored-by: universalmind303 <cory.grinstead@gmail.com>
- Loading branch information
1 parent
ae48792
commit aad410f
Showing
6 changed files
with
38 additions
and
26 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,29 +1,25 @@ | ||
set fallback | ||
VENV := env_var_or_default("VENV", "../../.venv") | ||
VENV := env_var_or_default("VENV", ".venv") | ||
VENV_BIN := VENV / "bin" | ||
|
||
@venv: | ||
python3 -c "import virtualenv" || python3 -m pip --quiet install virtualenv | ||
python3 -m virtualenv {{VENV}} --quiet | ||
|
||
## Set up virtual environment and install requirements | ||
@requirements: venv | ||
{{VENV_BIN}}/python -m pip --quiet install --upgrade pip | ||
{{VENV_BIN}}/pip --quiet install -r requirements.txt | ||
if python3 -c "import virtualenv"; then python3 -m virtualenv {{VENV}}; else python3 -m venv {{VENV}}; fi | ||
{{VENV_BIN}}/python -m pip install --upgrade pip | ||
{{VENV_BIN}}/pip install -r requirements.txt | ||
|
||
## Compile and install py-glaredb for development | ||
build *args: requirements | ||
build *args: | ||
@unset CONDA_PREFIX | ||
{{VENV_BIN}}/maturin develop {{args}} | ||
|
||
test: requirements | ||
{{VENV_BIN}}/pytest -s | ||
test: | ||
{{VENV_BIN}}/pytest --rootdir={{justfile_directory()}} | ||
|
||
## Run autoformatting and linting | ||
fmt: venv | ||
fmt: | ||
{{VENV_BIN}}/ruff . | ||
{{VENV_BIN}}/mypy | ||
cargo fmt --all | ||
|
||
example path: requirements | ||
example path: | ||
{{VENV_BIN}}/python examples/{{path}}.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
maturin==1.0.1 | ||
virtualenv==20.23.1 | ||
ruff==0.0.275 | ||
# this requirements.txt is for development deps only | ||
maturin==1.4.0 | ||
black==23.3.0 | ||
blackdoc==0.3.8 | ||
mypy==1.3.0 | ||
pytest | ||
ruff==0.0.275 | ||
typos==1.15 | ||
pyarrow | ||
pandas | ||
polars | ||
pytest | ||
pandasai | ||
great_expectations[postgresql] | ||
great_expectations | ||
pyarrow |
Empty file.
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