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.10,>=1.8 to >=1.8,<1.11 in /packages/@jsii/python-runtime #3315

Conversation

dependabot[bot]
Copy link
Contributor

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

Updates the requirements on cattrs to permit the latest version.

Changelog

Sourced from cattrs's changelog.

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. ([#151](https://github.com/python-attrs/cattrs/issues/151) <https://github.com/python-attrs/cattrs/issues/151>_)
  • The source code for generated un/structuring functions is stored in the linecache cache, which enables more informative stack traces when un/structuring errors happen using the GenConverter. This behavior can optionally be disabled to save memory.
  • Support using the attr converter callback during structure. By default, this is a method of last resort, but it can be elevated to the default by setting prefer_attrib_converters=True on Converter or GenConverter. ([#138](https://github.com/python-attrs/cattrs/issues/138) <https://github.com/python-attrs/cattrs/issues/138>_)
  • Fix structuring recursive classes. ([#159](https://github.com/python-attrs/cattrs/issues/159) <https://github.com/python-attrs/cattrs/issues/159>_)
  • Converters now support un/structuring hook factories. This is the most powerful and complex venue for customizing un/structuring. This had previously been an internal feature.
  • The Common Usage Examples <https://cattrs.readthedocs.io/en/latest/usage.html#using-factory-hooks>_ documentation page now has a section on advanced hook factory usage.
  • cattr.override now supports the omit parameter, which makes cattrs skip the atribute entirely when unstructuring.
  • The cattr.preconf.bson module is now tested against the bson module bundled with the pymongo package, because that package is much more popular than the standalone PyPI bson package.

1.7.1 (2021-05-28)

  • Literal s are not supported on Python 3.9.0 (supported on 3.9.1 and later), so we skip importing them there. ([#150](https://github.com/python-attrs/cattrs/issues/150) <https://github.com/python-attrs/cattrs/issues/150>_)

1.7.0 (2021-05-26)

  • cattr.global_converter (which provides cattr.unstructure, cattr.structure etc.) is now an instance of cattr.GenConverter.
  • Literal s are now supported and validated when structuring.
  • Fix dependency metadata information for attrs. ([#147](https://github.com/python-attrs/cattrs/issues/147) <https://github.com/python-attrs/cattrs/issues/147>_)
  • Fix GenConverter mapping structuring for unannotated dicts. ([#148](https://github.com/python-attrs/cattrs/issues/148) <https://github.com/python-attrs/cattrs/issues/148>_)

... (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 Jan 4, 2022
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](python-attrs/cattrs@v1.8.0...v1.10.0)

---
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-1.11 branch from 8dc2b9d to 8a2d2fd Compare January 6, 2022 12:43
@mergify
Copy link
Contributor

mergify bot commented Jan 6, 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 Jan 6, 2022
@mergify
Copy link
Contributor

mergify bot commented Jan 6, 2022

Merging (with squash)...

@mergify mergify bot merged commit e37272d into main Jan 6, 2022
@mergify mergify bot deleted the dependabot/pip/packages/jsii/python-runtime/cattrs-gte-1.8-and-lt-1.11 branch January 6, 2022 13:51
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Jan 6, 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