eclipse / paho.mqtt.python

paho.mqtt.python
Other
2.15k stars 724 forks source link

Migrate pyproject toml #729

Closed semuadmin closed 7 months ago

semuadmin commented 1 year ago

setup.py is now deprecated and is scheduled to be dropped altogether in pip 23.

This PR makes a number of changes to update the project build framework:

  1. It updates the paho.mqtt project structure to use pyproject.toml, while retaining setuptools as a back-end build platform.
  2. It uses pyproject.toml tool configuration sections were available.
  3. It drops support for Python versions <=3.6 as these are now end of life.
  4. It adds a minimal VS Code workflow including the following tasks (Eclipse IDE users can simply ignore these):
    • The Build task will produce wheel (.whl) and sdist (.tar.gz) install packages in the dist folder which can be uploaded to PyPi using twine.
    • The Install Locally task will install this wheel using pip.
    • Other VS Code tasks have been added mirroring the current GitHub Actions (GHA) CI worfklows.

NB: this PR only changes the build setup - no changes have been made to existing application code or test cases, so some existing CI workflows may still fail if they were failing previously.

Fixes https://github.com/eclipse/paho.mqtt.python/issues/706

cclauss commented 1 year ago

@ralight Your review please.

semuadmin commented 1 year ago

@cclauss What's the game plan with regard to the lint_python pytest failures in GHA? AFAICS these are nothing to do with anything I've changed as part of this PR and I'm not best placed to resolve them?

semuadmin commented 1 year ago

Is this repo still actively maintained?

semuadmin commented 7 months ago

sorry no longer have the bandwidth to progress this

cclauss commented 7 months ago

@akx Given that both @semuadmin and I have both closed our PRs, perhaps you can jump in with your automated tool for creating these PRs.

akx commented 7 months ago

@cclauss I don't have an automated tool per se - pyproject-migrator still needs hand-holding...