Skip to content

Commit

Permalink
feat(deps): Allow for attrs 21.x in generated clients (#412)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency attrs to v21

* feat(deps): Allow for attrs 21.x in generated clients

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Dylan Anthony <contact@dylananthony.com>
  • Loading branch information
3 people committed May 7, 2021
1 parent a731477 commit 032a4a4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion end_to_end_tests/golden-record/pyproject.toml
Expand Up @@ -15,7 +15,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]
[tool.poetry.dependencies]
python = "^3.6"
httpx = ">=0.15.4,<0.19.0"
attrs = "^20.1.0"
attrs = ">=20.1.0,<22.0.0"
python-dateutil = "^2.8.0"

[tool.black]
Expand Down
2 changes: 1 addition & 1 deletion openapi_python_client/templates/pyproject.toml.jinja
Expand Up @@ -15,7 +15,7 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
[tool.poetry.dependencies]
python = "^3.6"
httpx = ">=0.15.4,<0.19.0"
attrs = "^20.1.0"
attrs = ">=20.1.0,<22.0.0"
python-dateutil = "^2.8.0"
[tool.black]
Expand Down
2 changes: 1 addition & 1 deletion openapi_python_client/templates/setup.py.jinja
Expand Up @@ -14,6 +14,6 @@ setup(
package_dir={"": "{{ package_name }}"},
packages=find_packages(where="{{ package_name }}"),
python_requires=">=3.6, <4",
install_requires=["httpx >= 0.15.0, < 0.19.0", "attrs >= 20.1.0", "python-dateutil >= 2.8.0, < 3"],
install_requires=["httpx >= 0.15.0, < 0.19.0", "attrs >= 20.1.0, < 22.0.0", "python-dateutil >= 2.8.0, < 3"],
package_data={"": ["CHANGELOG.md"], "{{ package_name }}": ["py.typed"]},
)
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -29,7 +29,7 @@ isort = "^5.0.5"
pyyaml = "^5.3.1"
importlib_metadata = {version = "^2.0.0", python = "<3.8"}
pydantic = "^1.6.1"
attrs = "^20.1.0"
attrs = "^21.0.0"
python-dateutil = "^2.8.1"
httpx = ">=0.15.4,<0.19.0"
autoflake = "^1.4"
Expand Down

0 comments on commit 032a4a4

Please sign in to comment.