forked from learnables/learn2learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (30 loc) · 834 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
.PHONY: *
all:
python examples/vision/maml_omniglot.py
# Admin
dev:
pip install --progress-bar off torch gym pycodestyle >> log_install.txt
python setup.py develop
lint:
pycodestyle learn2learn/ --max-line-length=160
lint-examples:
pycodestyle examples/ --max-line-length=80
lint-tests:
pycodestyle tests/ --max-line-length=180
tests:
OMP_NUM_THREADS=1 \
MKL_NUM_THREADS=1 \
python -W ignore -m unittest discover -s 'tests' -p '*_test.py' -v
make lint
notravis-tests:
OMP_NUM_THREADS=1 \
MKL_NUM_THREADS=1 \
python -W ignore -m unittest discover -s 'tests' -p '*_test_notravis.py' -v
alltests: tests notravis-tests
docs:
cd docs && pydocmd build && pydocmd serve
docs-deploy:
cd docs && pydocmd gh-deploy
publish:
python setup.py sdist
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*