-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (46 loc) · 1.96 KB
/
Makefile
File metadata and controls
58 lines (46 loc) · 1.96 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
reset:
rm -rf sentry_streams/.venv
cd sentry_streams && cargo clean
.PHONY: reset
install-dev:
which uv || (curl -LsSf https://astral.sh/uv/0.7.13/install.sh | sh)
uv sync --project ./sentry_streams
PROJECT_ROOT=`pwd`/sentry_streams_k8s uv sync --project ./sentry_streams_k8s
.PHONY: install-dev
install-pre-commit-hook:
./sentry_streams/.venv/bin/pre-commit install --install-hooks
.PHONY: install-pre-commit-hook
tests-streams:
./sentry_streams/.venv/bin/pytest -vv sentry_streams/tests
.PHONY: tests-streams
tests-integration:
./sentry_streams/.venv/bin/pytest -vv sentry_streams/integration_tests
.PHONY: tests-integration
test-rust-streams: tests-rust-streams
.PHONY: test-rust-streams
tests-rust-streams:
. sentry_streams/.venv/bin/activate && . scripts/rust-envvars && cd ./sentry_streams/ && cargo test
.PHONY: tests-rust-streams
tests-k8s:
./sentry_streams_k8s/.venv/bin/pytest -vv sentry_streams_k8s/tests
.PHONY: tests-k8s
typecheck:
. ./sentry_streams/.venv/bin/activate && cd ./sentry_streams/sentry_streams/examples/rust_simple_map_filter/rust_transforms/ && maturin develop
. ./sentry_streams/.venv/bin/activate && cd ./sentry_streams/tests/rust_test_functions/ && maturin develop
./sentry_streams/.venv/bin/mypy --config-file sentry_streams/mypy.ini --strict sentry_streams/
./sentry_streams_k8s/.venv/bin/mypy --config-file sentry_streams_k8s/mypy.ini --strict sentry_streams_k8s/sentry_streams_k8s/
.PHONY: typecheck
build-streams:
cd sentry_streams && uv pip install wheel
cd sentry_streams && uv pip install build
cd sentry_streams && .venv/bin/python -m build --wheel
.PHONY: build-streams
build-streams-k8s:
cd sentry_streams_k8s && uv pip install wheel
cd sentry_streams_k8s && uv pip install build
cd sentry_streams_k8s && .venv/bin/python -m build --wheel
.PHONY: build-streams-k8s
docs:
uv sync --project ./sentry_streams --group docs
./sentry_streams/.venv/bin/sphinx-build -b html sentry_streams/docs/source/ sentry_streams/docs/build/
.PHONY: docs