blob: 4e7f8d71365ba3bff71688b33edadf778fae8446 (
plain)
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
|
.DEFAULT_GOAL := pack
.PHONY: install-lib pack test clean lint fmt
VERSION := $(shell grep -o 'const Version = "[^"]*' ../../internal/commonver/commonver.go | cut -d '"' -f 2)
install-lib:
rm -rf eduvpn_common/lib/*
install "../../lib/libeduvpn_common-${VERSION}.so" -Dt "eduvpn_common/lib"
# Build for current platform only
pack: install-lib
python3 -m build --sdist --wheel .
test: install-lib
python3 -m unittest tests
clean:
rm -rf build/ dist/ *.egg-info/ eduvpn_common/lib/* venv
lint:
ruff check eduvpn_common
ruff format --check eduvpn_common
fmt:
ruff format eduvpn_common
|