SHELL := /bin/bash ts := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ") .PHONY: help help: ## This help message @echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)" .PHONY: build build: nightly dev-packages poetry run maturin build .PHONY: build-release build-release: nightly dev-packages poetry run maturin build --release .PHONY: nightly nightly: ## Set rust compiler to nightly version rustup override set nightly .PHONY: install install: nightly dev-packages poetry run maturin develop --release # .PHONY: publish # publish: ## Publish crate on Pypi # poetry run maturin publish .PHONY: clean clean: ## Clean up build artifacts cargo clean .PHONY: dev-packages dev-packages: ## Install Python development packages for project poetry install .PHONY: test test: dev-packages install quicktest .PHONY: quicktest quicktest: poetry run pytest tests