Add stub pyproject.toml file

This keeps our setup.py around for now, while still supporting a PEP-517
compliant build. It's the minimum required change to make modern pyroma stop
complaining, and hopefully to avoid deprecation warnings.

Partially duplicates #8560
See #3526
This commit is contained in:
Florian Bruhin 2025-07-07 08:00:29 +02:00
parent be87927923
commit d15052a67a
2 changed files with 11 additions and 0 deletions

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"

View File

@ -10,6 +10,14 @@ import re
import ast
import os
import os.path
import sys
# Add repo root to path so we can import scripts. Prior to PEP517 support this
# was the default behavior for setuptools.
# https://github.com/pypa/setuptools/issues/3939#issuecomment-1573619382
# > If users want to import local modules they are recommended to explicitly add
# > the current directory to sys.path at the top of setup.py.
sys.path.append(".")
from scripts import setupcommon as common