-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (37 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
44 lines (37 loc) · 1.01 KB
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
.PHONY: init help test ci flake8 publish
.DEFAULT_GOAL := init
help:
@echo make init
@echo prepare development environment, use only once
@echo make test
@echo run tests
@echo make flake8
@echo run flake8
@echo make coverage
@echo run test coverage report
@echo make test-readme
@echo test whether the readme can be rendered by pypi
@echo make doc
@echo build sphinx documentation
@echo make publish
@echo upload to pypi
init:
pip install pipenv --upgrade
pipenv install --dev --skip-lock
pipenv run python setup.py -q install
test:
# This runs all of the tests
detox
ci:
pipenv run py.test -n 8 --junitxml=report.xml
flake8:
pipenv run flake8 --exclude=.tox,*.egg,build,data .
coverage:
pipenv run py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=graphic tests
test-readme:
pip install --upgrade twine
python setup.py sdist
twine check dist/*
publish:
twine upload dist/*
rm -fr build dist .egg graphic.egg-info