-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (50 loc) · 2.12 KB
/
Makefile
File metadata and controls
60 lines (50 loc) · 2.12 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Makefile
usage:
@echo "usage:"
@echo "\tmake build"
@echo "\tmake test"
@echo "\tmake test-install"
@echo "\tmake local-install"
build:
@echo "***************************************************************************"
@echo "*** Upgrade to the latest python build"
@echo "***************************************************************************"
python -m pip install -U uv
python -m uv pip install -U pip
python -m uv pip install -U build
@echo "\n"
@echo "***************************************************************************"
@echo "*** Build software package"
@echo "***************************************************************************"
PYTHONWARNINGS=error python -m build
@echo "\n"
@echo "***************************************************************************"
@echo "*** Install package into the current active Python environment"
@echo "***************************************************************************"
python -m uv pip install -e .
test:
@echo "***************************************************************************"
@echo "*** Running coverage tests"
@echo "***************************************************************************"
coverage run
@echo "\n"
@echo "## Create an HTML report of the coverage of the files"
coverage html
@echo "\n"
@echo "## Report coverage statistics on modules"
coverage report
test-install:
@echo "***************************************************************************"
@echo "*** Install test dependencies into current active Python env"
@echo "***************************************************************************"
python -m pip install -U uv
python -m uv pip install -U pip
python -m uv pip install -e .[test]
local-install:
@echo "***************************************************************************"
@echo "*** Install test dependencies into current active Python env"
@echo "***************************************************************************"
python -m pip install -U uv
python -m uv pip install -U pip
python -m uv pip install -e .[local,test]
.PHONY: help build test local-install test-install