Add the current directory path to `sys.path` explicitly, in order to fix
using the correct `setuptools.build_meta` backend. The legacy backend
is only meant to be used implicitly for packages that have not been
ported to PEP 517 builds yet, and using it explicitly is invalid.
The correct solution here is to set the import path correctly.
* Add pyproject.toml with only name and dynamic fields
* Add build-system section to pyproject.toml with build requirements
Explicitly set the fallback build backend `setuptools.build_meta:__legacy__`
* Replace wheel.bdist_wheel import with setuptools equivalent
There is a deprecation warning that will be enforced in october 2025
* Package `requests[security]` is a no-op since 2.26.0, published 2021-07-13, use only `requests >= 2.26.0`
* Add setuptools package configuration to pyproject.toml
* Exclude packages found at top level with setuptools config
Exclude buildtools/backports package found at top level with setuptools config
* Add dynamic metadata in setup-wxsvg.py too to avoid failing the build
---------
Co-authored-by: Edouard Choinière <echoix@users.noreply.github.com>