-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
50 lines (41 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: help clean dev docs package test
# .EXPORT_ALL_VARIABLES:
# ARROW_PRE_0_15_IPC_FORMAT = 0
devenv:
pip3 install -r requirements.txt
pre-commit install
pip3 freeze
docs:
rm -rf docs/api
rm -rf docs/api_sql
rm -rf docs/api_spark
rm -rf docs/api_dask
rm -rf docs/api_duckdb
rm -rf docs/api_ibis
rm -rf docs/build
sphinx-apidoc --no-toc -f -t=docs/_templates -o docs/api fugue/
sphinx-apidoc --no-toc -f -t=docs/_templates -o docs/api_sql fugue_sql/
sphinx-apidoc --no-toc -f -t=docs/_templates -o docs/api_spark fugue_spark/
sphinx-apidoc --no-toc -f -t=docs/_templates -o docs/api_dask fugue_dask/
sphinx-apidoc --no-toc -f -t=docs/_templates -o docs/api_duckdb fugue_duckdb/
sphinx-apidoc --no-toc -f -t=docs/_templates -o docs/api_ibis fugue_ibis/
sphinx-build -b html docs/ docs/build/
lint:
pre-commit run --all-files
package:
rm -rf dist/*
python3 setup.py sdist
python3 setup.py bdist_wheel
jupyter:
mkdir -p tmp
pip install .
jupyter notebook --port=8888 --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.allow_origin='*'
test:
python3 -bb -m pytest --reruns 2 --only-rerun 'Overflow in cast' --only-rerun 'Table or view not found' tests/
installlocal:
python scripts/make_setup.py 1
pip install -e .
python scripts/make_setup.py 0
pip install -e .
sql:
scripts/generate_code.sh