https://github.com/GPflow/GPflow
Revision 7b2a0c8884dc0fe0dfc5090749b355e68c8563fb authored by st-- on 08 September 2020, 15:44:27 UTC, committed by GitHub on 08 September 2020, 15:44:27 UTC
* tensorflow_probability has been changing internals around their caching; here we update the cache-clearing for our deepcopy so that it works both for tensorflow_probability < 0.11.0, == 0.11.0 (with a workaround for the bug contained therein), and > 0.11.0 (in their master branch they fixed the bug and changed internals again) * revert pinning of tf/tfp, numpy, scipy; rely on `pip --use-feature=2020-resolver` * pin black==19.10b0 as the 20.8b0 upgrade changes formatting a lot * disable test broken by tensorflow 2.3 Co-authored-by: Vincent Dutordoir <dutordoirv@gmail.com>
1 parent 5a945d6
Tip revision: 7b2a0c8884dc0fe0dfc5090749b355e68c8563fb authored by st-- on 08 September 2020, 15:44:27 UTC
Fixes for tf 2.3 / tfp 0.11.0 compatiblity (#1553)
Fixes for tf 2.3 / tfp 0.11.0 compatiblity (#1553)
Tip revision: 7b2a0c8
Makefile
BLACK_CONFIG=-t py36 -l 100
BLACK_TARGETS=gpflow tests doc setup.py
.PHONY: help clean dev-install install package format format-check type-check test check-all
help:
@echo "The following make targets are available:"
@echo " dev-install install all dependencies for dev environment and sets a egg link to the project sources"
@echo " install install all dependencies and the project in the current environment"
@echo " package build pip package"
@echo " clean removes package, build files and egg info"
@echo " format auto-format code"
@echo " format-check check that code has been formatted correctly"
@echo " type-check check that mypy is happy with type annotations"
@echo " test run all tests"
@echo " check-all run format-check, type-check, and test (as run by the continuous integration system)"
clean:
rm -rf dist *.egg-info build
dev-install:
pip install --use-feature=2020-resolver -e .
install:
pip install --use-feature=2020-resolver .
package:
python setup.py bdist
format:
black $(BLACK_CONFIG) $(BLACK_TARGETS)
format-check:
black --check $(BLACK_CONFIG) $(BLACK_TARGETS)
type-check:
mypy .
test:
pytest -n auto --dist loadfile -v --durations=10 tests/
check-all: format-check type-check test
Computing file changes ...