-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
41 lines (29 loc) · 864 Bytes
/
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
.PHONY: build build-inplace test test-inplace dist redist install install-from-source clean uninstall publish-test publish
build:
python3 setup.py build
build-inplace:
python3 setup.py build_ext --inplace
test-inplace:
PYTHONPATH=. pytest
test:
python -m pytest
dist:
python setup.py sdist bdist_wheel
redist: clean dist
install:
python -m pip install .
install-from-source: dist
python -m pip install dist/viprs-*.tar.gz
clean:
$(RM) -r build dist *.egg-info
$(RM) -r viprs/model/vi/*.c viprs/model/vi/*.cpp
$(RM) -r viprs/utils/*.c viprs/utils/*.cpp
$(RM) -r viprs/model/vi/*.so viprs/utils/*.so
$(RM) -r .pytest_cache .tox temp output
find . -name __pycache__ -exec rm -r {} +
uninstall:
python -m pip uninstall viprs
publish-test:
python -m twine upload -r testpypi dist/* --verbose
publish:
python -m twine upload dist/* --verbose