First release candidate for 2.2.0. Install with pip install ocpp==2.2.0rc1 and please report any issues before the final release.
Features
- Allow passing the
@onhandler's response to the@afterhook (opt-in viainject_response=True) by @OSkrk in #683 - Ship a
py.typedmarker 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
receiptUrlthe 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_pointhelper 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.1.0...2.2.0rc1