rhaamo / pyAirwaves

pyAirwaves is an ADS-B and AIS processing, storage (planned), and display application with Leaflets integration.
GNU Affero General Public License v3.0
10 stars 4 forks source link

Bump pyais from 1.4.0 to 2.0.3 #187

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps pyais from 1.4.0 to 2.0.3.

Release notes

Sourced from pyais's releases.

Bugfixes and improvements

  • Closes M0r13n/pyais#54

    • for some fields like speed, lat or lon their types were not properly enforced. This led to typing errors and wrong values, e.g. 0 instead of 0.0.
  • Closes M0r13n/pyais#59

    • when encoding messages the underlying method int_to_bin incorrectly assumed that all values were signed. This was wrong and could lead to invalid messages, when encoding.
  • Closes M0r13n/pyais#58

    • A missing checksum caused a ValueError, which is now ignored

Bug fix: Rename shipname to name for type 21

See #52

Release version 2.0.0

  • WARNING: The v2 release will introduce breaking changes
  • Introduces the possibility to encode messages
  • decoding has been rewritten and implements an iterative decoding approach
  • The following fields were renamed:
    • message_fragments -> frag_cnt
    • fragment_number -> frag_num
    • message_id -> seq_id
    • type -> msg_type
    • shiptype -> ship_type
  • msg.decode() does not return a pyais.messages.AISMessage instance anymore
    • instead an instance of pyais.messages.MessageTypeX is returned, where X is the type of the message (1-27)
  • in v1 you called decoded.content to get the decoded message as a dictionary - this is now decoded.asdict()

Add bounds check for variable length messages

  • Correctly handles variable length messages (M0r13n/pyais#40)
    • prior versions were missing required length checks
    • therefore some messages were not correctly decoded
    • this affects Type 7, 15, 16, 20, 22, 24, 25 and 26

Better error messages for decode_msg

No release notes provided.

Bugfixes

This release fixes two bugs:

  1. allows empty channel
  2. limits payload to 82 chars

Make NMEAMessage subscriptable

  • Makes NMEAMessage subscribable
  • Adds documentation on readthedocs.org

... (truncated)

Changelog

Sourced from pyais's changelog.

Version 2.0.3 27 Mar 2022

  • Closes M0r13n/pyais#54

    • for some fields like speed, lat or lon their types were not properly enforced. This led to typing errors and wrong values, e.g. 0 instead of 0.0.
  • Closes M0r13n/pyais#59

    • when encoding messages the underlying method int_to_bin incorrectly assumed that all values were signed. This was wrong and could lead to invalid messages, when encoding.
  • Closes M0r13n/pyais#58

    • A missing checksum caused a ValueError, which is now ignored

Version 2.0.2 20 Mar 2022

  • Closes M0r13n/pyais#55

    • Makes the attribute raim always an boolean
  • Closes M0r13n/pyais#54

    • Ensure that the attributes speed, lat, lon and course are always float

Version 2.0.1 6 Feb 2022


Version 2.0.0-alpha 6 Feb 2022

  • WARNING: The v2 release will introduce breaking changes
  • Introduces the possibility to encode messages
  • decoding has been rewritten and implements an iterative decoding approach
  • The following fields were renamed:
    • message_fragments -> frag_cnt
    • fragment_number -> frag_num
    • message_id -> seq_id
    • type -> msg_type
    • shiptype -> ship_type
  • msg.decode() does not return a pyais.messages.AISMessage instance anymore
    • instead an instance of pyais.messages.MessageTypeX is returned, where X is the type of the message (1-27)
  • in v1 you called decoded.content to get the decoded message as a dictionary - this is now decoded.asdict()

Version 1.6.2 2 May 2021

... (truncated)

Commits
  • 25f75b1 Prepares v2.0.3 release
  • 07c6dcd Merge pull request #57 from M0r13n/54-wrong-types-for-fields
  • 8f8d16c Merge pull request #62 from Giangblackk/patch-1
  • 1085c79 fix wrong URL to GPSD for MessageType6
  • 86b5d22 Merge master into this branch
  • e001f94 Merge pull request #61 from M0r13n/check-for-signed-ints
  • 185f3ee Mark all unsigned fields as unsigned
  • f61ae23 Merge pull request #60 from M0r13n/missing-checksum
  • af41897 handle missing checksum
  • 5e0d5fb Add a type check for consistent types
  • 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)
dependabot[bot] commented 2 years ago

Superseded by #192.