pyo3/Makefile

27 lines
764 B
Makefile
Raw Normal View History

2020-06-05 11:51:15 +00:00
.PHONY: test test_py publish clippy lint fmt
2020-06-05 11:51:15 +00:00
test: lint test_py
2018-11-15 20:28:28 +00:00
cargo test
2019-02-01 15:31:18 +00:00
2020-06-05 11:51:15 +00:00
test_py:
2020-11-09 21:46:25 +00:00
for example in examples/*; do tox -e py -c $$example || exit 1; done
2018-11-02 21:32:18 +00:00
fmt:
cargo fmt --all -- --check
2019-09-05 23:16:09 +00:00
black . --check
clippy:
cargo clippy --features="num-bigint num-complex hashbrown serde" --tests -- -Dwarnings
cargo clippy --features="abi3 num-bigint num-complex hashbrown serde" --tests -- -Dwarnings
2020-12-31 22:09:25 +00:00
for example in examples/*; do cargo clippy --manifest-path $$example/Cargo.toml -- -Dwarnings || exit 1; done
lint: fmt clippy
@true
2019-02-10 18:40:04 +00:00
publish: test
2020-12-13 11:29:39 +00:00
cargo publish --manifest-path pyo3-macros-backend/Cargo.toml
2020-10-12 15:18:25 +00:00
sleep 10 # wait for crates.io to update
2020-12-13 11:29:39 +00:00
cargo publish --manifest-path pyo3-macros/Cargo.toml
2020-10-12 15:18:25 +00:00
sleep 10 # wait for crates.io to update
2018-11-02 21:32:18 +00:00
cargo publish