-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
52 lines (40 loc) · 1.13 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
.PHONY: init-tensorflow init-pytorch test-tensorflow test-pytorch format docs bump-minor bump-patch package push-package clean
init-tensorflow:
python3 -m venv venv; \
. venv/bin/activate; \
pip install -e .[dev,tensorflow]
init-pytorch:
python3 -m venv venv; \
. venv/bin/activate; \
pip install -e .[dev,pytorch]
test-tensorflow:
. venv/bin/activate; \
pytest tests/unit/tensorflow
test-pytorch:
. venv/bin/activate; \
pytest tests/unit/pytorch
format:
. venv/bin/activate; \
autoflake -r --in-place --remove-all-unused-imports --ignore-init-module-imports src/probflow tests; \
isort src/probflow tests; \
black src/probflow tests; \
flake8 src/probflow tests
docs:
. venv/bin/activate; \
sphinx-build -b html docs docs/_html
bump-minor:
. venv/bin/activate; \
bumpversion minor
bump-patch:
. venv/bin/activate; \
bumpversion patch
package:
. venv/bin/activate; \
python setup.py sdist bdist_wheel; \
twine check dist/*
push-package:
. venv/bin/activate; \
twine upload dist/*
clean:
rm -rf .pytest_cache docs/_html build dist src/probflow.egg-info
find . -type d -name __pycache__ -exec rm -rf {} \+