-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
48 lines (37 loc) · 1.24 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
python_cmd := python
pip_cmd := $(python_cmd) -m pip
clean:
$(pip_cmd) uninstall -y qubovert
rm -rf dist
rm -rf build
rm -rf qubovert.egg-info
install:
$(pip_cmd) install --upgrade pip
$(pip_cmd) install -e .
dev_install:
$(pip_cmd) install --upgrade pip
$(pip_cmd) install -e .
$(pip_cmd) install -r requirements-dev.txt
test:
$(python_cmd) -m pydocstyle convention=numpy qubovert
$(python_cmd) -m pytest --codestyle --cov=./ --cov-report=xml
$(python_cmd) setup.py sdist bdist_wheel
$(python_cmd) -m twine check dist/*
submitcoverage:
$(python_cmd) -m codecov
upload_wheel_pypi_test:
$(python_cmd) setup.py bdist_wheel
$(python_cmd) -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload_wheel_pypi:
$(python_cmd) setup.py bdist_wheel
$(python_cmd) -m twine upload dist/*
upload_source_pypi_test:
$(python_cmd) setup.py sdist
$(python_cmd) -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload_source_pypi:
$(python_cmd) setup.py sdist
$(python_cmd) -m twine upload dist/*
upload_manylinux_pypi_test:
$(python_cmd) -m twine upload --repository-url https://test.pypi.org/legacy/ wheelhouse/*-manylinux*.whl
upload_manylinux_pypi:
$(python_cmd) -m twine upload wheelhouse/*-manylinux*.whl