fix tox setup, test on python 3.11

This commit is contained in:
Elia Robyn Lake 2022-10-25 13:59:13 -04:00
parent b24094b726
commit d8f10b7fb8
3 changed files with 19 additions and 15 deletions

19
poetry.lock generated
View File

@ -38,11 +38,11 @@ python-versions = "*"
[[package]]
name = "black"
version = "22.8.0"
version = "22.10.0"
description = "The uncompromising code formatter."
category = "dev"
optional = false
python-versions = ">=3.6.2"
python-versions = ">=3.7"
[package.dependencies]
click = ">=8.0.0"
@ -73,11 +73,11 @@ importlib-metadata = {version = "*", markers = "python_version < \"3.8\""}
[[package]]
name = "colorama"
version = "0.4.5"
version = "0.4.6"
description = "Cross-platform colored terminal text."
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
[[package]]
name = "decorator"
@ -473,13 +473,14 @@ python-versions = ">=3.7"
[[package]]
name = "traitlets"
version = "5.4.0"
version = "5.5.0"
description = ""
category = "dev"
optional = false
python-versions = ">=3.7"
[package.extras]
docs = ["myst-parser", "pydata-sphinx-theme", "sphinx"]
test = ["pre-commit", "pytest"]
[[package]]
@ -500,7 +501,7 @@ python-versions = "*"
[[package]]
name = "typing-extensions"
version = "4.3.0"
version = "4.4.0"
description = "Backported and Experimental Type Hints for Python 3.7+"
category = "dev"
optional = false
@ -516,15 +517,15 @@ python-versions = "*"
[[package]]
name = "zipp"
version = "3.8.1"
version = "3.10.0"
description = "Backport of pathlib-compatible object wrapper for zip files"
category = "dev"
optional = false
python-versions = ">=3.7"
[package.extras]
docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "jaraco.tidelift (>=1.4)"]
testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"]
docs = ["sphinx (>=3.5)", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "furo", "jaraco.tidelift (>=1.4)"]
testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "flake8 (<5)", "pytest-cov", "pytest-enabler (>=1.3)", "jaraco.itertools", "func-timeout", "jaraco.functools", "more-itertools", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"]
[extras]
cjk = ["mecab-python3", "ipadic", "mecab-ko-dic", "jieba"]

View File

@ -1,6 +1,9 @@
[tox]
envlist = py37, py38, py39, py310
envlist = py37, py38, py39, py310, py311
isolated_build = true
[testenv]
deps = pytest
commands = pytest
skip_install = true
whitelist_externals = poetry
commands_pre = poetry install
commands = poetry run pytest --import-mode importlib

View File

@ -11,9 +11,9 @@ import logging
import math
import warnings
from .tokens import tokenize, simple_tokenize, lossy_tokenize
from .language_info import get_language_info
from .numbers import digit_freq, has_digit_sequence, smash_numbers
from wordfreq.tokens import tokenize, simple_tokenize, lossy_tokenize
from wordfreq.language_info import get_language_info
from wordfreq.numbers import digit_freq, has_digit_sequence, smash_numbers
logger = logging.getLogger(__name__)