Skip to content

Commit

Permalink
Merge pull request #844 from tatuylonen/version
Browse files Browse the repository at this point in the history
Python 3.10
  • Loading branch information
xxyzz authored Oct 3, 2024
2 parents 593e81e + 74d2d39 commit 853f267
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ classifiers = [
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing",
"Topic :: Text Processing :: Linguistic",
]
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = [
"importlib_resources; python_version < '3.9'",
"levenshtein",
"nltk",
"pydantic",
Expand Down Expand Up @@ -94,7 +92,7 @@ select = [

[tool.mypy]
mypy_path = "typestubs"
python_version = 3.9
python_version = "3.10"

[[tool.mypy.overrides]]
module = "importlib_resources.*"
Expand Down
6 changes: 1 addition & 5 deletions src/wiktextract/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import collections
import json
import sys
from importlib.resources import files
from typing import (
Iterable,
Optional,
Expand All @@ -18,11 +19,6 @@
HTMLTagData,
)

if sys.version_info < (3, 10):
from importlib_resources import files
else:
from importlib.resources import files

SoundFileRedirects = dict[str, str]

POSSubtitleData = TypedDict(
Expand Down
6 changes: 1 addition & 5 deletions src/wiktextract/wiktwords.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@
import os
import pstats
import sys
from importlib.resources import files
from pathlib import Path
from typing import TextIO

if sys.version_info < (3, 10):
from importlib_resources import files
else:
from importlib.resources import files

from mediawiki_langcodes import code_to_name, name_to_code
from wikitextprocessor import Wtp
from wikitextprocessor.dumpparser import analyze_and_overwrite_pages
Expand Down

0 comments on commit 853f267

Please sign in to comment.