diff --git a/codegen-output-py/endpoint-rules-client/.smithy-python-manifest.json b/codegen-output-py/endpoint-rules-client/.smithy-python-manifest.json index aa397b733..9be605dfe 100644 --- a/codegen-output-py/endpoint-rules-client/.smithy-python-manifest.json +++ b/codegen-output-py/endpoint-rules-client/.smithy-python-manifest.json @@ -1,7 +1,7 @@ { "files": { "README.md": "21b6af5d2c11ca92be799a611365291e00be66fee36e0e94876c35ff323358ec", - "pyproject.toml": "41e367adbc95e6d6198626246c8645aa2d156325785209e97f64267a712c5b75", + "pyproject.toml": "0d9158aab01dd1a034aa2bca0a69aa2d247433509c1ebd153b837c95ae79606b", "src/endpoint_rules_client/__init__.py": "f85901beed783e493475b1ccde6669b030eafa7a9b98f796d9a62e3d584e5286", "src/endpoint_rules_client/_private/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "src/endpoint_rules_client/_private/endpoints.py": "f5bec5c0c17f9ec3fab86ea81c1472b1771118e6064f52cbb58cf85d89e09b20", diff --git a/codegen-output-py/endpoint-rules-client/pyproject.toml b/codegen-output-py/endpoint-rules-client/pyproject.toml index ec8160ef7..93dcc1f92 100644 --- a/codegen-output-py/endpoint-rules-client/pyproject.toml +++ b/codegen-output-py/endpoint-rules-client/pyproject.toml @@ -16,7 +16,7 @@ dependencies = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy-test~=0.5.0", ] diff --git a/codegen-output/aws-json-1-0/pyproject.toml b/codegen-output/aws-json-1-0/pyproject.toml index ff88cf70f..b3969b8ec 100644 --- a/codegen-output/aws-json-1-0/pyproject.toml +++ b/codegen-output/aws-json-1-0/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/aws-json-1-1/pyproject.toml b/codegen-output/aws-json-1-1/pyproject.toml index 0a7c9d289..d86652f5d 100644 --- a/codegen-output/aws-json-1-1/pyproject.toml +++ b/codegen-output/aws-json-1-1/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/aws-query/pyproject.toml b/codegen-output/aws-query/pyproject.toml index fb05aa823..23075be90 100644 --- a/codegen-output/aws-query/pyproject.toml +++ b/codegen-output/aws-query/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/ec2-query/pyproject.toml b/codegen-output/ec2-query/pyproject.toml index d484f3002..d127d1ab2 100644 --- a/codegen-output/ec2-query/pyproject.toml +++ b/codegen-output/ec2-query/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/my-handwritten-json-model/pyproject.toml b/codegen-output/my-handwritten-json-model/pyproject.toml index fa46535c8..d269238a1 100644 --- a/codegen-output/my-handwritten-json-model/pyproject.toml +++ b/codegen-output/my-handwritten-json-model/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/my-handwritten-model/pyproject.toml b/codegen-output/my-handwritten-model/pyproject.toml index 348c64d19..0d02beff3 100644 --- a/codegen-output/my-handwritten-model/pyproject.toml +++ b/codegen-output/my-handwritten-model/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/non-query-compatible-rpcv2-cbor/pyproject.toml b/codegen-output/non-query-compatible-rpcv2-cbor/pyproject.toml index 2ed4b633a..f965f7c12 100644 --- a/codegen-output/non-query-compatible-rpcv2-cbor/pyproject.toml +++ b/codegen-output/non-query-compatible-rpcv2-cbor/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/query-compatible-aws-json-1-0/pyproject.toml b/codegen-output/query-compatible-aws-json-1-0/pyproject.toml index 7e70d9be9..0594086d9 100644 --- a/codegen-output/query-compatible-aws-json-1-0/pyproject.toml +++ b/codegen-output/query-compatible-aws-json-1-0/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/query-compatible-rpcv2-cbor/pyproject.toml b/codegen-output/query-compatible-rpcv2-cbor/pyproject.toml index 5db91c1eb..31e1696a8 100644 --- a/codegen-output/query-compatible-rpcv2-cbor/pyproject.toml +++ b/codegen-output/query-compatible-rpcv2-cbor/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/rest-json-1/pyproject.toml b/codegen-output/rest-json-1/pyproject.toml index 3dd7ad6a5..0d94e3051 100644 --- a/codegen-output/rest-json-1/pyproject.toml +++ b/codegen-output/rest-json-1/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/rest-xml-with-namespace/pyproject.toml b/codegen-output/rest-xml-with-namespace/pyproject.toml index e4497e6f5..46bacbd5b 100644 --- a/codegen-output/rest-xml-with-namespace/pyproject.toml +++ b/codegen-output/rest-xml-with-namespace/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/rest-xml/pyproject.toml b/codegen-output/rest-xml/pyproject.toml index 74284cca4..ad40b0c60 100644 --- a/codegen-output/rest-xml/pyproject.toml +++ b/codegen-output/rest-xml/pyproject.toml @@ -37,7 +37,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/rpcv2-cbor/pyproject.toml b/codegen-output/rpcv2-cbor/pyproject.toml index 7c8d5a596..30113b76f 100644 --- a/codegen-output/rpcv2-cbor/pyproject.toml +++ b/codegen-output/rpcv2-cbor/pyproject.toml @@ -36,7 +36,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_cbor~=0.5.0", "smithy_test~=0.5.0" ] diff --git a/codegen-output/rpcv2-json/pyproject.toml b/codegen-output/rpcv2-json/pyproject.toml index 76220fff6..8e0409bfa 100644 --- a/codegen-output/rpcv2-json/pyproject.toml +++ b/codegen-output/rpcv2-json/pyproject.toml @@ -36,7 +36,7 @@ awscrt = [ [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "smithy_test~=0.5.0" ] diff --git a/codegen/core/src/main/java/software/amazon/smithy/python/codegen/SmithyPythonDependency.java b/codegen/core/src/main/java/software/amazon/smithy/python/codegen/SmithyPythonDependency.java index 763f7bd47..e589ef1d8 100644 --- a/codegen/core/src/main/java/software/amazon/smithy/python/codegen/SmithyPythonDependency.java +++ b/codegen/core/src/main/java/software/amazon/smithy/python/codegen/SmithyPythonDependency.java @@ -114,7 +114,7 @@ public final class SmithyPythonDependency { */ public static final PythonDependency PYTEST_ASYNCIO = new PythonDependency( "pytest-asyncio", - ">=1.3.0,<1.4.0", + ">=1.3.0,<2.0.0", Type.TEST_DEPENDENCY, false); diff --git a/packages/smithy-python/.changes/next-release/smithy-python-dependency-8b4af978f270424cac0c9ce7b59cf13c.json b/packages/smithy-python/.changes/next-release/smithy-python-dependency-8b4af978f270424cac0c9ce7b59cf13c.json new file mode 100644 index 000000000..a27ca27ae --- /dev/null +++ b/packages/smithy-python/.changes/next-release/smithy-python-dependency-8b4af978f270424cac0c9ce7b59cf13c.json @@ -0,0 +1,4 @@ +{ + "type": "dependency", + "description": "Allow pytest-asyncio 1.x releases up to 2.0 in generated packages' test dependencies." +} \ No newline at end of file diff --git a/packages/smithy-python/src/smithy_python/dependencies.py b/packages/smithy-python/src/smithy_python/dependencies.py index 57be9100d..676bacfc5 100644 --- a/packages/smithy-python/src/smithy_python/dependencies.py +++ b/packages/smithy-python/src/smithy_python/dependencies.py @@ -138,7 +138,7 @@ def for_group(self, group: DependencyGroup) -> tuple[Dependency, ...]: PYTEST_ASYNCIO = Dependency( package="pytest-asyncio", - specifier=">=1.3.0,<1.4.0", + specifier=">=1.3.0,<2.0.0", group="test", ) """Async test support for generated client tests.""" diff --git a/packages/smithy-python/tests/unit/test_client_generation.py b/packages/smithy-python/tests/unit/test_client_generation.py index 32bc70285..5c3eb0c1c 100644 --- a/packages/smithy-python/tests/unit/test_client_generation.py +++ b/packages/smithy-python/tests/unit/test_client_generation.py @@ -533,7 +533,7 @@ def test_endpoint_tests_set_config_and_keyword_arguments(tmp_path: Path) -> None assert "mark.skip" not in tests project = (tmp_path / "pyproject.toml").read_text() assert '"smithy-test~=0.5.0",' in project - assert '"pytest-asyncio>=1.3.0,<1.4.0",' in project + assert '"pytest-asyncio>=1.3.0,<2.0.0",' in project def test_endpoint_tests_skip_inputs_the_client_cannot_express(tmp_path: Path) -> None: diff --git a/packages/smithy-python/tests/unit/test_dependencies.py b/packages/smithy-python/tests/unit/test_dependencies.py index 15dc0b3e2..c5d634265 100644 --- a/packages/smithy-python/tests/unit/test_dependencies.py +++ b/packages/smithy-python/tests/unit/test_dependencies.py @@ -75,4 +75,4 @@ def test_runtime_dependency_catalog() -> None: assert HATCHLING == Dependency("hatchling", "", "build") assert SMITHY_TEST == Dependency("smithy-test", "~=0.5.0", "test") assert PYTEST == Dependency("pytest", ">=9.0.3,<10.0.0", "test") - assert PYTEST_ASYNCIO == Dependency("pytest-asyncio", ">=1.3.0,<1.4.0", "test") + assert PYTEST_ASYNCIO == Dependency("pytest-asyncio", ">=1.3.0,<2.0.0", "test") diff --git a/pyproject.toml b/pyproject.toml index 9493fd284..a2d0c228e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ dependencies = [] [dependency-groups] test = [ "pytest>=9.0.3,<10.0.0", - "pytest-asyncio>=1.3.0,<1.4.0", + "pytest-asyncio>=1.3.0,<2.0.0", "pytest-cov>=6.0.0", "freezegun>=1.5.1", ] diff --git a/uv.lock b/uv.lock index 59c1a388f..b6ab38ee2 100644 --- a/uv.lock +++ b/uv.lock @@ -594,15 +594,15 @@ wheels = [ [[package]] name = "pytest-asyncio" -version = "1.3.0" +version = "1.5.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pytest" }, { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/90/2c/8af215c0f776415f3590cac4f9086ccefd6fd463befeae41cd4d3f193e5a/pytest_asyncio-1.3.0.tar.gz", hash = "sha256:d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5", size = 50087, upload-time = "2025-11-10T16:07:47.256Z" } +sdist = { url = "https://files.pythonhosted.org/packages/2c/de/80724f9b5b9eca1a654179cae6edc51aaa0a355a9834a736e2a188b91780/pytest_asyncio-1.5.0.tar.gz", hash = "sha256:92c8fa83ca419fd0d4bd6a34df6520dae435841d3733c319343249492adf37f7", size = 146227, upload-time = "2026-11-12T16:35:49.845Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e5/35/f8b19922b6a25bc0880171a2f1a003eaeb93657475193ab516fd87cac9da/pytest_asyncio-1.3.0-py3-none-any.whl", hash = "sha256:611e26147c7f77640e6d0a92a38ed17c3e9848063698d5c93d5aa7aa11cebff5", size = 15075, upload-time = "2025-11-10T16:07:45.537Z" }, + { url = "https://files.pythonhosted.org/packages/27/2d/e600d8f47597a803641704aba367c7266cd621f86561ec36da9888f160ec/pytest_asyncio-1.5.0-py3-none-any.whl", hash = "sha256:557f255ee03cc84f84a8d5f438bc9c6e0f714bf86970ae743c7ecb5a38d7e07d", size = 17215, upload-time = "2026-11-12T16:35:48.446Z" }, ] [[package]] @@ -825,7 +825,7 @@ lint = [{ name = "ruff", specifier = ">=0.9.7" }] test = [ { name = "freezegun", specifier = ">=1.5.1" }, { name = "pytest", specifier = ">=9.0.3,<10.0.0" }, - { name = "pytest-asyncio", specifier = ">=1.3.0,<1.4.0" }, + { name = "pytest-asyncio", specifier = ">=1.3.0,<2.0.0" }, { name = "pytest-cov", specifier = ">=6.0.0" }, ] typing = [