update dependencies

This commit is contained in:
Maximilian Hils 2022-03-15 19:36:59 +01:00
parent 290ec68aca
commit 5a4dbffbae
3 changed files with 18 additions and 16 deletions

View File

@ -56,9 +56,11 @@ def set_task_debug_info(
def task_repr(task: asyncio.Task) -> str: def task_repr(task: asyncio.Task) -> str:
"""Get a task representation with debug info.""" """Get a task representation with debug info."""
name = task.get_name() name = task.get_name()
age = getattr(task, "created", "") a: float = getattr(task, "created", 0)
if age: if a:
age = f" (age: {time.time() - age:.0f}s)" age = f" (age: {time.time() - a:.0f}s)"
else:
age = ""
client = getattr(task, "client", "") client = getattr(task, "client", "")
if client: if client:
client = f"{human.format_address(client)}: " client = f"{human.format_address(client)}: "

View File

@ -67,14 +67,14 @@ setup(
# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires # https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires
# It is not considered best practice to use install_requires to pin dependencies to specific versions. # It is not considered best practice to use install_requires to pin dependencies to specific versions.
install_requires=[ install_requires=[
"asgiref>=3.2.10,<3.5", "asgiref>=3.2.10,<3.6",
"blinker>=1.4, <1.5", "blinker>=1.4, <1.5",
"Brotli>=1.0,<1.1", "Brotli>=1.0,<1.1",
"certifi>=2019.9.11", # no semver here - this should always be on the last release! "certifi>=2019.9.11", # no semver here - this should always be on the last release!
"click>=7.0,<8.1", "click>=7.0,<8.1",
"cryptography>=36,<37", "cryptography>=36,<37",
"flask>=1.1.1,<2.1", "flask>=1.1.1,<2.1",
"h11>=0.11,<0.13", "h11>=0.11,<0.14",
"h2>=4.1,<5", "h2>=4.1,<5",
"hyperframe>=6.0,<7", "hyperframe>=6.0,<7",
"kaitaistruct>=0.7,<0.10", "kaitaistruct>=0.7,<0.10",
@ -82,7 +82,7 @@ setup(
"msgpack>=1.0.0, <1.1.0", "msgpack>=1.0.0, <1.1.0",
"passlib>=1.6.5, <1.8", "passlib>=1.6.5, <1.8",
"protobuf>=3.14,<3.20", "protobuf>=3.14,<3.20",
"pyOpenSSL>=21.0,<21.1", "pyOpenSSL>=21.0,<22.1",
"pyparsing>=2.4.2,<3.1", "pyparsing>=2.4.2,<3.1",
"pyperclip>=1.6.0,<1.9", "pyperclip>=1.6.0,<1.9",
"ruamel.yaml>=0.16,<0.18", "ruamel.yaml>=0.16,<0.18",
@ -91,9 +91,9 @@ setup(
"sortedcontainers>=2.3,<2.5", "sortedcontainers>=2.3,<2.5",
"tornado>=6.1,<7", "tornado>=6.1,<7",
"urwid>=2.1.1,<2.2", "urwid>=2.1.1,<2.2",
"wsproto>=1.0,<1.1", "wsproto>=1.0,<1.2",
"publicsuffix2>=2.20190812,<3", "publicsuffix2>=2.20190812,<3",
"zstandard>=0.11,<0.17", "zstandard>=0.11,<0.18",
], ],
extras_require={ extras_require={
':sys_platform == "win32"': [ ':sys_platform == "win32"': [
@ -103,12 +103,12 @@ setup(
"hypothesis>=5.8,<7", "hypothesis>=5.8,<7",
"parver>=0.1,<2.0", "parver>=0.1,<2.0",
"pdoc>=4.0.0", "pdoc>=4.0.0",
"pyinstaller==4.7", "pyinstaller==4.10",
"pytest-asyncio>=0.17.0,<0.19", "pytest-asyncio>=0.17.0,<0.19",
"pytest-cov>=2.7.1,<3.1", "pytest-cov>=2.7.1,<3.1",
"pytest-timeout>=1.3.3,<2.1", "pytest-timeout>=1.3.3,<2.2",
"pytest-xdist>=2.1.0,<3", "pytest-xdist>=2.1.0,<3",
"pytest>=6.1.0,<7", "pytest>=6.1.0,<8",
"requests>=2.9.1,<3", "requests>=2.9.1,<3",
"tox>=3.5,<4", "tox>=3.5,<4",
"wheel>=0.36.2,<0.38", "wheel>=0.36.2,<0.38",

10
tox.ini
View File

@ -29,13 +29,13 @@ commands =
[testenv:mypy] [testenv:mypy]
deps = deps =
mypy==0.910 mypy==0.941
types-certifi==2021.10.8.0 types-certifi==2021.10.8.1
types-Flask==1.1.6 types-Flask==1.1.6
types-Werkzeug==1.0.9 types-Werkzeug==1.0.9
types-requests==2.26.1 types-requests==2.27.12
types-cryptography==3.3.9 types-cryptography==3.3.18
types-pyOpenSSL==21.0.1 types-pyOpenSSL==22.0.0
commands = commands =
mypy {posargs} mypy {posargs}