Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
seddonym committed Jul 6, 2023
1 parent a7c4079 commit 6a30f60
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Changelog
=========

1.10.0 (Unreleased)
-------------------
latest
------

* Recursive wildcard support for ignored imports.
* Drop support for Python 3.7.

1.9.0 (2023-05-13)
------------------
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "Enforces rules for the imports within and between Python packages
authors = [
{name = "David Seddon", email = "david@seddonym.me"},
]
requires-python = ">=3.7"
requires-python = ">=3.8"
dependencies = [
"click>=6",
"grimp>=2.4",
Expand All @@ -25,7 +25,6 @@ classifiers = [
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
5 changes: 1 addition & 4 deletions src/importlinter/domain/ports/graph.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from typing import List, Optional, Set, Tuple

# N.B. typing_extensions can be changed to typing once drop support for Python 3.7.
from typing_extensions import Protocol
from typing import List, Optional, Protocol, Set, Tuple

from grimp import DetailedImport

Expand Down
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ envlist =
clean,
check,
docs,
py37,py38,py39,py310,py311
py38,py39,py310,py311
report

[testenv]
basepython =
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
py310: {env:TOXPYTHON:python3.10}
Expand Down Expand Up @@ -64,7 +63,6 @@ deps = coverage
[gh-actions]
# Run check on both Python 3.10 and 3.11, because of our version-dependent dependency on tomli.
python =
3.7: py37, report
3.8: py38, report
3.9: py39, report
3.10: py310, report, check
Expand Down

0 comments on commit 6a30f60

Please sign in to comment.