Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Python 3.7 support #294

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,14 @@ 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
pytorch-version: 2.0
- 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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
target-version = "py37"
target-version = "py38"
select = ["ALL"]
ignore = [
"ANN101", # Missing type annotation for `self` in method
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading