Skip to content

Bump betterproto from 2.0.0b4 to 2.0.0b5 #43

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

Merged
merged 1 commit into from
Aug 14, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 8, 2022

Bumps betterproto from 2.0.0b4 to 2.0.0b5.

Release notes

Sourced from betterproto's releases.

v2.0.0-beta5

Enhancements

  • Breaking: Client and Service Stubs no longer pack and unpack the input message fields as parameters #331:

    Update your client calls and server handlers as follows:

    Clients before:

    response = await service.echo(value="hello", extra_times=1)

    Clients after:

    response = await service.echo(EchoRequest(value="hello", extra_times=1))

    Servers before:

    async def echo(self, value: str, extra_times: int) -> EchoResponse: ...

    Servers after:

    async def echo(self, echo_request: EchoRequest) -> EchoResponse:
        # Use echo_request.value
        # Use echo_request.extra_times
        ...
  • Format field comments also as docstrings #304

  • Implement __deepcopy__ for Message #339

  • Implement to/from_pydict() for Message #203

  • Run isort on compiled code #355

  • Expose timeout, deadline and metadata parameters from grpclib #352

  • Make Message.__getattribute__ invisible to type checkers #359

Bug Fixes

  • Fix map field edge-case #254
  • Fix message text in NotImplementedError #325
  • Fix Message.from_dict() in the presence of optional datetime fields #329
  • Support Jinja2 3.0 #330 & #402
  • Fix overwriting top level __init__.py #337
  • Remove deprecation warnings when fields are initialised with non-default values #348
  • Ensure nested class names are converted to PascalCase #353
  • Fix Message.to_dict() mutating the underlying Message #378
  • Fix some parameters being missing from services #381
Changelog

Sourced from betterproto's changelog.

[2.0.0b5] - 2022-08-01

  • Breaking: Client and Service Stubs no longer pack and unpack the input message fields as parameters #331

    Update your client calls and server handlers as follows:

    Clients before:

    response = await service.echo(value="hello", extra_times=1)

    Clients after:

    response = await service.echo(EchoRequest(value="hello", extra_times=1))

    Servers before:

    async def echo(self, value: str, extra_times: int) -> EchoResponse: ...

    Servers after:

    async def echo(self, echo_request: EchoRequest) -> EchoResponse:
        # Use echo_request.value
        # Use echo_request.extra_times
        ...
  • Add to/from_pydict() for Message #203

  • Format field comments also as docstrings #304

  • Implement __deepcopy__ for Message #339

  • Run isort on compiled code #355

  • Expose timeout, deadline and metadata parameters from grpclib #352

  • Make Message.__getattribute__ invisible to type checkers #359

  • Fix map field edge-case #254

  • Fix message text in NotImplementedError #325

  • Fix Message.from_dict() in the presence of optional datetime fields #329

  • Support Jinja2 3.0 to prevent version conflicts #330

  • Fix overwriting top level __init__.py #337

  • Remove deprecation warnings when fields are initialised with non-default values #348

  • Ensure nested class names are converted to PascalCase #353

  • Fix Message.to_dict() mutating the underlying Message #378

  • Fix some parameters being missing from services #381

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 8, 2022
@michaelosthege michaelosthege force-pushed the dependabot/pip/betterproto-2.0.0b5 branch from ffe08e1 to 311727d Compare August 14, 2022 12:43
Bumps [betterproto](https://github.com/danielgtaylor/python-betterproto) from 2.0.0b4 to 2.0.0b5.
- [Release notes](https://github.com/danielgtaylor/python-betterproto/releases)
- [Changelog](https://github.com/danielgtaylor/python-betterproto/blob/master/CHANGELOG.md)
- [Commits](danielgtaylor/python-betterproto@v2.0.0b4...v2.0.0b5)

---
updated-dependencies:
- dependency-name: betterproto
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@michaelosthege michaelosthege force-pushed the dependabot/pip/betterproto-2.0.0b5 branch from 311727d to c88e321 Compare August 14, 2022 12:44
@codecov-commenter
Copy link

Codecov Report

Merging #43 (c88e321) into main (415e075) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   95.93%   95.95%   +0.02%     
==========================================
  Files           8        8              
  Lines         590      594       +4     
==========================================
+ Hits          566      570       +4     
  Misses         24       24              
Impacted Files Coverage Δ
mcbackend/npproto/__init__.py 100.00% <ø> (ø)
mcbackend/meta.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@michaelosthege michaelosthege merged commit ca832ef into main Aug 14, 2022
@michaelosthege michaelosthege deleted the dependabot/pip/betterproto-2.0.0b5 branch August 14, 2022 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants