aamalev / aiohttp_apiset

Package to build routes using swagger specification
http://aiohttp-apiset.readthedocs.io/
Apache License 2.0
41 stars 9 forks source link

Bump attrs from 19.3.0 to 21.4.0 #139

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps attrs from 19.3.0 to 21.4.0.

Release notes

Sourced from attrs's releases.

21.4.0

This is a quick bug fix release for a regression that causes coverage report fail under certain circumstances.

Full Changelog

Changes

  • Fixed the test suite on PyPy3.8 where cloudpickle does not work. #892
  • Fixed coverage report for projects that use attrs and don't set a --source. #895, #896

21.3.0

This is a big release in the history of attrs and finishes an arc that took way too long and also delayed this very overdue release. But it's done: import attrs that has been talked about for years[^issue], but fell victim to “just this one more thing” has finally landed.

From now on, modern attrs code looks like this:

from attrs import define

@​define class HelloWorld: modern: bool = True

The define/field APIs have been around for over a year and were very popular, now the rest of the package followed suit. I'm very excited that attrs remains relevant and keeps evolving over now more than half a decade. If you're curious about some of the background, the docs now contain a short explanation and history lesson. As long as our users keep pushing us, we will keep pushing forward class generation in Python!

Big thanks to my GitHub Sponsors, Tidelift subscribers, and Ko-fi buyers that help me mustering the motivation for such long-running project!


Since the release took so long, there's more highlights than we can enumerate here, we'd just like to point out a breaking change in the new APIs: converters now run on setting attributes by default. If this is causing problems to you, you can disable that behavior by setting @define(on_setattr=[]).

[^issue]: I have an issue from 2018 that I wanted to "come back the moment this lands".

Full Changelog

Backward-incompatible Changes

  • When using @define, converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is on_setattr=[attrs.setters.convert, attrs.setters.validate].

    This is unfortunately a breaking change, but it was an oversight, impossible to raise a DeprecationWarning about, and it's better to fix it now while the APIs are very fresh with few users. #835, #886

  • import attrs has finally landed! As of this release, you can finally import attrs using its proper name.

    Not all names from the attr namespace have been transferred; most notably attr.s and attr.ib are missing. See attrs.define and attrs.field if you haven't seen our next-generation APIs yet. A more elaborate explanation can be found On The Core API Names

    This feature is at least for one release provisional. We don't plan on changing anything, but such a big change is unlikely to go perfectly on the first strike.

    The API docs have been mostly updated, but it will be an ongoing effort to change everything to the new APIs. Please note that we have not moved -- or even removed -- anything from attr!

... (truncated)

Changelog

Sourced from attrs's changelog.

21.4.0 (2021-12-29)

Changes ^^^^^^^

  • Fixed the test suite on PyPy3.8 where cloudpickle does not work. [#892](https://github.com/python-attrs/attrs/issues/892) <https://github.com/python-attrs/attrs/issues/892>_
  • Fixed coverage report for projects that use attrs and don't set a --source. [#895](https://github.com/python-attrs/attrs/issues/895) <https://github.com/python-attrs/attrs/issues/895>, [#896](https://github.com/python-attrs/attrs/issues/896) <https://github.com/python-attrs/attrs/issues/896>

21.3.0 (2021-12-28)

Backward-incompatible Changes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • When using @define, converters are now run by default when setting an attribute on an instance -- additionally to validators. I.e. the new default is on_setattr=[attrs.setters.convert, attrs.setters.validate].

    This is unfortunately a breaking change, but it was an oversight, impossible to raise a DeprecationWarning about, and it's better to fix it now while the APIs are very fresh with few users. [#835](https://github.com/python-attrs/attrs/issues/835) <https://github.com/python-attrs/attrs/issues/835>, [#886](https://github.com/python-attrs/attrs/issues/886) <https://github.com/python-attrs/attrs/issues/886>

  • import attrs has finally landed! As of this release, you can finally import attrs using its proper name.

    Not all names from the attr namespace have been transferred; most notably attr.s and attr.ib are missing. See attrs.define and attrs.field if you haven't seen our next-generation APIs yet. A more elaborate explanation can be found On The Core API Names <https://www.attrs.org/en/latest/names.html>_

    This feature is at least for one release provisional. We don't plan on changing anything, but such a big change is unlikely to go perfectly on the first strike.

    The API docs have been mostly updated, but it will be an ongoing effort to change everything to the new APIs. Please note that we have not moved -- or even removed -- anything from attr!

    Please do report any bugs or documentation inconsistencies! [#887](https://github.com/python-attrs/attrs/issues/887) <https://github.com/python-attrs/attrs/issues/887>_

Changes ^^^^^^^

  • attr.asdict(retain_collection_types=False) (default) dumps collection-esque keys as tuples. [#646](https://github.com/python-attrs/attrs/issues/646) <https://github.com/python-attrs/attrs/issues/646>_,

... (truncated)

Commits


Dependabot compatibility score

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)
codecov[bot] commented 2 years ago

Codecov Report

Merging #139 (c999670) into 0.9.X (c2e8319) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##            0.9.X     #139   +/-   ##
=======================================
  Coverage   91.44%   91.44%           
=======================================
  Files          14       14           
  Lines        1801     1801           
=======================================
  Hits         1647     1647           
  Misses        154      154           
Flag Coverage Δ
unittests 91.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

dependabot[bot] commented 2 years ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

dependabot[bot] commented 2 years ago

Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.