This repository was archived by the owner on Feb 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (56 loc) · 1.97 KB
/
Makefile
File metadata and controls
63 lines (56 loc) · 1.97 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
59
60
61
62
63
PROJECT_SOURCE_DIR ?= $(abspath ./)
PROJECT_NAME ?= $(shell basename $(PROJECT_SOURCE_DIR))
all:
@echo nothing special
lint:
pre-commit run -a
prettier --write index.html
cd frontend/viewer && npm run lint
lint_install:
python3 -m pip install pre-commit
pre-commit install
uv\:install:
uv sync
install:
python3 -m pip install 'numpy<2'
python3 -m pip install rosbag --extra-index-url https://rospypi.github.io/simple/
python3 -m pip install 'roscpp<1.15' --extra-index-url https://rospypi.github.io/simple/
python3 -m pip install -e .
package:
python3 -m pip install build
python3 -m build --sdist
# tar -tvf dist/frames-pack*.tar.gz
pypi_remote ?= pypi
upload:
python3 -m pip install twine
python3 -m twine upload --skip-existing -r $(pypi_remote) --verbose dist/*.tar.gz
clean:
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf __pycache__
rm -f *.pyc
test: pytest clitest
pytest:
python3 -m pip install pytest pytest-xdist
# pytest --capture=tee-sys tests
# pytest tests -vv
PYTHONPATH=src:$$PYTHONPATH pytest tests -vv -n 10
clitest:
python3 -m frames_pack
python3 -m frames_pack.compile --help
python3 -m frames_pack.compile rosbag2framespack data/65ce63c95fbf245fbffd97419d48af2e.bag dump build/frames_pack.bin
python3 -m frames_pack.compile framespack2json build/frames_pack.bin
python3 -m frames_pack.compile geojson2framespack data/cloverleaf.pbf.json dump build/frames_pack2.bin
python3 -m frames_pack.compile framespack2json build/frames_pack2.bin
.PHONY: test pytest clitest
# python:3.12-bookworm
DOCKER_RELEASE ?= ghcr.io/cubao/build-env-manylinux2014-x64:v0.0.5
DEV_CONTAINER_NAME ?= $(USER)_$(subst /,_,$(PROJECT_NAME)____$(PROJECT_SOURCE_DIR))
DEV_CONTAINER_IMAG ?= $(DOCKER_RELEASE)
test_in_dev_container:
docker ps | grep $(DEV_CONTAINER_NAME) \
&& docker exec -it $(DEV_CONTAINER_NAME) bash \
|| docker run --rm --name $(DEV_CONTAINER_NAME) \
--network host --security-opt seccomp=unconfined \
-v `pwd`:`pwd` -w `pwd` -it $(DEV_CONTAINER_IMAG) bash