forked from orm011/pgserver
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 855 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 855 Bytes
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
.DEFAULT_GOAL := build
.PHONY: check-conda build wheel install-wheel install-dev test clean
check-conda:
ifdef CONDA_DEFAULT_ENV
ifeq ($(CONDA_DEFAULT_ENV),base)
$(error pixeltable-pgserver must be installed from a conda environment (not `base`))
endif
else
$(error pixeltable-pgserver must be installed from a conda environment)
endif
build:
$(MAKE) -d -C pgbuild all
wheel: build
python setup.py bdist_wheel
install-wheel: wheel
python -m pip install dist/*.whl
install-dev: check-conda build
python -m pip install -e .[dev,test]
test: pytest check
pytest:
python -m pytest -v tests/
check:
mypy src tests
ruff check src tests
ruff format --check src tests
ruff check --select I src tests
format:
ruff format src tests
ruff check --select I --fix src tests
clean:
rm -rf build/ wheelhouse/ dist/ .eggs/
$(MAKE) -C pgbuild clean