Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update cattrs requirement from <1.11,>=1.8 to >=1.8,<22.2 in /packages/@jsii/python-runtime #3470

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 4, 2022

Updates the requirements on cattrs to permit the latest version.

Changelog

Sourced from cattrs's changelog.

22.1.0 (2022-04-03)

  • cattrs now uses the CalVer versioning convention.
  • cattrs now has a detailed validation mode, which is enabled by default. Learn more here <https://cattrs.readthedocs.io/en/latest/validation.html>_. The old behavior can be restored by creating the converter with detailed_validation=False.
  • attrs and dataclass structuring is now ~25% faster.
  • Fix an issue structuring bare typing.List s on Pythons lower than 3.9. ([#209](https://github.com/python-attrs/cattrs/issues/209) <https://github.com/python-attrs/cattrs/issues/209>_)
  • Fix structuring of non-parametrized containers like list/dict/... on Pythons lower than 3.9. ([#218](https://github.com/python-attrs/cattrs/issues/218) <https://github.com/python-attrs/cattrs/issues/218>_)
  • Fix structuring bare typing.Tuple on Pythons lower than 3.9. ([#218](https://github.com/python-attrs/cattrs/issues/218) <https://github.com/python-attrs/cattrs/issues/218>_)
  • Fix a wrong AttributeError of an missing __parameters__ attribute. This could happen when inheriting certain generic classes – for example typing.* classes are affected. ([#217](https://github.com/python-attrs/cattrs/issues/217) <https://github.com/python-attrs/cattrs/issues/217>_)
  • Fix structuring of enum.Enum instances in typing.Literal types. ([#231](https://github.com/python-attrs/cattrs/issues/231) <https://github.com/python-attrs/cattrs/pull/231>_)
  • Fix unstructuring all tuples - unannotated, variable-length, homogenous and heterogenous - to list. ([#226](https://github.com/python-attrs/cattrs/issues/226) <https://github.com/python-attrs/cattrs/issues/226>_)
  • For forbid_extra_keys raise custom ForbiddenExtraKeyError instead of generic Exception. ([#225](https://github.com/python-attrs/cattrs/issues/225) <https://github.com/python-attrs/cattrs/pull/225>_)
  • All preconf converters now support loads and dumps directly. See an example here <https://cattrs.readthedocs.io/en/latest/preconf.html>_.
  • Fix mappings with byte keys for the orjson, bson and tomlkit converters. ([#241](https://github.com/python-attrs/cattrs/issues/241) <https://github.com/python-attrs/cattrs/issues/241>_)

1.10.0 (2022-01-04)

  • Add PEP 563 (string annotations) support for dataclasses. ([#195](https://github.com/python-attrs/cattrs/issues/195) <https://github.com/python-attrs/cattrs/issues/195>_)
  • Fix handling of dictionaries with string Enum keys for bson, orjson, and tomlkit.
  • Rename the cattr.gen.make_dict_unstructure_fn.omit_if_default parameter to _cattrs_omit_if_default, for consistency. The omit_if_default parameters to GenConverter and override are unchanged.
  • Following the changes in attrs 21.3.0, add a cattrs package mirroring the existing cattr package. Both package names may be used as desired, and the cattr package isn't going away.

1.9.0 (2021-12-06)

  • Python 3.10 support, including support for the new union syntax (A | B vs Union[A, B]).
  • The GenConverter can now properly structure generic classes with generic collection fields. ([#149](https://github.com/python-attrs/cattrs/issues/149) <https://github.com/python-attrs/cattrs/issues/149>_)
  • omit=True now also affects generated structuring functions. ([#166](https://github.com/python-attrs/cattrs/issues/166) <https://github.com/python-attrs/cattrs/issues/166>_)
  • cattr.gen.{make_dict_structure_fn, make_dict_unstructure_fn} now resolve type annotations automatically when PEP 563 is used. ([#169](https://github.com/python-attrs/cattrs/issues/169) <https://github.com/python-attrs/cattrs/issues/169>_)
  • Protocols are now unstructured as their runtime types. ([#177](https://github.com/python-attrs/cattrs/issues/177) <https://github.com/python-attrs/cattrs/pull/177>_)
  • Fix an issue generating structuring functions with renaming and _cattrs_forbid_extra_keys=True. ([#190](https://github.com/python-attrs/cattrs/issues/190) <https://github.com/python-attrs/cattrs/issues/190>_)

1.8.0 (2021-08-13)

  • Fix GenConverter mapping structuring for unannotated dicts on Python 3.8.

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies This issue is a problem in a dependency or a pull request that updates a dependency file. language/python Related to Python bindings labels Apr 4, 2022
@dependabot dependabot bot force-pushed the dependabot/pip/packages/jsii/python-runtime/cattrs-gte-1.8-and-lt-22.2 branch from a070fc4 to 49cc769 Compare April 4, 2022 17:07
Updates the requirements on [cattrs](https://github.com/python-attrs/cattrs) to permit the latest version.
- [Release notes](https://github.com/python-attrs/cattrs/releases)
- [Changelog](https://github.com/python-attrs/cattrs/blob/main/HISTORY.rst)
- [Commits](https://github.com/python-attrs/cattrs/commits)

---
updated-dependencies:
- dependency-name: cattrs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/packages/jsii/python-runtime/cattrs-gte-1.8-and-lt-22.2 branch from 49cc769 to 9ab470b Compare April 4, 2022 18:05
@mergify
Copy link
Contributor

mergify bot commented Apr 4, 2022

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Apr 4, 2022
@mergify
Copy link
Contributor

mergify bot commented Apr 4, 2022

Merging (with squash)...

@mergify mergify bot merged commit f61f990 into main Apr 4, 2022
@mergify mergify bot deleted the dependabot/pip/packages/jsii/python-runtime/cattrs-gte-1.8-and-lt-22.2 branch April 4, 2022 19:12
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-approve dependencies This issue is a problem in a dependency or a pull request that updates a dependency file. language/python Related to Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants