forked from TristanCacqueray/python-dhall
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
37 lines (28 loc) · 1.08 KB
/
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
.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 :)"
publish: ## Publish the binding
twine upload target/wheels/dhall*.whl
.PHONY: build
build: dev-packages ## Builds Rust code and dhall-python Python modules
poetry run maturin build --rustc-extra-args="-Wall"
.PHONY: build-release
build-release: dev-packages ## Build dhall-python module in release mode
poetry run maturin build --release
.PHONY: install
install: dev-packages ## Install dhall-python module into current virtualenv
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 ## Intall dhall-python module and run tests
.PHONY: quicktest
quicktest: ## Run tests on already installed dhall-python module
poetry run pytest tests