Skip to content

Commit

Permalink
feat: drop support for Python <3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer committed Oct 18, 2024
1 parent 53b4845 commit 48d549f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [Ubuntu, macOS, Windows]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
include:
- os: Ubuntu
image: ubuntu-latest
Expand Down
24 changes: 2 additions & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include = [
]

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
poetry = ">=1.8.0,<3.0.0"
poetry-core = ">=1.7.0,<3.0.0"

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

[tool.ruff]
fix = true
target-version = "py38"
target-version = "py39"
line-length = 88
extend-exclude = [
"docs/*",
Expand Down Expand Up @@ -72,6 +72,12 @@ extend-select = [
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

[tool.ruff.lint.flake8-type-checking]
exempt-modules = [
"collections.abc",
"typing",
]

[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
Expand Down
2 changes: 1 addition & 1 deletion src/poetry_plugin_export/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import urllib.parse

from collections.abc import Iterable
from functools import partialmethod
from typing import TYPE_CHECKING
from typing import Iterable

from cleo.io.io import IO
from poetry.core.packages.dependency_group import MAIN_GROUP
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import os

from collections.abc import Iterator
from contextlib import contextmanager
from typing import TYPE_CHECKING
from typing import Any
from typing import Iterator

from poetry.console.application import Application
from poetry.factory import Factory
Expand Down

0 comments on commit 48d549f

Please sign in to comment.