From 56fbb5a82e14283f1eea5cf783776fff7c5a0079 Mon Sep 17 00:00:00 2001 From: Konstantinos Smanis Date: Sat, 19 Oct 2024 11:24:28 +0300 Subject: [PATCH] fix(poetry): sunset Python 3.8 --- .github/workflows/build.yml | 2 +- poetry.lock | 10 +++------- pyproject.toml | 4 ++-- sonar-project.properties | 2 +- src/pipautocompile/io.py | 2 +- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c31fba4..5ba396d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,7 +76,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] os: [macos-latest, ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/poetry.lock b/poetry.lock index 02e8a9c..c50a71e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "annotated-types" @@ -11,9 +11,6 @@ files = [ {file = "annotated_types-0.6.0.tar.gz", hash = "sha256:563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d"}, ] -[package.dependencies] -typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.9\""} - [[package]] name = "build" version = "1.0.3" @@ -1266,7 +1263,6 @@ files = [ [package.dependencies] markdown-it-py = ">=2.2.0" pygments = ">=2.13.0,<3.0.0" -typing-extensions = {version = ">=4.0.0,<5.0", markers = "python_version < \"3.9\""} [package.extras] jupyter = ["ipywidgets (>=7.5.1,<9)"] @@ -1451,5 +1447,5 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" -python-versions = "^3.8" -content-hash = "547306b4b760366df6defb6401b459d7ff66a8f8a390c2eab36dc76306ca4022" +python-versions = "^3.9" +content-hash = "677ca0717b3c7cdbd635a0c77500b101a48c2cefad38f690c8c172de7e3c2e6d" diff --git a/pyproject.toml b/pyproject.toml index 60c959f..649f0f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ version = "0.7.14" click = "^8.1.7" dockerfile = "^3.3.1" pygit2 = "^1.13.2" -python = "^3.8" +python = "^3.9" python-on-whales = "^0.65.0" [tool.poetry.group.lint.dependencies] @@ -79,7 +79,7 @@ testpaths = ["tests"] [tool.ruff] src = ["src"] -target-version = "py38" +target-version = "py39" [tool.ruff.lint] extend-select = [ diff --git a/sonar-project.properties b/sonar-project.properties index 751b1eb..23f67d5 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -5,4 +5,4 @@ sonar.sources=src sonar.tests=tests sonar.python.coverage.reportPaths=coverage.xml -sonar.python.version=3.8,3.9,3.10,3.11,3.12,3.13 +sonar.python.version=3.9,3.10,3.11,3.12,3.13 diff --git a/src/pipautocompile/io.py b/src/pipautocompile/io.py index 5f86077..2e774dc 100644 --- a/src/pipautocompile/io.py +++ b/src/pipautocompile/io.py @@ -4,7 +4,7 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from typing import Iterator + from collections.abc import Iterator from _typeshed import StrPath