forked from alteryx/woodwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 1.23 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
.PHONY: clean
clean:
find . -name '*.pyo' -delete
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
find . -name '*~' -delete
.PHONY: lint
lint:
flake8 woodwork && isort --check-only woodwork
.PHONY: lint-fix
lint-fix:
autopep8 --in-place --recursive --max-line-length=100 --exclude="*/migrations/*" --select="E225,E303,E302,E203,E128,E231,E251,E271,E127,E126,E301,W291,W293,E226,E306,E221,E261,E111,E114" woodwork
isort woodwork
.PHONY: test
test: lint
pytest woodwork/
.PHONY: testcoverage
testcoverage: lint
pytest woodwork/ --cov=woodwork
.PHONY: installdeps
installdeps:
pip install --upgrade pip
pip install -e .
pip install -r dev-requirements.txt
.PHONY: installdeps-test
installdeps-test:
pip install -r test-requirements.txt
.PHONY: installdeps-dev
installdeps-dev:
pip install -r dev-requirements.txt
.PHONY: checkdeps
checkdeps:
$(eval allow_list='numpy|pandas|scikit|click|pyarrow|distributed|dask|pyspark|koalas')
pip freeze | grep -v "woodwork.git" | grep -E $(allow_list) > $(OUTPUT_PATH)
.PHONY: package_woodwork
package_woodwork:
python setup.py sdist
$(eval DT_VERSION=$(shell python setup.py --version))
tar -zxvf "dist/woodwork-${DT_VERSION}.tar.gz"
mv "woodwork-${DT_VERSION}" unpacked_sdist