From 5c70cfd691484981a3d7de69c955d9222ba04f5f Mon Sep 17 00:00:00 2001 From: Tyler Yep Date: Thu, 28 Dec 2023 00:19:37 -0800 Subject: [PATCH] Remove Python 3.7 support --- .github/workflows/test.yml | 13 +------------ README.md | 4 ++-- ruff.toml | 2 +- setup.cfg | 2 +- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84b3e58..f31ad78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10"] pytorch-version: ["1.4.0", "1.5.1", "1.6.0", "1.7.1", "1.8", "1.9", "1.10", "1.11", "1.12", "1.13", "2.0", "2.1"] include: - python-version: 3.11 @@ -19,17 +19,6 @@ jobs: - python-version: 3.11 pytorch-version: 2.1 exclude: - - python-version: 3.7 - pytorch-version: 1.11 - - python-version: 3.7 - pytorch-version: 1.12 - - python-version: 3.7 - pytorch-version: 1.13 - - python-version: 3.7 - pytorch-version: 2.0 - - python-version: 3.7 - pytorch-version: 2.1 - - python-version: 3.9 pytorch-version: 1.4.0 - python-version: 3.9 diff --git a/README.md b/README.md index 5b4471e..a328410 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # torchinfo -[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/) +[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/release/python-380/) [![PyPI version](https://badge.fury.io/py/torchinfo.svg)](https://badge.fury.io/py/torchinfo) [![Conda version](https://img.shields.io/conda/vn/conda-forge/torchinfo)](https://anaconda.org/conda-forge/torchinfo) [![Build Status](https://github.com/TylerYep/torchinfo/actions/workflows/test.yml/badge.svg)](https://github.com/TylerYep/torchinfo/actions/workflows/test.yml) @@ -470,7 +470,7 @@ Estimated Total Size (MB): 0.00 All issues and pull requests are much appreciated! If you are wondering how to build the project: - torchinfo is actively developed using the lastest version of Python. - - Changes should be backward compatible to Python 3.7, and will follow Python's End-of-Life guidance for old versions. + - Changes should be backward compatible to Python 3.8, and will follow Python's End-of-Life guidance for old versions. - Run `pip install -r requirements-dev.txt`. We use the latest versions of all dev packages. - Run `pre-commit install`. - To use auto-formatting tools, use `pre-commit run -a`. diff --git a/ruff.toml b/ruff.toml index 98a2554..4f319cb 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,4 +1,4 @@ -target-version = "py37" +target-version = "py38" select = ["ALL"] ignore = [ "ANN101", # Missing type annotation for `self` in method diff --git a/setup.cfg b/setup.cfg index 4732be8..2f90b4a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,7 +25,7 @@ keywords = torch pytorch torchsummary torch-summary summary keras deep-learning [options] packages = torchinfo -python_requires = >=3.7 +python_requires = >=3.8 include_package_data = True [options.package_data]