/
makefile
46 lines (37 loc) · 1.03 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
PYTHON=python
path=examples
recursive=True
make:
@echo Installing pystokes...
${PYTHON} setup.py install
clean-local:
@echo removing local compiled files
rm pystokes/*.c pystokes/*.html pystokes/*.cpp
clean:
@echo removing all compiled files
${PYTHON} setup.py clean
rm pystokes/*.c pystokes/*.html
env:
@echo creating conda environment...
conda env create --file environment.yml
# conda activate pystokes
@echo use make to install pystokes
test:
@echo testing pystokes...
cd tests && python shortTests.py
nbtest:
@echo testing example notebooks...
@echo test $(path)
cd tests && python notebookTests.py --path $(path) --recursive $(recursive)
pypitest:
@echo testing pystokes...
python setup.py sdist bdist_wheel
python -m twine upload --repository testpypi dist/*
pypi:
@echo testing pystokes...
python setup.py sdist bdist_wheel
python -m twine upload dist/*
cycov:
python setup.py build_ext --force --inplace --define CYTHON_TRACE
cp tests/shortTests.py tests_cov.py
pytest tests_cov.py --cov=./ --cov-report=xml