forked from rajeshrinet/pyross
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (39 loc) · 1.08 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
PYTHON=python
path=examples
recursive=True
make:
@echo Installing pyross...
${PYTHON} setup.py install
@echo adding githook...
cp .githooks/pre-push .git/hooks/
chmod +x .git/hooks/pre-push
clean-local:
@echo removing local compiled files
rm pyross/*.c pyross/*.html pyross/*.cpp
clean:
@echo removing all compiled files
${PYTHON} setup.py clean
rm pyross/*.c pyross/*.html pyross/*.cpp
env:
@echo creating conda environment...
conda env create --file environment.yml
# conda activate pyross
@echo use make to install pyross
test:
@echo testing pyross...
cd tests && python quick_test.py
nbtest:
@echo testing example notebooks...
@echo test $(path)
cd tests && python notebook_test.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
pytest tests/quick_test.py --cov=./ --cov-report=xml