-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
40 lines (31 loc) · 930 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
35
36
37
38
39
40
install_uv:
@if ! command -v uv >/dev/null 2>&1; then \
curl -LsSf https://astral.sh/uv/install.sh | sh; \
fi
setup:
make install_uv
uv venv
uv pip install .[test]
lint:
. .venv/bin/activate; ruff format .
check-lint:
. .venv/bin/activate; ruff check .
test:
. .venv/bin/activate; pytest -v tests/
coverage:
. .venv/bin/activate; coverage run -m pytest -v tests && coverage html && open htmlcov/index.html
build-wheel:
pip wheel --no-deps -w dist .
clean:
rm -rf .venv build dist wampproto.egg-info
publish-build:
rm -rf ./dist ./build
.venv/bin/python -m build --sdist
.venv/bin/twine check dist/*
@echo ========================================================
@echo
@echo now run .venv/bin/twine upload dist/newly_created.tar.gz
build-wampproto:
rm -rf wampproto-cli
git clone https://github.com/xconnio/wampproto-cli.git
cd wampproto-cli/ && make build && sudo cp ./wampproto /usr/local/bin/