-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathMakefile
54 lines (45 loc) · 1.02 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
51
52
53
54
.PHONY: install
install:
pip install "pip>=7.1.2"
pip install .[tests]
.PHONY: dev
dev:
pip3 install --upgrade setuptools pip
pip3 install --upgrade -e .[dev]
pre-commit install -f --install-hooks
.PHONY: format
format: dev
pre-commit autoupdate
pre-commit run --allow-unstaged-config --all-files
.PHONY: test
test:
pytest --strict -s tests
.PHONY: docs
docs: clean
sphinx-build -b html . ./docs
cp ./docs/README.html ./docs/index.html
pushd ./docs; zip -r ./docs.zip ./*; popd
.PHONY: clean
clean:
rm -rf ./docs ./dist ./build ./tests/dest
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
.PHONY: wipe
wipe: clean
-pip uninstall coconut
-pip uninstall coconut-develop
-pip3 uninstall coconut
-pip3 uninstall coconut-develop
-pip2 uninstall coconut
-pip2 uninstall coconut-develop
rm -rf *.egg-info
.PHONY: build
build: clean dev
python3 setup.py sdist bdist_wheel
.PHONY: upload
upload: build
pip3 install --upgrade twine
twine upload dist/*
.PHONY: check
check:
python ./coconut/requirements.py