From aa35321ec79d1a1f00ae202c11a79cdbf4ae633c Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Fri, 30 Aug 2024 10:37:50 -0500 Subject: [PATCH 1/5] fix: exclude pdm-backend from pip build backend lint --- conda_smithy/linter/hints.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conda_smithy/linter/hints.py b/conda_smithy/linter/hints.py index 43f46ead1..4a0ba7e41 100644 --- a/conda_smithy/linter/hints.py +++ b/conda_smithy/linter/hints.py @@ -181,6 +181,9 @@ def hint_check_spdx(about_section, hints): def hint_pip_no_build_backend(host_or_build_section, package_name, hints): + if package_name in ["pdm-backend"]: + return + if host_or_build_section and any( req.split(" ")[0] == "pip" for req in host_or_build_section ): From 6522b2ea41fc23965d04640d7f682b53f9ce336a Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Fri, 30 Aug 2024 10:39:50 -0500 Subject: [PATCH 2/5] Create 2046-pip-hint-exclude.rst --- news/2046-pip-hint-exclude.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 news/2046-pip-hint-exclude.rst diff --git a/news/2046-pip-hint-exclude.rst b/news/2046-pip-hint-exclude.rst new file mode 100644 index 000000000..44d96e900 --- /dev/null +++ b/news/2046-pip-hint-exclude.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Fixed error where ``pdm-backend`` was flagged as not having a backend. (#2046) + +**Security:** + +* From d42577c11efd5bed24953fc38585afa3adb8b4aa Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Fri, 30 Aug 2024 10:47:26 -0500 Subject: [PATCH 3/5] Update conda_smithy/linter/hints.py --- conda_smithy/linter/hints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_smithy/linter/hints.py b/conda_smithy/linter/hints.py index 4a0ba7e41..98ad0f8da 100644 --- a/conda_smithy/linter/hints.py +++ b/conda_smithy/linter/hints.py @@ -181,7 +181,7 @@ def hint_check_spdx(about_section, hints): def hint_pip_no_build_backend(host_or_build_section, package_name, hints): - if package_name in ["pdm-backend"]: + if package_name in ["pdm-backend", "setuptools"]: return if host_or_build_section and any( From 9da953584ddf767d9dd1286ff868a3e122ab65c4 Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Fri, 30 Aug 2024 10:48:40 -0500 Subject: [PATCH 4/5] Update conda_smithy/linter/hints.py --- conda_smithy/linter/hints.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conda_smithy/linter/hints.py b/conda_smithy/linter/hints.py index 98ad0f8da..d79ba0cb9 100644 --- a/conda_smithy/linter/hints.py +++ b/conda_smithy/linter/hints.py @@ -181,6 +181,10 @@ def hint_check_spdx(about_section, hints): def hint_pip_no_build_backend(host_or_build_section, package_name, hints): + # we do NOT exclude all build backends since some of them + # need another backend to bootstrap + # the list below are the ones that self-bootstrap without + # another build backend if package_name in ["pdm-backend", "setuptools"]: return From e0d738ebc3840751c45d122cf76926c2b9ec887c Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Fri, 30 Aug 2024 10:49:16 -0500 Subject: [PATCH 5/5] Update 2046-pip-hint-exclude.rst --- news/2046-pip-hint-exclude.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/2046-pip-hint-exclude.rst b/news/2046-pip-hint-exclude.rst index 44d96e900..be47a422f 100644 --- a/news/2046-pip-hint-exclude.rst +++ b/news/2046-pip-hint-exclude.rst @@ -16,7 +16,7 @@ **Fixed:** -* Fixed error where ``pdm-backend`` was flagged as not having a backend. (#2046) +* Fixed error where some python build backends were flagged as not having a backend. (#2046) **Security:**