-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (53 loc) · 1.29 KB
/
Copy pathMakefile
File metadata and controls
77 lines (53 loc) · 1.29 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
uname := $(shell uname)
shellcheck=shellcheck
ifeq ($(uname),CYGWIN_NT-10.0-19044)
shellcheck=bash -n
endif
ifeq ($(uname),Windows)
shellcheck=:
endif
make: server
all: build_server build_client
deps:
uv venv
uv pip install -r requirements.txt
check_client:
uvx mypy client__main__.py
check_server:
uvx mypy server__main__.py
build_client:
uv run python scripts/build_client_zipapp.py
build_server:
uv run python scripts/build_server_zipapp.py
rc:
uv run python scripts/mark_as_release_candidate.py
test_parser:
uv run python test_parser.py
server:
uv run python server__main__.py
client:
uv run python client__main__.py
built_server:
uv run python uredis-server.pyz
built_client:
uv run python uredis-client.pyz
package:
uv run python create_release_pkg.py
test: test_parser
build_docker:
uv run python scripts/build_docker_image.py
run_docker:
uv run python scripts/run_docker_container.py
shellcheck:
$(shellcheck) uredis-setup.sh
update: shellcheck deploy
@echo
@copyparty_sync
webserver: package
uv run python create_uredis_install_script_localhost.py
cd localhost && uv run python -m http.server
deploy: package
uv run python create_uredis_install_script_stpettersen_xyz.py
clean:
@echo Cleaning PYZs and ZIPs for server and client...
uv run python scripts/clear_pyz.py