-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
57 lines (47 loc) · 1.43 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: test
test: test_rust test_python
.PHONY: test_rust
test_rust:
@echo ~~~~~~~~~~~~~~~ Running rust implementation unit tests ~~~~~~~~~~~~~~~
cargo test test_
.PHONY: test_python
test_python:
@echo ~~~~~~~~~~~~~~~ Running python binding tests ~~~~~~~~~~~~~~~
tox
.PHONY: bench
bench:
@echo ~~~~~~~~~~~~~~~ Running rust implementation benchmarks ~~~~~~~~~~~~~~~
cargo bench
.PHONY: test_rust_eip_152_vec_8
test_rust_eip_152_vec_8:
@echo ~~~~~~~~~~~~~~~ Running slow EIP 152 test vector 8 ~~~~~~~~~~~~~~~
cargo test --release \
test_f_compress_eip_152_vec_8 \
-- --ignored --nocapture
.PHONY: test_all
test_all: test_rust test_python bench test_rust_eip_152_vec_8
.PHONY: clean
clean:
rm -rf *.egg-info build dist target pip-wheel-metadata
CURRENT_SIGN_SETTING := $(shell git config commit.gpgSign)
.PHONY: bumpversion
bumpversion:
git config commit.gpgSign true
bumpversion $(bump)
git config commit.gpgSign "$(CURRENT_SIGN_SETTING)"
git push upstream && git push upstream --tags
.PHONY: build-local
build-local:
maturin build --release
.PHONY: build-manylinux
build-manylinux:
docker run --rm -v $(shell pwd):/io --entrypoint /bin/bash konstin2/maturin:master -c \
'export PATH=/opt/python/cp38-cp38/bin/:$$PATH; \
rustup default nightly; \
cd /io; \
maturin build -i python3.8; \
maturin build --no-sdist -i python3.7; \
maturin build --no-sdist -i python3.6;'
.PHONY: publish
publish:
twine upload target/wheels/*