-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 1.14 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
.PHONY: help clean dev docs package test
help:
@echo "The following make targets are available:"
@echo " devenv create venv and install all deps for dev env (assumes python3 cmd exists)"
@echo " dev install all deps for dev env (assumes venv is present)"
@echo " docs create pydocs for all relveant modules (assumes venv is present)"
@echo " package package for pypi"
@echo " test run all tests with coverage (assumes venv is present)"
devenv:
pip uninstall -y pyspark
pip3 install -r requirements.txt
pre-commit install
devdb:
pip uninstall -y pyspark
pip3 install -r requirements.txt
pip install .[databricks]
docs:
rm -rf docs/api
rm -rf docs/build
sphinx-apidoc --no-toc -f -t=docs/_templates -o docs/api fugue_cloudprovider/
sphinx-build -b html docs/ docs/build/
lint:
pre-commit run --all-files
lab:
pip install .
jupyter lab --port=8888 --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.allow_origin='*'
package:
rm -rf dist/*
python3 setup.py sdist
python3 setup.py bdist_wheel
test:
python3 -bb -m pytest tests/
testdb:
python3 -bb -m pytest tests/fugue_databricks