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

Bump aiocoap from 0.4.3 to 0.4.4 #539

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps aiocoap from 0.4.3 to 0.4.4.

Changelog

Sourced from aiocoap's changelog.

Version 0.4.4

New features


* Content-Format / Accept option now use a dedicated ContentFormat type.

Applications should be unaffected as the type is still derived from int.

  • Non-traditional responses are now experimentally supported by implementing .render_to_pipe() on a resource.

Deprecations

  • Building custom resources by inheriting from interfaces.Resource / interfaces.ObservableResource and implementing .render() etc. is deprecated. Instead, inherit from resource.Resource (recommended), or implement .render_to_pipe() (eg. when implementing a proxy).

  • numbers.media_type and media_type_rev: Use the ContentFormat type's constructor and accessors instead.

Tools


* aiocoap-fileserver now has optiojnal write support, and ETag and If-* option
  handling.
  • aiocoap-client now assembles and displays the Location-* options of responses.

  • aiocoap-rd now has dedicated logging independent of aiocoap's.

  • Various small fixes to aiocoap-rd.

  • Help and error texts were improved.

Minor enhancements

  • Documentation now uses await idiom, as it is available even inside the asyncio REPL.

  • The default cut-off for block-wise fragmentation was increased from 1024 to 1124 bytes. This allows OSCORE to use the full inner block-wise size without inadvertently causing outer fragmentation, while still fitting within the IPv6 minimum MTU.

... (truncated)

Commits
  • c78c283 Prepare 0.4.4 release
  • 602dd4f Update release checklist
  • 1db497e contentformat: Remove 'TEMPORARY' marker from IANA entries
  • 8f7ea9c contentformat: Update from IANA
  • ad072ba codes: Updates from IANA
  • 27a2ce2 options: Update from IANA
  • afa9c71 README: Update references
  • 6436531 NEWS update
  • 8fe5e12 Shutdown fixes (mainly) for TCP and WebSockets
  • 757ebad tests: Remove odd reference cycle that doesn't seem to match up with the curr...
  • Additional commits viewable in compare view

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)

Bumps [aiocoap](https://github.com/chrysn/aiocoap) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/chrysn/aiocoap/releases)
- [Changelog](https://github.com/chrysn/aiocoap/blob/master/NEWS)
- [Commits](chrysn/aiocoap@0.4.3...0.4.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 22, 2022
@MartinHjelmare
Copy link
Contributor

Would be good to test this PR manually.

@ggravlingen
Copy link
Member

I'll have a look, probably towards the end of the week.

@ggravlingen
Copy link
Member

ggravlingen commented Aug 27, 2022

Installing:

(.venv) vscode ➜ /workspaces/pytradfri (dependabot/pip/aiocoap-0.4.4) $ pip install -r requirements.txt 
Collecting aiocoap==0.4.4
  Downloading aiocoap-0.4.4-py3-none-any.whl (204 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 204.7/204.7 KB 5.2 MB/s eta 0:00:00
Requirement already satisfied: DTLSSocket==0.1.12 in /opt/.venv/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.1.12)
Collecting pydantic==1.9.2
  Downloading pydantic-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.0/12.0 MB 9.3 MB/s eta 0:00:00
Requirement already satisfied: Cython in /opt/.venv/lib/python3.10/site-packages (from DTLSSocket==0.1.12->-r requirements.txt (line 2)) (0.29.30)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/.venv/lib/python3.10/site-packages (from pydantic==1.9.2->-r requirements.txt (line 3)) (4.3.0)
Installing collected packages: pydantic, aiocoap
  Attempting uninstall: pydantic
    Found existing installation: pydantic 1.9.1
    Uninstalling pydantic-1.9.1:
      Successfully uninstalled pydantic-1.9.1
  Attempting uninstall: aiocoap
    Found existing installation: aiocoap 0.4.3
    Uninstalling aiocoap-0.4.3:
      Successfully uninstalled aiocoap-0.4.3
Successfully installed aiocoap-0.4.4 pydantic-1.9.2
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/opt/.venv/bin/python3 -m pip install --upgrade pip' command.

Running the CLI works:

(.venv) vscode ➜ /workspaces/pytradfri (dependabot/pip/aiocoap-0.4.4) $ python3 -i -m pytradfri 192.168.15.18
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001']
DEBUG:pytradfri.api.libcoap_api:Received: [65550,65554,65556,65557,65551,65552,65542,65537,65541,65555,65545,65547,65538,65546,65548,65553,65544]
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001', 65550]
DEBUG:pytradfri.api.libcoap_api:Received: {"9001":"TRADFRI remote control","9003":65550,"9002":1599395205,"9020":1621117024,"9054":0,"3":{"0":"IKEA of Sweden","1":"TRADFRI remote control","2":"","3":"2.3.014","6":3,"7":4545,"8":0,"9":100},"9019":1,"15009":[{"9003":0}],"5750":0}
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001', 65554]
DEBUG:pytradfri.api.libcoap_api:Received: {"9001":"Luftrenare","9003":65554,"9002":1634661517,"9020":1661529337,"9054":0,"3":{"0":"IKEA of Sweden","1":"STARKVIND Air purifier","2":"","3":"1.0.033","6":1,"7":4364,"8":0},"9019":1,"5750":10,"15025":[{"5910":78605,"5900":15,"5902":180595,"5903":0,"5904":259200,"5905":0,"5906":1,"5907":46,"5908":15,"5909":439867,"9003":0}]}

Turning off a light works:

>>> api(light.light_control.set_dimmer(0))
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 put ['15001', '65556']: {'3311': [{'5851': 0}]}
DEBUG:pytradfri.api.libcoap_api:Received: 

@MartinHjelmare
Copy link
Contributor

Thanks!

@MartinHjelmare MartinHjelmare merged commit 55187e3 into master Aug 27, 2022
@MartinHjelmare MartinHjelmare deleted the dependabot/pip/aiocoap-0.4.4 branch August 27, 2022 18:31
@MartinHjelmare
Copy link
Contributor

We should probably bump extras require in setup.py.

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