forked from SeldonIO/alibi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (39 loc) · 946 Bytes
/
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: install
install:
pip install -e .
.PHONY: test
test:
python setup.py test
.PHONY: lint
lint:
flake8 .
.PHONY: mypy
mypy:
mypy .
.PHONY: build_docs
build_docs:
# sphinx-apidoc -o doc/source/api alibi '**/*test*' -M
$(MAKE) -C doc html
.PHONY: clean_docs
clean_docs:
$(MAKE) -C doc clean
rm -r doc/source/api
.PHONY: build_pypi
build_pypi:
python setup.py sdist bdist_wheel
.PHONY: push_pypi_test
push_pypi_test:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
.PHONY: push_pypi
push_pypi:
twine upload dist/*
.PHONY: licenses
licenses:
# create a tox environment and pull in license information
tox --recreate -e licenses
cut -d, -f1,3 ./licenses/license_info.csv \
> ./licenses/license_info.no_versions.csv
.PHONY: check_licenses
# check if there has been a change in license information, used in CI
check_licenses:
git --no-pager diff --exit-code ./licenses/license_info.no_versions.csv