github mobilityhouse/ocpp 2.2.0rc2

pre-release5 hours ago

Second release candidate for 2.2.0. Install with pip install ocpp==2.2.0rc2 and please report any issues before the final release.

What's new since 2.2.0rc1

  • Fix for #791: a malformed message can no longer end the message loop in ChargePoint.start(). A Call whose action is a JSON array or object is now answered with a NotSupported CallError. Deeply nested JSON is now treated as a format violation and logged. Before this fix, either message raised an unhandled exception that ended the session, and could exit a charger process written like the library's examples. Affects 1.6, 2.0.1 and 2.1. By @hippi345 in #792
  • Add type annotations throughout and make mypy --strict pass by @fjovell-swish in #771
  • Advertise OCPP 2.1 support in the README by @huangkongsheng in #784
  • CI: replace the deprecated set-output command and update GitHub Actions versions by @mdwcrft in #789

Everything in 2.2.0rc1

Features

  • Allow passing the @on handler's response to the @after hook (opt-in via inject_response=True) by @OSkrk in #683
  • Ship a py.typed marker so type checkers use the package's type hints by @Amraa1 in #755
  • Log sent and received messages at debug level by @brambo123 in #770

Fixes

  • Spell receiptUrl the way the 2.1 schemas do by @OSkrk in #780
  • Handle v2.1 NotImplemented errors by @OSkrk in #744
  • Align v2.1 and v2.0.1 payloads for the ISO 15118 certificate hash data attribute by @OSkrk in #743
  • Fix intermittent reconnect failures and missing charge point ID extraction by @rishabhvaish in #752
  • Remove duplicate v2.0.1 types by @mdwcrft in #767
  • Revert the create_and_start_charge_point helper function by @a-alak in #766

Packaging, CI and chores

  • Make Python 3.11 the consistently declared minimum and add the 3.14 classifier by @mdwcrft in #782 (the python = "^3.11" requirement is unchanged from 2.1.0)
  • Run the CI test matrix on the matrix interpreter and split lint from tests by @mdwcrft in #768
  • Makefile respects global poetry installs by @a-alak in #737
  • Remove the executable bit from JSON schema files by @a-detiste in #765
  • Add OSkrk to CODEOWNERS by @mdwcrft in #785

Dependencies

Dependabot updates: certifi (#787), black (#786, #764), urllib3 (#781, #749), idna (#763), requests (#761, #730), pygments (#760)

Full Changelog: 2.2.0rc1...2.2.0rc2 (since rc1), 2.1.0...2.2.0rc2 (since 2.1.0)

Don't miss a new ocpp release

NewReleases is sending notifications on new releases.