-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Makefile
48 lines (35 loc) · 1.09 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
.PHONY: default clean develop test dist-clean build-local build dist-upload dist-test-upload dist-sign dist-check
src = src/pyemd
test = test
dist = dist
wheelhouse = wheelhouse
default: test
test: develop
py.test
develop: clean
python -m pip install -e ".[test,dist]"
clean:
rm -rf $(shell find . -name '__pycache__')
rm -rf $(shell find . -name '*.so')
rm -rf .eggs
rm -rf pyemd.egg-info
rm -rf build
dist-build-local:
python -m build
dist-build-wheels:
cibuildwheel --platform linux --config-file pyproject.toml
dist-upload: dist-sign
twine upload $(dist)/*
twine upload $(wheelhouse)/*
dist-test-upload: dist-check
twine upload --repository-url https://test.pypi.org/simple/ testpypi $(dist)/*
twine upload --repository-url https://test.pypi.org/simple/ testpypi $(wheelhouse)/*
dist-sign: dist-check
gpg --detach-sign -a $(dist)/*.tar.gz
gpg --detach-sign -a $(wheelhouse)/*.whl
dist-check:
twine check --strict $(wheelhouse)/*.whl
dist-clean:
rm -rf $(dist)
dist-test-install:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pyemd