diff --git a/.github/workflows/python-linters.yml b/.github/workflows/python-linters.yml index d18ad3b4..b4186d43 100644 --- a/.github/workflows/python-linters.yml +++ b/.github/workflows/python-linters.yml @@ -16,9 +16,9 @@ jobs: python-version: [3.7, "3.10"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 82ad4abd..43236cb4 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,9 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 7f4f5fb6..805eaba3 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -21,12 +21,14 @@ jobs: - python-version: 3.9 tf-version: 2.7 - python-version: "3.10" - tf-version: latest + tf-version: 2.11 + - python-version: "3.10" + tf-version: 2.15 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/README.md b/README.md index 4b2f5b9b..c9f0e435 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,18 @@ distance estimation. This library provides an efficient implementation of **k-Lispchitz layers for keras**. +> [!CAUTION] +> **Incompatibility with TensorFlow >= 2.16 and Keras 3** +> +> Due to significant changes introduced in TensorFlow version 2.16 and Keras 3, this +> package is currently incompatible with TensorFlow versions 2.16 and above. Users are +> advised to use TensorFlow versions lower than 2.16 to ensure compatibility and proper +> functionality of this package. +> +> We are actively working on updating the package to support Keras 3. Please stay tuned +> for updates. For now, make sure to install an earlier version of TensorFlow by +> specifying it in your environment. + ## 📚 Table of contents - [📚 Table of contents](#-table-of-contents) diff --git a/setup.cfg b/setup.cfg index 8c802b0b..1e34454d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,7 +9,7 @@ per-file-ignores = [tox:tox] envlist = - py{37,38,39,310,311}-tf{22,23,24,25,26,27,28,29,210,211,212,213,214,latest} + py{37,38,39,310,311}-tf{22,23,24,25,26,27,28,29,210,211,212,213,214,215,216,217,latest} py{37,38,39,310,311}-lint [testenv] @@ -21,14 +21,19 @@ deps = tf24: tensorflow ~= 2.4.0 tf25: tensorflow ~= 2.5.0 tf26: tensorflow ~= 2.6.0 + tf27: numpy==1.23.5 tf27: tensorflow ~= 2.7.0 tf28: tensorflow ~= 2.8.0 tf29: tensorflow ~= 2.9.0 tf210: tensorflow ~= 2.10.0 + tf211: numpy==1.24.4 tf211: tensorflow ~= 2.11.0 tf212: tensorflow ~= 2.12.0 tf213: tensorflow ~= 2.13.0 tf214: tensorflow ~= 2.14.0 + tf215: tensorflow ~= 2.15.0 + tf216: tensorflow ~= 2.16.0 + tf217: tensorflow ~= 2.17.0 commands = python -m unittest diff --git a/setup.py b/setup.py index e480c73c..e21abda6 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ url="https://github.com/deel-ai/deel-lip", packages=setuptools.find_namespace_packages(include=["deel.*"]), include_package_data=True, - install_requires=["numpy", "tensorflow~=2.2"], + install_requires=["numpy", "tensorflow >= 2.2.0, < 2.16.0"], license="MIT", extras_require={"dev": dev_requires, "docs": docs_requires}, classifiers=[