1
0
Fork 0
sqlglot/Makefile
Daniel Baumann 0b78a18345
Adding upstream version 25.20.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-13 21:53:56 +01:00

42 lines
776 B
Makefile

.PHONY: install install-dev install-pre-commit test unit style check docs docs-serve
install:
pip install -e .
install-dev-rs-release:
cd sqlglotrs/ && python -m maturin develop -r
install-dev-rs:
@unset CONDA_PREFIX && \
cd sqlglotrs/ && python -m maturin develop
install-dev-core:
pip install -e ".[dev]"
install-dev: install-dev-core install-dev-rs
install-pre-commit:
pre-commit install
test:
SQLGLOTRS_TOKENIZER=0 python -m unittest
test-rs:
RUST_BACKTRACE=1 python -m unittest
unit:
SKIP_INTEGRATION=1 SQLGLOTRS_TOKENIZER=0 python -m unittest
unit-rs:
SKIP_INTEGRATION=1 RUST_BACKTRACE=1 python -m unittest
style:
pre-commit run --all-files
check: style test test-rs
docs:
python pdoc/cli.py -o docs
docs-serve:
python pdoc/cli.py --port 8002