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 <22.2,>=1.8 to >=1.8,<22.3 in /packages/@jsii/python-runtime #3785

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 3, 2022

Updates the requirements on cattrs to permit the latest version.

Changelog

Sourced from cattrs's changelog.

22.2.0 (2022-10-03)

  • Potentially breaking: cattrs.Converter has been renamed to cattrs.BaseConverter, and cattrs.GenConverter to cattrs.Converter. The GenConverter name is still available for backwards compatibility, but is deprecated. If you were depending on functionality specific to the old Converter, change your import to from cattrs import BaseConverter.
  • NewTypes <https://docs.python.org/3/library/typing.html#newtype>_ are now supported by the cattrs.Converter. ([#255](https://github.com/python-attrs/cattrs/issues/255) <https://github.com/python-attrs/cattrs/pull/255>, [#94](https://github.com/python-attrs/cattrs/issues/94) <https://github.com/python-attrs/cattrs/issues/94>, [#297](https://github.com/python-attrs/cattrs/issues/297) <https://github.com/python-attrs/cattrs/issues/297>_)
  • cattrs.Converter and cattrs.BaseConverter can now copy themselves using the copy method. ([#284](https://github.com/python-attrs/cattrs/issues/284) <https://github.com/python-attrs/cattrs/pull/284>_)
  • Python 3.11 support.
  • cattrs now supports un/structuring kw_only fields on attrs classes into/from dictionaries. ([#247](https://github.com/python-attrs/cattrs/issues/247) <https://github.com/python-attrs/cattrs/pull/247>_)
  • PyPy support (and tests, using a minimal Hypothesis profile) restored. ([#253](https://github.com/python-attrs/cattrs/issues/253) <https://github.com/python-attrs/cattrs/issues/253>_)
  • Fix propagating the detailed_validation flag to mapping and counter structuring generators.
  • Fix typing.Set applying too broadly when used with the GenConverter.unstruct_collection_overrides parameter on Python versions below 3.9. Switch to typing.AbstractSet on those versions to restore the old behavior. ([#264](https://github.com/python-attrs/cattrs/issues/264) <https://github.com/python-attrs/cattrs/issues/264>_)
  • Uncap the required Python version, to avoid problems detailed in https://iscinumpy.dev/post/bound-version-constraints/#pinning-the-python-version-is-special ([#275](https://github.com/python-attrs/cattrs/issues/275) <https://github.com/python-attrs/cattrs/issues/275>_)
  • Fix Converter.register_structure_hook_factory and cattrs.gen.make_dict_unstructure_fn type annotations. ([#281](https://github.com/python-attrs/cattrs/issues/281) <https://github.com/python-attrs/cattrs/issues/281>_)
  • Expose all error classes in the cattr.errors namespace. Note that it is deprecated, just use cattrs.errors. ([#252](https://github.com/python-attrs/cattrs/issues/252) <https://github.com/python-attrs/cattrs/issues/252>_)
  • Fix generating structuring functions for types with quotes in the name. ([#291](https://github.com/python-attrs/cattrs/issues/291) <https://github.com/python-attrs/cattrs/issues/291>_ [#277](https://github.com/python-attrs/cattrs/issues/277) <https://github.com/python-attrs/cattrs/issues/277>_)
  • Fix usage of notes for the final version of PEP 678 <https://peps.python.org/pep-0678/>, supported since exceptiongroup>=1.0.0rc4. ([#303](https://github.com/python-attrs/cattrs/issues/303) <303 <https://github.com/python-attrs/cattrs/pull/303>)

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>_.

... (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 Oct 3, 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...v22.2.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-22.3 branch from 8fdf182 to 7e711fc Compare October 3, 2022 11:10
@mergify
Copy link
Contributor

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

mergify bot commented Oct 3, 2022

Merging (with squash)...

@mergify mergify bot merged commit d422dbb into main Oct 3, 2022
@mergify mergify bot deleted the dependabot/pip/packages/jsii/python-runtime/cattrs-gte-1.8-and-lt-22.3 branch October 3, 2022 12:03
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Oct 3, 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