mqtt-tools / mqttwarn

A highly configurable MQTT message router, where the routing targets are notification plugins, primarily written in Python.
https://mqttwarn.readthedocs.io/
Eclipse Public License 2.0
950 stars 183 forks source link

Add support for Python 3.12 #685

Closed amotl closed 8 months ago

amotl commented 8 months ago

About

Python 3.12 has been released recently. This patch attempts to add corresponding support.

Details

Trivia

Start omitting intermediate Python versions on CI, to save resources.

amotl commented 8 months ago

aiohttp needs to be made compatible with Python 3.12. It is pulled in by the twilio package.

Failed to build aiohttp
codecov[bot] commented 8 months ago

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (ebad591) 49.54% compared to head (01f9a57) 49.75%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #685 +/- ## ========================================== + Coverage 49.54% 49.75% +0.20% ========================================== Files 81 81 Lines 3996 4034 +38 ========================================== + Hits 1980 2007 +27 - Misses 2016 2027 +11 ``` | [Flag](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools) | `49.75% <80.68%> (+0.20%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools) | Coverage Δ | | |---|---|---| | [mqttwarn/core.py](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools#diff-bXF0dHdhcm4vY29yZS5weQ==) | `99.55% <100.00%> (+<0.01%)` | :arrow_up: | | [mqttwarn/services/amqp.py](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools#diff-bXF0dHdhcm4vc2VydmljZXMvYW1xcC5weQ==) | `100.00% <100.00%> (ø)` | | | [mqttwarn/util.py](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools#diff-bXF0dHdhcm4vdXRpbC5weQ==) | `98.10% <94.00%> (-1.90%)` | :arrow_down: | | [mqttwarn/services/pushsafer.py](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools#diff-bXF0dHdhcm4vc2VydmljZXMvcHVzaHNhZmVyLnB5) | `97.24% <66.66%> (-2.76%)` | :arrow_down: | | [mqttwarn/services/http\_urllib.py](https://app.codecov.io/gh/mqtt-tools/mqttwarn/pull/685?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mqtt-tools#diff-bXF0dHdhcm4vc2VydmljZXMvaHR0cF91cmxsaWIucHk=) | `13.97% <28.57%> (+0.34%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.