-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP docs update, critical bugfix for pandas upgrade, move to pytest, …
…drop older deps, include example notebooks in docs
- Loading branch information
Showing
112 changed files
with
8,788 additions
and
4,972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,19 @@ TMPREPO=/tmp/docs/bt | |
|
||
default: build_dev | ||
|
||
.PHONY: dist upload docs pages serve klink notebooks test lint fix | ||
.PHONY: dist upload docs pages serve klink notebooks test lint fix develop | ||
|
||
develop: | ||
python -m pip install -e .[dev] | ||
|
||
test: | ||
python -m nose --with-coverage --cover-package bt | ||
python -m pytest -vvv tests --cov=bt --junitxml=python_junit.xml --cov-report=xml --cov-branch --cov-report term | ||
|
||
lint: | ||
python -m flake8 bt setup.py | ||
python -m flake8 bt setup.py docs/source/conf.py | ||
|
||
fix: | ||
python -m black bt setup.py | ||
|
||
python -m black bt setup.py docs/source/conf.py | ||
|
||
dist: | ||
python setup.py sdist | ||
|
@@ -25,7 +27,7 @@ docs: | |
$(MAKE) -C docs/ html | ||
|
||
pages: | ||
- rm -rf $(TMPREPO) | ||
rm -rf $(TMPREPO) | ||
git clone -b gh-pages [email protected]:pmorissette/bt.git $(TMPREPO) | ||
rm -rf $(TMPREPO)/* | ||
cp -r docs/build/html/* $(TMPREPO) | ||
|
@@ -36,21 +38,21 @@ pages: | |
|
||
serve: | ||
cd docs/build/html; \ | ||
python -m SimpleHTTPServer 9087 | ||
python -m http.server 9087 | ||
|
||
build_dev: | ||
- python setup.py build_ext --inplace | ||
python setup.py build_ext --inplace | ||
|
||
clean: | ||
- rm -rf build | ||
- rm -rf dist | ||
- rm -rf bt.egg-info | ||
- find . -name '*.so' -delete | ||
- find . -name '*.c' -delete | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf bt.egg-info | ||
find . -name '*.so' -delete | ||
find . -name '*.c' -delete | ||
|
||
klink: | ||
git subtree pull --prefix=docs/source/_themes/klink --squash klink master | ||
|
||
notebooks: | ||
cd docs/source; \ | ||
ipython notebook --no-browser --ip=* | ||
jupyter notebook --no-browser --ip=* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../examples/buy_and_hold.ipynb |
Oops, something went wrong.