Skip to content

Commit d572480

Browse files
authored
feat: Don't set a cap on allowed attrs version.
BREAKING CHANGE: Minimum required `attrs` version in generated clients is now 21.3.0.
1 parent b19e47a commit d572480

File tree

6 files changed

+13
-113
lines changed

6 files changed

+13
-113
lines changed

end_to_end_tests/golden-record/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1414
[tool.poetry.dependencies]
1515
python = "^3.7"
1616
httpx = ">=0.15.4,<0.22.0"
17-
attrs = ">=20.1.0,<22.0.0"
17+
attrs = ">=21.3.0"
1818
python-dateutil = "^2.8.0"
1919

2020
[build-system]

integration-tests/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "open_api_test_server_client/py.typed"]
1212
[tool.poetry.dependencies]
1313
python = "^3.7"
1414
httpx = ">=0.15.4,<0.22.0"
15-
attrs = ">=20.1.0,<22.0.0"
15+
attrs = ">=21.3.0"
1616
python-dateutil = "^2.8.0"
1717

1818
[tool.poetry.dev-dependencies]

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.7"
1717
httpx = ">=0.15.4,<0.22.0"
18-
attrs = ">=20.1.0,<22.0.0"
18+
attrs = ">=21.3.0"
1919
python-dateutil = "^2.8.0"
2020

2121
[build-system]

openapi_python_client/templates/setup.py.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ setup(
1313
long_description_content_type="text/markdown",
1414
packages=["{{ package_name }}"],
1515
python_requires=">=3.7, <4",
16-
install_requires=["httpx >= 0.15.0, < 0.22.0", "attrs >= 20.1.0, < 22.0.0", "python-dateutil >= 2.8.0, < 3"],
16+
install_requires=["httpx >= 0.15.0, < 0.22.0", "attrs >= 21.3.0", "python-dateutil >= 2.8.0, < 3"],
1717
package_data={"{{ package_name }}": ["py.typed"]},
1818
)

poetry.lock

+8-108
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ black = "*"
2828
isort = "^5.0.5"
2929
importlib_metadata = {version = ">2,<5", python = "<3.8"}
3030
pydantic = "^1.6.1"
31-
attrs = "^21.0.0"
31+
attrs = ">=21.3.0"
3232
python-dateutil = "^2.8.1"
3333
httpx = ">=0.15.4,<0.22.0"
3434
autoflake = "^1.4"

0 commit comments

Comments
 (0)