forked from bettbra/scsprox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 853 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
.PHONY: test clean install
#all: test
# can run -vs, where s makes it not capture output
# the -l flag will print out a list of local variables with their corresponding values when a test fails
test:
py.test scsprox -vs
#py.test --pyargs scsprox -vs # this command will test for an installed version, if called outside of this dir
coverage:
py.test --cov=scsprox -vs
clean:
-pip uninstall scsprox -y
-rm -rf build/ dist/ scsprox.egg-info/
#-find . -name "*.cache" -exec rm -rf {} \;
#-find . -name "__pycache__" -exec rm -rf {} \;
-rm -rf __pycache__ scsprox/__pycache__ scsprox/test/__pycache__ .cache scsprox/test/*.pyc scsprox/*.pyc
-rm -rf .ipynb_checkpoints/ .coverage
install:
python setup.py install
distribute: clean
python setup.py sdist
python setup.py bdist_wheel --universal
#twine register dist/*.whl
twine upload dist/*