Skip to content

Commit 7225f0e

Browse files
authored
Fix minimum attrs version (openapi-generators#1184)
Closes openapi-generators#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

Diff for: .changeset/fix_minimum_attrs_version.md

+10
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!

Diff for: end_to_end_tests/golden-record/pyproject.toml

+1-1
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]

Diff for: end_to_end_tests/literal-enums-golden-record/pyproject.toml

+1-1
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]

Diff for: end_to_end_tests/metadata_snapshots/pdm.pyproject.toml

+1-1
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

Diff for: end_to_end_tests/metadata_snapshots/poetry.pyproject.toml

+1-1
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]

Diff for: end_to_end_tests/metadata_snapshots/setup.py

+1-1
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
)

Diff for: end_to_end_tests/test-3-1-golden-record/pyproject.toml

+1-1
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]

Diff for: integration-tests/pyproject.toml

+1-1
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

Diff for: openapi_python_client/templates/pyproject.toml.jinja

+2-2
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

Diff for: 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=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
)

Diff for: pdm.lock

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

Diff for: pdm.minimal.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
groups = ["default", "dev"]
66
strategy = ["direct_minimal_versions", "inherit_metadata"]
77
lock_version = "4.5.0"
8-
content_hash = "sha256:50f45ddc1fe2529d12869f3f378bf09b25166e6c66cdf84f1c32db1cbe43ff8c"
8+
content_hash = "sha256:7f8035cfb12eec0bca9053eb34cc6b70a1cfbf464921c1abb3ae3c3e63cfeab4"
99

1010
[[metadata.targets]]
1111
requires_python = "~=3.9"
@@ -43,13 +43,13 @@ files = [
4343

4444
[[package]]
4545
name = "attrs"
46-
version = "21.3.0"
47-
requires_python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
46+
version = "22.2.0"
47+
requires_python = ">=3.6"
4848
summary = "Classes Without Boilerplate"
4949
groups = ["default"]
5050
files = [
51-
{file = "attrs-21.3.0-py2.py3-none-any.whl", hash = "sha256:8f7335278dedd26b58c38e006338242cc0977f06d51579b2b8b87b9b33bff66c"},
52-
{file = "attrs-21.3.0.tar.gz", hash = "sha256:50f3c9b216dc9021042f71b392859a773b904ce1a029077f58f6598272432045"},
51+
{file = "attrs-22.2.0-py3-none-any.whl", hash = "sha256:29e95c7f6778868dbd49170f98f8818f78f3dc5e0e37c0b1f474e3561b240836"},
52+
{file = "attrs-22.2.0.tar.gz", hash = "sha256:c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99"},
5353
]
5454

5555
[[package]]

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies = [
1010
"colorama>=0.4.3; sys_platform == \"win32\"",
1111
"shellingham>=1.3.2,<2.0.0",
1212
"pydantic>=2.1.1,<3.0.0",
13-
"attrs>=21.3.0",
13+
"attrs>=22.2.0",
1414
"python-dateutil>=2.8.1,<3.0.0",
1515
"httpx>=0.20.0,<0.29.0",
1616
"ruamel.yaml>=0.18.6,<0.19.0",

0 commit comments

Comments
 (0)