mirror of
https://github.com/mvt-project/mvt.git
synced 2026-09-03 00:21:07 +02:00
The package version now comes from the latest v* git tag, so a release is a tag and nothing else. A scheduled workflow tags main on the first of the month when something was merged since the last release, creates the GitHub release with generated notes, and publishes to PyPI and the container registry. Pushing a v* tag by hand goes through the same path.
35 lines
574 B
Makefile
35 lines
574 B
Makefile
PWD = $(shell pwd)
|
|
UV ?= uv
|
|
|
|
check: ruff mypy
|
|
|
|
ruff:
|
|
$(UV) run ruff check .
|
|
|
|
mypy:
|
|
$(UV) run mypy
|
|
|
|
test:
|
|
$(UV) run pytest
|
|
|
|
test-ci:
|
|
$(UV) run pytest -v
|
|
|
|
install:
|
|
$(UV) sync
|
|
|
|
test-requirements:
|
|
$(UV) sync --group dev
|
|
|
|
generate-proto-parsers:
|
|
# Generate python parsers for protobuf files
|
|
PROTO_FILES=$$(find src/mvt/android/parsers/proto/ -iname "*.proto"); \
|
|
$(UV) run protoc -Isrc/mvt/android/parsers/proto/ --python_betterproto2_out=src/mvt/android/parsers/proto/ $$PROTO_FILES
|
|
|
|
clean:
|
|
rm -rf $(PWD)/build $(PWD)/dist $(PWD)/src/mvt.egg-info
|
|
|
|
dist:
|
|
$(UV) build
|
|
|