Skip to content

Commit a302b86

Browse files
committed
feat: drop support for Python <3.9
1 parent 3170ec5 commit a302b86

File tree

5 files changed

+13
-38
lines changed

5 files changed

+13
-38
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [Ubuntu, macOS, Windows]
20-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+
python-version: ["3.9", "3.10", "3.11", "3.12"]
2121
include:
2222
- os: Ubuntu
2323
image: ubuntu-latest

poetry.lock

Lines changed: 2 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ include = [
1717
]
1818

1919
[tool.poetry.dependencies]
20-
python = "^3.8"
20+
python = "^3.9"
2121
poetry = ">=1.8.0,<3.0.0"
2222
poetry-core = ">=1.7.0,<3.0.0"
2323

@@ -42,7 +42,7 @@ export = "poetry_plugin_export.plugins:ExportApplicationPlugin"
4242

4343
[tool.ruff]
4444
fix = true
45-
target-version = "py38"
45+
target-version = "py39"
4646
line-length = 88
4747
extend-exclude = [
4848
"docs/*",
@@ -72,6 +72,12 @@ extend-select = [
7272
[tool.ruff.lint.flake8-tidy-imports]
7373
ban-relative-imports = "all"
7474

75+
[tool.ruff.lint.flake8-type-checking]
76+
exempt-modules = [
77+
"collections.abc",
78+
"typing",
79+
]
80+
7581
[tool.ruff.lint.isort]
7682
force-single-line = true
7783
lines-between-types = 1

src/poetry_plugin_export/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import urllib.parse
44

5+
from collections.abc import Iterable
56
from functools import partialmethod
67
from typing import TYPE_CHECKING
7-
from typing import Iterable
88

99
from cleo.io.io import IO
1010
from poetry.core.packages.dependency_group import MAIN_GROUP

tests/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import os
44

5+
from collections.abc import Iterator
56
from contextlib import contextmanager
67
from typing import TYPE_CHECKING
78
from typing import Any
8-
from typing import Iterator
99

1010
from poetry.console.application import Application
1111
from poetry.factory import Factory

0 commit comments

Comments
 (0)