forked from tensortrade-org/tensortrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 749 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
GPU_IMAGE?="tensortrade:latest-gpu"
CPU_IMAGE?="tensortrade:latest"
clean:
find . | grep -E '(__pycache__|\.pyc|\.pyo$$)' | xargs rm -rf
test:
pytest tests/
test-parallel:
pytest --workers auto tests/
doctest:
pytest --doctest-modules tensortrade/
docs-build:
$(MAKE) -C docs html
docs-clean:
$(MAKE) -C docs clean
rm -rf docs/source/api
docs-serve:
$(SHELL) -c "cd docs/_build/html; python -m http.server 8000"
build-cpu:
docker build -t ${CPU_IMAGE} .
build-gpu:
docker build -t ${GPU_IMAGE} . --build-arg gpu_tag="-gpu"
package:
rm -rf dist
python3 setup.py sdist
python3 setup.py bdist_wheel
test-release: package
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
release: package
twine upload dist/*