-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (32 loc) · 679 Bytes
/
Makefile
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
test-env:
python3.10 -m venv ./env \
&& . ./env/bin/activate \
&& pip install maturin
link:
maturin develop
.PHONY: activate
activate:
. ./env/bin/activate
.PHONY: link-actv
link-actv: activate link
run:
target/debug/spvn
changelog:
git-changelog -o CHANGELOG.md
.PHONY: vars
unexport CONDA_PREFIX
vars:
export PYO3_PYTHON=./env/bin/python
lint:
black ./**/**.py && \
ruff check . --fix && \
cargo fix --allow-dirty
prof-bin:
cargo instruments --bin spvn \
--template sys serve \
--target dotest.foo:app
#### perf testing things ###
uvicorn_env:
uvicorn dotest.foo:app --port 9009
hypercorn_env:
hypercorn dotest.baz:app --bind localhost:9010