forked from 3D-Beacons/3d-beacons-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 917 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
default: test
clean-pyc:
@find . -iname '*.py[co]' -delete
@find . -iname '__pycache__' -delete
clean-pytest:
rm -rf .pytest_cache
clean-dist:
@rm -rf dist/
@rm -rf build/
@rm -rf *.egg-info
clean: clean-pyc clean-pytest clean-dist
analyze:
# stop the build if there are Python syntax errors or undefined names
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics ./beacons_bio_3d
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=migrations ./beacons_bio_3d
test:
pytest --cov-config=.coveragerc --cov-report=html --cov=beacons_bio_3d .
dist: clean
python3 setup.py sdist
python3 setup.py bdist_wheel
version: dist
python3 setup.py --version
license: dist
python3 setup.py --license
dev_deps:
pip install six jsonschema pytest-cov pytest-xdist flake8 wheel