-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
43 lines (34 loc) · 798 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
42
43
SHELL := /bin/bash
format:
isort qsparse tests
style-check:
black --diff --check .
wheel:
python3 setup.py sdist bdist_wheel
test:
pytest tests/ \
--cov=qsparse\
--no-cov-on-fail \
--cov-report=html:htmlcov \
--cov-report term \
--doctest-modules \
--cov-config=.coveragerc \
-v \
qsparse tests
doc:
PYTHONPATH=`pwd` mkdocs build
perl -i -pe's/docs\/assets/assets/g' site/**/*.html
cp ./LICENSE.txt site/
dependency:
python3 -m pip install -r requirements.txt -r requirements.dev.txt --user
python3 -m pip install twine --user
install: dependency
python3 -m pip install -e . --user
pre-commit install
publish:
rm -rf ./dist/
python3 setup.py sdist
twine upload dist/*
github_action_fix:
python3 -m pip install ipykernel
python3 -m ipykernel install --user