From 2b2ab07a5366304a5b23cfebbafa1f52edaa8877 Mon Sep 17 00:00:00 2001 From: st1020 Date: Wed, 28 Aug 2024 21:18:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8=20AnyIO=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdm.lock | 24 ++++++++++++------------ pyproject.toml | 7 ++----- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/pdm.lock b/pdm.lock index 760ef44..f7353da 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev", "docs", "lint", "test", "typing"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:fc0eb493d30d446cdcac1c6c76d105aeb5d02878eca1e9da1e45a3d745f59100" +content_hash = "sha256:7af3abfc1d2d359952a1aeddc22ae315e4658237abe3414c1ef9583515fcae12" [[metadata.targets]] requires_python = ">=3.9" @@ -272,7 +272,7 @@ name = "attrs" version = "23.2.0" requires_python = ">=3.7" summary = "Classes Without Boilerplate" -groups = ["default", "typing"] +groups = ["default", "dev"] dependencies = [ "importlib-metadata; python_version < \"3.8\"", ] @@ -286,7 +286,7 @@ name = "cffi" version = "1.16.0" requires_python = ">=3.8" summary = "Foreign Function Interface for Python calling C code." -groups = ["typing"] +groups = ["dev"] marker = "os_name == \"nt\" and implementation_name != \"pypy\"" dependencies = [ "pycparser", @@ -620,7 +620,7 @@ name = "idna" version = "3.6" requires_python = ">=3.5" summary = "Internationalized Domain Names in Applications (IDNA)" -groups = ["default", "typing"] +groups = ["default", "dev", "typing"] files = [ {file = "idna-3.6-py3-none-any.whl", hash = "sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f"}, {file = "idna-3.6.tar.gz", hash = "sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca"}, @@ -822,7 +822,7 @@ name = "outcome" version = "1.3.0.post0" requires_python = ">=3.7" summary = "Capture the outcome of Python function calls." -groups = ["typing"] +groups = ["dev"] dependencies = [ "attrs>=19.2.0", ] @@ -869,7 +869,7 @@ name = "pycparser" version = "2.21" requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" summary = "C parser in Python" -groups = ["typing"] +groups = ["dev"] marker = "os_name == \"nt\" and implementation_name != \"pypy\"" files = [ {file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"}, @@ -1150,13 +1150,13 @@ files = [ [[package]] name = "setuptools" -version = "73.0.1" +version = "74.0.0" requires_python = ">=3.8" summary = "Easily download, build, install, upgrade, and uninstall Python packages" groups = ["dev"] files = [ - {file = "setuptools-73.0.1-py3-none-any.whl", hash = "sha256:b208925fcb9f7af924ed2dc04708ea89791e24bde0d3020b27df0e116088b34e"}, - {file = "setuptools-73.0.1.tar.gz", hash = "sha256:d59a3e788ab7e012ab2c4baed1b376da6366883ee20d7a5fc426816e3d7b1193"}, + {file = "setuptools-74.0.0-py3-none-any.whl", hash = "sha256:0274581a0037b638b9fc1c6883cc71c0210865aaa76073f7882376b641b84e8f"}, + {file = "setuptools-74.0.0.tar.gz", hash = "sha256:a85e96b8be2b906f3e3e789adec6a9323abf79758ecfa3065bd740d81158b11e"}, ] [[package]] @@ -1175,7 +1175,7 @@ name = "sniffio" version = "1.3.1" requires_python = ">=3.7" summary = "Sniff out which async library your code is running under" -groups = ["default", "typing"] +groups = ["default", "dev", "typing"] files = [ {file = "sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2"}, {file = "sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"}, @@ -1200,7 +1200,7 @@ files = [ name = "sortedcontainers" version = "2.4.0" summary = "Sorted Containers -- Sorted List, Sorted Dict, Sorted Set" -groups = ["typing"] +groups = ["dev"] files = [ {file = "sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0"}, {file = "sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88"}, @@ -1244,7 +1244,7 @@ name = "trio" version = "0.26.2" requires_python = ">=3.8" summary = "A friendly Python library for async concurrency and I/O" -groups = ["typing"] +groups = ["dev"] dependencies = [ "attrs>=23.2.0", "cffi>=1.14; os_name == \"nt\" and implementation_name != \"pypy\"", diff --git a/pyproject.toml b/pyproject.toml index b1ff342..c66f4dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ all = [ [tool.pdm.dev-dependencies] dev = [ "setuptools", + "trio", "exceptiongroup", "-e alicebot-adapter-cqhttp @ file:///${PROJECT_ROOT}/packages/alicebot-adapter-cqhttp", "-e alicebot-adapter-onebot @ file:///${PROJECT_ROOT}/packages/alicebot-adapter-onebot", @@ -53,11 +54,7 @@ dev = [ "-e alicebot-adapter-dingtalk @ file:///${PROJECT_ROOT}/packages/alicebot-adapter-dingtalk", "-e alicebot-adapter-apscheduler @ file:///${PROJECT_ROOT}/packages/alicebot-adapter-apscheduler", ] -typing = [ # used only in type check - "tomli", - "watchfiles", - "trio>=0.22.2", # watchfiles used this lib -] +typing = ["tomli", "watchfiles"] # used only in type check lint = ["ruff", "mypy", "pylint", "pylint-pydantic"] docs = ["sophia-doc~=0.1.4", "tomlkit"] test = ["pytest", "pytest-xdist", "pytest-cov"]