From f8972df99f7c85a55a2eeda4a5a256ba36640b27 Mon Sep 17 00:00:00 2001 From: Aki Nitta Date: Mon, 20 Dec 2021 01:52:17 +0900 Subject: [PATCH] Drop Python 3.6 support (#785) * Remove unused requirements * Test 3.7 and 3.9 * Update changelog * setup * tags Co-authored-by: Jirka --- .github/workflows/ci_test-full.yml | 2 +- CHANGELOG.md | 1 + requirements.txt | 1 - setup.py | 3 +-- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_test-full.yml b/.github/workflows/ci_test-full.yml index 1c384f307a..d0aad177db 100644 --- a/.github/workflows/ci_test-full.yml +++ b/.github/workflows/ci_test-full.yml @@ -17,7 +17,7 @@ jobs: matrix: # PyTorch 1.5 is failing on Win and bolts requires torchvision>=0.5 os: [ubuntu-20.04, macOS-10.15] #, windows-2019 - python-version: [3.6, 3.8] + python-version: [3.7, 3.8] requires: ['minimal', 'latest'] # Timeout: https://stackoverflow.com/a/59076067/4521646 diff --git a/CHANGELOG.md b/CHANGELOG.md index 535a43dc4f..58395de184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed +- Removed Python 3.6 support ([#785](https://github.com/PyTorchLightning/lightning-bolts/pull/785)) ### Fixed diff --git a/requirements.txt b/requirements.txt index 12b0d5fffa..1fd6e34b99 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ torch>=1.6 torchmetrics>=0.4.1 pytorch-lightning>=1.3.0 -dataclasses ; python_version <= "3.6" packaging diff --git a/setup.py b/setup.py index ead838496a..9628aa9550 100755 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ def _prepare_extras(): include_package_data=True, zip_safe=False, keywords=["deep learning", "pytorch", "AI"], - python_requires=">=3.6", + python_requires=">=3.7", setup_requires=["wheel"], install_requires=setup_tools._load_requirements(_PATH_ROOT), extras_require=_prepare_extras(), @@ -82,7 +82,6 @@ def _prepare_extras(): # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", ],