diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..afbf29e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +dist: bionic +language: python +python: + - "3.6" + - "3.7" + - "3.8" +os: linux +install: + - pip install -r requirements_dev.txt + - python setup.py develop +script: + - black --line-length 80 --check --diff tensorflow_manopt + - pytest -v tensorflow_manopt diff --git a/README.md b/README.md index 6d515e9..d7fa6ea 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # TensorFlow ManOpt +[![Build Status](https://travis-ci.org/master/tensorflow-manopt.svg?branch=master)](https://travis-ci.org/master/tensorflow-manopt) +[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black) [![License](https://img.shields.io/:license-mit-blue.svg)](https://badges.mit-license.org) A library for manifold-constrained optimization in TensorFlow. diff --git a/examples/grnet/README.md b/examples/grnet/README.md index aeffac0..4c0a014 100644 --- a/examples/grnet/README.md +++ b/examples/grnet/README.md @@ -6,10 +6,10 @@ Implementation of GrNet [1], a deep network on Grassmann manifolds. ## Requirements - * Python 3.5+ + * Python 3.6+ * SciPy * NumPy - * TensorFlow 2.3+ + * TensorFlow 2.0+ * TensorFlow ManOpt ## Training diff --git a/examples/lienet/README.md b/examples/lienet/README.md index b0f47a8..c868079 100644 --- a/examples/lienet/README.md +++ b/examples/lienet/README.md @@ -7,10 +7,10 @@ skeleton-based action recognition. ## Requirements - * Python 3.5+ + * Python 3.6+ * SciPy * NumPy - * TensorFlow 2.3+ + * TensorFlow 2.0+ * TensorFlow ManOpt ## Training diff --git a/examples/spdnet/README.md b/examples/spdnet/README.md index 8c90f72..b76ed7c 100644 --- a/examples/spdnet/README.md +++ b/examples/spdnet/README.md @@ -6,10 +6,10 @@ Implementation of SPDNet [1], a Riemannian network for SPD matrix learning. ## Requirements - * Python 3.5+ + * Python 3.6+ * SciPy * NumPy - * TensorFlow 2.3+ + * TensorFlow 2.0+ * TensorFlow ManOpt ## Training diff --git a/requirements.txt b/requirements.txt index 554b67e..698589e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -tensorflow>=2.3.0 +tensorflow>=2.0.0 diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..0d58cb8 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,2 @@ +pip>=20.0.0 +black diff --git a/setup.py b/setup.py index 18c5fc7..78ff304 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ author_email="oleg.smirnov@gmail.com", packages=find_packages(), install_requires=Path("requirements.txt").read_text().splitlines(), - python_requires=">=3.5.0", + python_requires=">=3.6.0", url="https://github.com/master/tensorflow-manopt", zip_safe=True, classifiers=[ @@ -17,7 +17,6 @@ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8",