-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
54 lines (39 loc) · 1.07 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
all: clean install test
.PHONY: build
build-docker:
docker compose build --no-rm --parallel
install:
pip install -q -e .
dev:
python3 -m pip install --upgrade pip setuptools
python3 -m pip install -q -r requirements.txt
python3 -m pip install -q -r requirements-dev.txt
test:
docker compose run --rm shell pytest --cov=servicelayer
@echo "⚠️ you might notice a warning about a fairy from SQLAlchemy"
@echo "this is fixed in a newer release -- see https://github.com/sqlalchemy/sqlalchemy/issues/10414"
@echo "we are ignoring this for now"
test-local:
pytest --cov=servicelayer
lint:
ruff check .
format:
black .
format-check:
black --check .
shell:
docker compose run --rm shell
build:
python3 setup.py sdist bdist_wheel
release: clean build
twine upload dist/*
clean:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +