eclipse / paho.mqtt.python

paho.mqtt.python
Other
2.13k stars 723 forks source link

modernization of code base - better support for newer python releases #765

Open skewty opened 7 months ago

skewty commented 7 months ago

Would the PAHO team be willing to drop support for end-of-life python releases and maybe move towards a more modern code-base with type hints?

Perhaps a v2.0 milestone?

https://devguide.python.org/versions/

Such an effort would likely go quickly. I am thinking something along the lines of >= v3.9 but perhaps even greater depending on how ambitious the effort becomes.

Proper asyncio code support is also long overdue.

Projects such as https://github.com/sbtinstruments/aiomqtt would likely be on-board to help out as well as myself.

PierreF commented 6 months ago

Recent PRs & commit modernized code base. We dropped support for Python < 3.7.

Asyncio is unchanged, and will probably be out-of-scope for next release.

Some changes includes:

With exception to asyncio, do you see other modernization that should be made ?