generated from Sallenmoore/python-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
38 lines (26 loc) · 769 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
.PHONY: all clean deepclean test tests testinit package
include .env
export
all: test clean package
package: clean
python -m build
python -m pip install --upgrade twine
twine check dist/*
twine upload dist/* --skip-existing --verbose
###### CLEANING #######
clean:
rm -rf .pytest_cache .coverage dist build *.egg-info static
###### TESTING #######
inittests: cleantests
pip install --no-cache-dir --upgrade pip wheel
pip install --upgrade -r ./requirements.txt
pip install --upgrade -r ./requirements_dev.txt
pip install -e .
cd tests && sudo docker compose up -d && docker compose logs -f
cleantests: clean
cd tests && sudo docker compose down --remove-orphans
TESTING=test_unit_ai
test:
python -m pytest -k $(TESTING)
tests:
python -m pytest