Skip to content

Commit 7225f0e

Browse files
authored
Fix minimum attrs version (#1184)
Closes #1084 Co-authored-by: Dylan Anthony <[email protected]>
1 parent ee27f31 commit 7225f0e

File tree

13 files changed

+27
-17
lines changed

13 files changed

+27
-17
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
default: patch
3+
---
4+
5+
# Fix minimum `attrs` version
6+
7+
The minimum `attrs` dependency version was incorrectly set to 21.3.0. This has been corrected to 22.2.0, the minimum
8+
supported version since `openapi-python-client` 0.19.1.
9+
10+
Closes #1084, thanks @astralblue!

end_to_end_tests/golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
1313
[tool.poetry.dependencies]
1414
python = "^3.9"
1515
httpx = ">=0.20.0,<0.29.0"
16-
attrs = ">=21.3.0"
16+
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

1919
[build-system]

end_to_end_tests/literal-enums-golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include = ["CHANGELOG.md", "my_enum_api_client/py.typed"]
1313
[tool.poetry.dependencies]
1414
python = "^3.9"
1515
httpx = ">=0.20.0,<0.29.0"
16-
attrs = ">=21.3.0"
16+
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

1919
[build-system]

end_to_end_tests/metadata_snapshots/pdm.pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
requires-python = ">=3.9,<4.0"
88
dependencies = [
99
"httpx>=0.20.0,<0.29.0",
10-
"attrs>=21.3.0",
10+
"attrs>=22.2.0",
1111
"python-dateutil>=2.8.0",
1212
]
1313

end_to_end_tests/metadata_snapshots/poetry.pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include = ["CHANGELOG.md", "test_3_1_features_client/py.typed"]
1313
[tool.poetry.dependencies]
1414
python = "^3.9"
1515
httpx = ">=0.20.0,<0.29.0"
16-
attrs = ">=21.3.0"
16+
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

1919
[build-system]

end_to_end_tests/metadata_snapshots/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
long_description_content_type="text/markdown",
1414
packages=find_packages(),
1515
python_requires=">=3.9, <4",
16-
install_requires=["httpx >= 0.20.0, < 0.29.0", "attrs >= 21.3.0", "python-dateutil >= 2.8.0, < 3"],
16+
install_requires=["httpx >= 0.20.0, < 0.29.0", "attrs >= 22.2.0", "python-dateutil >= 2.8.0, < 3"],
1717
package_data={"test_3_1_features_client": ["py.typed"]},
1818
)

end_to_end_tests/test-3-1-golden-record/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include = ["CHANGELOG.md", "test_3_1_features_client/py.typed"]
1313
[tool.poetry.dependencies]
1414
python = "^3.9"
1515
httpx = ">=0.20.0,<0.29.0"
16-
attrs = ">=21.3.0"
16+
attrs = ">=22.2.0"
1717
python-dateutil = "^2.8.0"
1818

1919
[build-system]

integration-tests/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
requires-python = ">=3.9,<4.0"
88
dependencies = [
99
"httpx>=0.20.0,<0.29.0",
10-
"attrs>=21.3.0",
10+
"attrs>=22.2.0",
1111
"python-dateutil>=2.8.0",
1212
]
1313

openapi_python_client/templates/pyproject.toml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
2020
{% if pdm %}
2121
dependencies = [
2222
"httpx>=0.20.0,<0.29.0",
23-
"attrs>=21.3.0",
23+
"attrs>=22.2.0",
2424
"python-dateutil>=2.8.0",
2525
]
2626

@@ -32,7 +32,7 @@ distribution = true
3232
[tool.poetry.dependencies]
3333
python = "^3.9"
3434
httpx = ">=0.20.0,<0.29.0"
35-
attrs = ">=21.3.0"
35+
attrs = ">=22.2.0"
3636
python-dateutil = "^2.8.0"
3737
{% endif %}
3838

openapi_python_client/templates/setup.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ setup(
1313
long_description_content_type="text/markdown",
1414
packages=find_packages(),
1515
python_requires=">=3.9, <4",
16-
install_requires=["httpx >= 0.20.0, < 0.29.0", "attrs >= 21.3.0", "python-dateutil >= 2.8.0, < 3"],
16+
install_requires=["httpx >= 0.20.0, < 0.29.0", "attrs >= 22.2.0", "python-dateutil >= 2.8.0, < 3"],
1717
package_data={"{{ package_name }}": ["py.typed"]},
1818
)

0 commit comments

Comments
 (0)