-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (39 loc) · 1.02 KB
/
Makefile
File metadata and controls
48 lines (39 loc) · 1.02 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
UV_VERSION=0.7.20
lint-check:
ruff check --no-fix
ruff format --check
lint:
ruff check --fix
ruff format
bundle:
bash -c '\
detect_arch() { \
arch=$$(uname -m | tr "[:upper:]" "[:lower:]"); \
if [ "$$arch" = "aarch64" ] || [ "$$arch" = "arm64" ]; then \
echo arm64; \
elif [ "$$arch" = "x86_64" ] || [ "$$arch" = "amd64" ]; then \
echo amd64; \
fi; \
}; \
ARCH=$$(detect_arch); \
OS=$$(uname -s | tr "[:upper:]" "[:lower:]"); \
TAR_NAME=rml-$$OS-$$ARCH.tar.gz; \
pyinstaller src/rml/__init__.py --name rml --noconfirm; \
tar -czf dist/$$TAR_NAME -C dist rml/;'
install:
uv sync --locked
install-test:
uv sync --locked --extra test
install-dev:
uv sync --locked --extra test --extra dev
pre-commit install
pre-commit autoupdate
unit-test: lint-check
pytest --durations=10 tests/unit/
test: unit-test
bump-version:
@if [ -z "$(version)" ]; then \
echo "Error: version argument is required. Usage: make bump-version version=X.Y.Z"; \
exit 1; \
fi
uv version $(version)