Support python 3.10

No reason to gate supporting a newer version of python because of pytype
not supporting it yet.
This commit is contained in:
Kevin Tindall
2022-01-02 21:58:20 -06:00
parent aa43f01a6c
commit 27fbe2e95d
3 changed files with 11 additions and 7 deletions

9
poetry.lock generated
View File

@@ -46,7 +46,10 @@ pathspec = ">=0.9.0,<1"
platformdirs = ">=2" platformdirs = ">=2"
tomli = ">=0.2.6,<2.0.0" tomli = ">=0.2.6,<2.0.0"
typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""} typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""}
typing-extensions = ">=3.10.0.0" typing-extensions = [
{version = ">=3.10.0.0", markers = "python_version < \"3.10\""},
{version = "!=3.10.0.1", markers = "python_version >= \"3.10\""},
]
[package.extras] [package.extras]
colorama = ["colorama (>=0.4.3)"] colorama = ["colorama (>=0.4.3)"]
@@ -782,8 +785,8 @@ testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytes
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = ">=3.7,<3.10" python-versions = ">=3.7"
content-hash = "fd8dd8e29049e857b7edf7da5803591d4eeb416e790e6eb5a9f3c9a1222de0e4" content-hash = "9e819727883898bb2d4f2bd80e98f1488c66584232802e51325d534e15639edd"
[metadata.files] [metadata.files]
asyncio-dgram = [ asyncio-dgram = [

View File

@@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Games/Entertainment", "Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring", "Topic :: System :: Monitoring",
@@ -28,7 +29,7 @@ packages = [
] ]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.7,<3.10" python = ">=3.7"
asyncio-dgram = "1.2.0" asyncio-dgram = "1.2.0"
click = "7.1.2" click = "7.1.2"
dnspython = "2.1.0" dnspython = "2.1.0"
@@ -41,7 +42,7 @@ pytest-asyncio = "^0.16.0"
pytest-cov = "^3.0.0" pytest-cov = "^3.0.0"
twine = "^3.5.0" twine = "^3.5.0"
black = "^21.10b0" black = "^21.10b0"
pytype = {version = "^2021.12.8", platform = "linux"} pytype = {version = "^2021.12.8", platform = "linux", python = "<3.10"}
tox = "^3.24.5" tox = "^3.24.5"
tox-poetry = "^0.4.1" tox-poetry = "^0.4.1"

View File

@@ -1,7 +1,7 @@
[tox] [tox]
isolated_build = True isolated_build = True
envlist = envlist =
format-check,lint,py{37,38,39},coverage format-check,lint,py{37,38,39,310},coverage
[testenv] [testenv]
setenv = setenv =
@@ -25,7 +25,7 @@ commands =
[testenv:coverage] [testenv:coverage]
depends = depends =
py{37,38,39} py{37,38,39,310}
setenv = setenv =
COVERAGE_FILE=.coverage COVERAGE_FILE=.coverage
commands = commands =