-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 857 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
bootstrap:
pip install -e .
pip install -r requirements/tests.txt
pip install -r requirements/docs.txt
bootstrap-contrib-%:
pip install -e .[$*]
pip install -r requirements/$*/tests.txt
bootstrap-all: bootstrap
pip install -e .[all]
cat requirements/*/tests.txt | xargs pip install
test:
black --check .
isort --check-only .
flake8 .
pytest --ignore=tests/contrib
test-contrib-%:
pytest tests/contrib/*$**
test-all: test
pytest tests/contrib
.PHONY: docs
docs:
sphinx-autobuild --watch src docs/sphinx tmp/docs
upload:
python -m pip install --upgrade build twine
python -m build
python -m twine upload --skip-existing dist/*
tag:
$(eval \
VERSION = $(shell cat setup.py | grep 'version=' | cut -d '"' -f 2) \
)
if ! git ls-remote --tags --exit-code origin v$(VERSION); then \
git tag v$(VERSION); \
git push --tags; \
fi