-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
48 lines (30 loc) · 1.04 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
.DEFAULT_GOAL := all
# Tests -----------------------------------------------------------------------
test:
pytest -n auto
test_cov:
pytest --cov -n auto
# Docs ------------------------------------------------------------------------
docs_html:
sphinx-build docs docs/_build -b html
# Dist ------------------------------------------------------------------------
dist:
python setup.py sdist --formats=gztar bdist_wheel
.PHONY: dist
# Deploy ----------------------------------------------------------------------
deploy_pypi_test: clean_dist dist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
deploy_pypi_prod: clean_dist dist
twine upload dist/*
# All -------------------------------------------------------------------------
all: test_cov docs_html dist
# Clean -----------------------------------------------------------------------
QU_FILES = $(shell find . -type f -name '**.qu')
clean_qu:
@echo 'Deleting all **.qu files...'
@echo $(QU_FILES)
rm $(QU_FILES)
clean_docs:
rm -rf docs/_build
clean_dist:
rm -rf dist/*