diff --git a/.github/workflows/develop_install.yml b/.github/workflows/develop_install.yml index e2960140a..c2bb054c3 100644 --- a/.github/workflows/develop_install.yml +++ b/.github/workflows/develop_install.yml @@ -15,7 +15,7 @@ jobs: matrix: - python_version: ['3.7', '3.8'] + python_version: ['3.8', '3.9'] pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0'] platform: ['windows-latest', 'ubuntu-latest', 'macos-latest'] diff --git a/.github/workflows/end_to_end.yml b/.github/workflows/end_to_end.yml index 3313db99f..8ae512f91 100644 --- a/.github/workflows/end_to_end.yml +++ b/.github/workflows/end_to_end.yml @@ -15,7 +15,7 @@ jobs: matrix: - python_version: ['3.7', '3.8'] + python_version: ['3.8', '3.9'] pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0'] platform: ['windows-latest', 'ubuntu-latest', 'macos-latest'] diff --git a/.github/workflows/examples_pytest.yml b/.github/workflows/examples_pytest.yml index 40bb3b460..8b50b19bb 100644 --- a/.github/workflows/examples_pytest.yml +++ b/.github/workflows/examples_pytest.yml @@ -15,7 +15,7 @@ jobs: matrix: - python_version: ['3.7', '3.8'] + python_version: ['3.8', '3.9'] pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0'] platform: ['windows-latest', 'ubuntu-latest', 'macos-latest'] jit_status: ['jit_disabled', 'jit_enabled'] diff --git a/.github/workflows/finn_integration.yml b/.github/workflows/finn_integration.yml index 83c8f5bc9..8590e4b81 100644 --- a/.github/workflows/finn_integration.yml +++ b/.github/workflows/finn_integration.yml @@ -15,7 +15,7 @@ jobs: matrix: - python_version: ['3.7', '3.8'] + python_version: ['3.8', '3.9'] pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0'] platform: ['windows-latest', 'ubuntu-latest'] diff --git a/.github/workflows/gen_github_actions.py b/.github/workflows/gen_github_actions.py index 9176750ff..535a777a4 100644 --- a/.github/workflows/gen_github_actions.py +++ b/.github/workflows/gen_github_actions.py @@ -33,7 +33,7 @@ 'jit_disabled',])]) # Data shared betwen Nox sessions and Github Actions, formatted as tuples -PYTHON_VERSIONS = ('3.7', '3.8') +PYTHON_VERSIONS = ('3.8', '3.9') PYTORCH_VERSIONS = ('1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0') JIT_STATUSES = ('jit_disabled', 'jit_enabled') diff --git a/.github/workflows/notebook.yml b/.github/workflows/notebook.yml index 799e99e1f..ef5a20e41 100644 --- a/.github/workflows/notebook.yml +++ b/.github/workflows/notebook.yml @@ -15,7 +15,7 @@ jobs: matrix: - python_version: ['3.7', '3.8'] + python_version: ['3.8', '3.9'] pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0'] platform: ['windows-latest', 'ubuntu-latest', 'macos-latest'] diff --git a/.github/workflows/ort_integration.yml b/.github/workflows/ort_integration.yml index 3def32a62..e09432973 100644 --- a/.github/workflows/ort_integration.yml +++ b/.github/workflows/ort_integration.yml @@ -15,7 +15,7 @@ jobs: matrix: - python_version: ['3.7', '3.8'] + python_version: ['3.8', '3.9'] pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0'] platform: ['windows-latest', 'ubuntu-latest', 'macos-latest'] diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index a2864259f..67b9eaccb 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -15,7 +15,7 @@ jobs: matrix: - python_version: ['3.7', '3.8'] + python_version: ['3.8', '3.9'] pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0'] platform: ['windows-latest', 'ubuntu-latest', 'macos-latest'] jit_status: ['jit_disabled', 'jit_enabled'] diff --git a/README.md b/README.md index b9cb99914..c1d267ea6 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ If you like this project please consider ⭐ this repo, as it is the simplest an ## Requirements -* Python >= 3.7 . +* Python >= 3.8 . * [Pytorch](https://pytorch.org) >= 1.9.1, <= 1.13.1 (PyTorch 2.0+ is currently untested). * Windows, Linux or macOS. * GPU training-time acceleration (*Optional* but recommended). diff --git a/docs/tutorials/onnx_export.ipynb b/docs/tutorials/onnx_export.ipynb index c12eb61d9..5d9a34228 100644 --- a/docs/tutorials/onnx_export.ipynb +++ b/docs/tutorials/onnx_export.ipynb @@ -14,7 +14,7 @@ "\n", "## Requirements\n", "\n", - "Brevitas requires Python 3.7+ and PyTorch 1.9.1+ and can be installed from PyPI with `pip install brevitas`. \n", + "Brevitas requires Python 3.8+ and PyTorch 1.9.1+ and can be installed from PyPI with `pip install brevitas`. \n", "\n", "For this notebook, you will also need to install `onnx`, `onnxruntime`, `onnxoptimizer` and `netron` (for visualization of ONNX models).\n", "For this tutorial, PyTorch 1.8.1+ is required." diff --git a/notebooks/Brevitas_TVMCon2021.ipynb b/notebooks/Brevitas_TVMCon2021.ipynb index efafdf16e..efd9421f0 100644 --- a/notebooks/Brevitas_TVMCon2021.ipynb +++ b/notebooks/Brevitas_TVMCon2021.ipynb @@ -11,7 +11,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Brevitas requires Python 3.7+ and PyTorch 1.5.0+ and can be installed from PyPI with `pip install brevitas`. This notebook was originally released for Brevitas 0.7.1.\n", + "Brevitas requires Python 3.8+ and PyTorch 1.5.0+ and can be installed from PyPI with `pip install brevitas`. This notebook was originally released for Brevitas 0.7.1.\n", "It has since been updated to run with Brevitas 0.8 and PyTorch 1.9.0 and is going to be available at `https://github.com/Xilinx/brevitas/tree/master/notebooks`." ] }, diff --git a/notebooks/ONNX_export_tutorial.ipynb b/notebooks/ONNX_export_tutorial.ipynb index fbcd37c0a..304161fce 100644 --- a/notebooks/ONNX_export_tutorial.ipynb +++ b/notebooks/ONNX_export_tutorial.ipynb @@ -14,7 +14,7 @@ "\n", "## Requirements\n", "\n", - "Brevitas requires Python 3.7+ and PyTorch 1.9.1+ and can be installed from PyPI with `pip install brevitas`. \n", + "Brevitas requires Python 3.8+ and PyTorch 1.9.1+ and can be installed from PyPI with `pip install brevitas`. \n", "\n", "For this notebook, you will also need to install `onnx`, `onnxruntime`, `onnxoptimizer` and `netron` (for visualization of ONNX models).\n", "For this tutorial, PyTorch 1.8.1+ is required." diff --git a/setup.py b/setup.py index b6c303fe8..40e9f5b01 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def read_requirements(filename): author="Alessandro Pappalardo", author_email="alessand@amd.com", url="https://github.com/Xilinx/brevitas", - python_requires=">=3.7", + python_requires=">=3.8", install_requires=read_requirements('requirements.txt'), extras_require={ "notebook": read_requirements('requirements-notebook.txt'),