Skip to content

Modernize setuptools configuration

Maxwell G requested to merge gotmax23/python-qemu-qmp:modern-setuptools into main

This change adds a minimal pyproject.toml file and removes usage of deprecated setuptools features.

FTR, this is fully compatible with Fedora and EL 9. This actually restores compatibility with Fedora releases, as the setuptools_scm < 7.0 pin was not satisfiable. All current Fedora releases have newer setuptools_scm versions.

This removes the following deprecated idioms:

  • setup_requires is deprecated. It has some strange behavior and is superseded by the build-system configuration in pyproject.toml.
  • pkg_resources is deprecated. Simply importing the package raises a DeprecationWarning.
  • Direct invocations of setup.py are deprecated altogether in favor of the PEP 517 interface that the pyproject.toml configures.

Signed-off-by: Maxwell G maxwell@gtmx.me

Merge request reports

Loading