Skip to content

Commit

Permalink
Drop support for python 3.7
Browse files Browse the repository at this point in the history
Python 3.7 went end-of-life on June 27th 2023. See https://endoflife.date/python.

There is not a Python 3.7 for arm64 using the macos-latest runner for light-the-torch tests.yml workflow.
  • Loading branch information
jamesobutler committed Dec 7, 2024
1 parent 01e7696 commit 40c6fae
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-dev-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Setup development environment"

inputs:
python-version:
default: "3.7"
default: "3.8"

runs:
using: composite
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
- windows-latest
- macos-latest
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
Expand Down
8 changes: 0 additions & 8 deletions light_the_torch/_compat.py

This file was deleted.

2 changes: 1 addition & 1 deletion light_the_torch/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from pip._vendor.packaging.requirements import Requirement

from ._compat import importlib_metadata
import importlib.metadata as importlib_metadata


class UnexpectedInternalError(Exception):
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,16 @@ classifiers = [
"Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Installation/Setup",
"Topic :: Utilities",
]
requires-python = ">= 3.7"
requires-python = ">= 3.8"
dependencies = [
"pip >=22.3, <23.3",
"importlib_metadata ; python_version < '3.8'",
]
dynamic = ["version"]

Expand Down
1 change: 0 additions & 1 deletion scripts/check_pytorch_package_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"torchrec",
"torchrec-cpu",
"torchrec_nightly",
"torchrec_nightly_3.7_cu11.whl",
"torchrec_nightly_3.8_cu11.whl",
"torchrec_nightly_3.9_cu11.whl",
"torchrec_nightly_cpu",
Expand Down

0 comments on commit 40c6fae

Please sign in to comment.