forked from eabglobal/juniper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.23 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
50
51
52
53
54
55
56
.PHONY: all install-dev test coverage cov test-all tox docs release clean-pyc
all: test
install-dev:
pip install -q -e .[venv3]
pip install -r requirements/dev.txt
deps:
pip-compile -U --allow-unsafe -o requirements/dev.txt requirements/requirements-dev.in requirements/requirements.in
pip-compile -U --allow-unsafe -o requirements/requirements.txt requirements/requirements.in
test: clean-pyc
python -m pytest --cov .
coverage: clean-pyc install-dev
coverage run -m pytest
coverage report
coverage html
cov: coverage
test-all: install-dev
tox
tox: test-all
docs: clean-pyc
$(MAKE) -C docs html
gh-pages:
git checkout gh-pages
rm -rf _images _sources _static
git checkout master docs examples assets
$(MAKE) -C docs html
mv -fv docs/_build/html/* ./
rm -rf docs examples assets
git add -A
git commit -m "Generated gh-pages" && git push origin gh-pages; git checkout master
release:
rm -rf ./dist
python3 -m build
twine check dist/*
twine upload dist/*
test-release:
rm -rf ./dist
python3 -m build
twine check dist/*
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +