From cfd6c0f7d4535aea0bf358804e351be7c40275e9 Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Wed, 1 Jul 2026 21:29:30 +0300 Subject: [PATCH] Drop python 3.8 --- .github/workflows/pypi-deploy.yml | 3 ++- .github/workflows/python-tests.yml | 2 +- dawg_python/dawgs.py | 3 ++- poetry.lock | 10 +++------- pyproject.toml | 4 ++-- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pypi-deploy.yml b/.github/workflows/pypi-deploy.yml index 20a0525..9b5a1cf 100644 --- a/.github/workflows/pypi-deploy.yml +++ b/.github/workflows/pypi-deploy.yml @@ -2,7 +2,8 @@ name: Deploy on pypi.org on: release: - types: [ published ] + types: + - published workflow_dispatch: jobs: diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 36c955f..38e8158 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.10"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.10"] steps: - uses: actions/checkout@v6 diff --git a/dawg_python/dawgs.py b/dawg_python/dawgs.py index c993db9..53b0134 100644 --- a/dawg_python/dawgs.py +++ b/dawg_python/dawgs.py @@ -7,8 +7,9 @@ from . import wrapper if TYPE_CHECKING: + from collections.abc import Iterator, Mapping from pathlib import Path - from typing import Any, Iterator, Mapping + from typing import Any from typing_extensions import Self, TypeAlias diff --git a/poetry.lock b/poetry.lock index 9299762..db75b77 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.4.1 and should not be changed by hand. [[package]] name = "colorama" @@ -183,7 +183,6 @@ description = "the modular source code checker: pep8 pyflakes and co" optional = false python-versions = ">=3.8.1" groups = ["dev"] -markers = "python_full_version >= \"3.8.1\"" files = [ {file = "flake8-7.1.2-py2.py3-none-any.whl", hash = "sha256:1cbc62e65536f65e6d754dfe6f1bada7f5cf392d6f5db3c2b85892466c3e7c1a"}, {file = "flake8-7.1.2.tar.gz", hash = "sha256:c586ffd0b41540951ae41af572e6790dbd49fc12b3aa2541685d253d9bd504bd"}, @@ -213,7 +212,6 @@ description = "McCabe checker, plugin for flake8" optional = false python-versions = ">=3.6" groups = ["dev"] -markers = "python_full_version >= \"3.8.1\"" files = [ {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, @@ -254,7 +252,6 @@ description = "Python style guide checker" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_full_version >= \"3.8.1\"" files = [ {file = "pycodestyle-2.12.1-py2.py3-none-any.whl", hash = "sha256:46f0fb92069a7c28ab7bb558f05bfc0110dac69a0cd23c61ea0040283a9d78b3"}, {file = "pycodestyle-2.12.1.tar.gz", hash = "sha256:6838eae08bbce4f6accd5d5572075c63626a15ee3e6f842df996bf62f6d73521"}, @@ -267,7 +264,6 @@ description = "passive checker of Python programs" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_full_version >= \"3.8.1\"" files = [ {file = "pyflakes-3.2.0-py2.py3-none-any.whl", hash = "sha256:84b5be138a2dfbb40689ca07e2152deb896a65c3a3e24c251c5c62489568074a"}, {file = "pyflakes-3.2.0.tar.gz", hash = "sha256:1c61603ff154621fb2a9172037d84dca3500def8c8b630657d1701f026f8af3f"}, @@ -401,5 +397,5 @@ files = [ [metadata] lock-version = "2.1" -python-versions = "^3.8" -content-hash = "23acf5ee8b2a77ddc21a3158e4611400815fd57f77aa3f637cad97a32fbe6f1f" +python-versions = "^3.9" +content-hash = "bab52d1b59c07b0db962127488839b4e74a380e31f67cbc21d45bccef1a6fc49" diff --git a/pyproject.toml b/pyproject.toml index 7beb2b0..68e4b9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ classifiers = [ repository = "https://github.com/pymorphy2-fork/DAWG-Python/" [tool.poetry.dependencies] -python = "^3.8" +python = "^3.9" typing-extensions = { version = ">=4.0", python = "<3.11" } [tool.poetry.group.dev.dependencies] @@ -37,7 +37,7 @@ build-backend = "poetry.core.masonry.api" [tool.ruff] line-length = 120 -target-version = "py38" +target-version = "py39" [tool.ruff.lint] select = ["ALL"]