Skip to content

Commit b0f5323

Browse files
committed
feat(deps): Allow for attrs 21.x in generated clients
1 parent b41732f commit b0f5323

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

end_to_end_tests/golden-record/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1515
[tool.poetry.dependencies]
1616
python = "^3.6"
1717
httpx = ">=0.15.4,<0.19.0"
18-
attrs = "^21.0.0"
18+
attrs = ">=20.1.0,<22.0.0"
1919
python-dateutil = "^2.8.0"
2020

2121
[tool.black]

openapi_python_client/templates/pyproject.toml.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
1515
[tool.poetry.dependencies]
1616
python = "^3.6"
1717
httpx = ">=0.15.4,<0.19.0"
18-
attrs = "^20.1.0"
18+
attrs = ">=20.1.0,<22.0.0"
1919
python-dateutil = "^2.8.0"
2020
2121
[tool.black]

openapi_python_client/templates/setup.py.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ setup(
1414
package_dir={"": "{{ package_name }}"},
1515
packages=find_packages(where="{{ package_name }}"),
1616
python_requires=">=3.6, <4",
17-
install_requires=["httpx >= 0.15.0, < 0.19.0", "attrs >= 20.1.0", "python-dateutil >= 2.8.0, < 3"],
17+
install_requires=["httpx >= 0.15.0, < 0.19.0", "attrs >= 20.1.0, < 22.0.0", "python-dateutil >= 2.8.0, < 3"],
1818
package_data={"": ["CHANGELOG.md"], "{{ package_name }}": ["py.typed"]},
1919
)

0 commit comments

Comments
 (0)