-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 861 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
.PHONY: tests clean lint install install-deps install-dev-deps uninstall build publish
clean:
rm -rf *.egg-info __pycache__ .pytest_cache .coverage dist
install-deps:
python3.8 -m pip install -r requirements.txt
install-dev-deps:
python3.8 -m pip install -r dev-requirements.txt
install: install-deps
python3.8 -m pip install .
build:
python3.8 setup.py sdist bdist_wheel
uninstall:
python3.8 -m pip uninstall .
tests: install-deps install-dev-deps
python3.8 -m pytest --ignore W -v --junit-xml=test-results.xml tests/
lint: install-dev-deps
python3.8 -m flake8 shell_database
coverage: install-deps install-dev-deps
python3.8 -m coverage run --branch --source shell_database -m pytest -- tests
python3.8 -m coverage xml --omit=**/__init__.py
publish: build install-dev-deps
python3.8 -m twine check dist/*
python3.8 -m twine upload dist/*