commit:     5e71a7b4758583fbc3f269b56dd2317ce3e59d4a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  8 21:17:32 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr  8 21:18:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e71a7b4

distutils-r1.eclass: Recognize jupyter PEP517 backend

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/distutils-r1.eclass | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 02d8bf547cba..05cd5dc52004 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -100,6 +100,8 @@ esac
 #
 # - hatchling - hatchling backend (from hatch)
 #
+# - jupyter - jupyter_packaging backend (uses setuptools internally)
+#
 # - pdm - pdm.pep517 backend
 #
 # - poetry - poetry-core backend
@@ -200,6 +202,12 @@ _distutils_set_globals() {
                                bdep+='
                                        dev-python/hatchling[${PYTHON_USEDEP}]'
                                ;;
+                       jupyter)
+                               bdep+='
+                                       
dev-python/jupyter_packaging[${PYTHON_USEDEP}]
+                                       
>=dev-python/setuptools-60.5.0[${PYTHON_USEDEP}]
+                                       dev-python/wheel[${PYTHON_USEDEP}]'
+                               ;;
                        pdm)
                                bdep+='
                                        dev-python/pdm-pep517[${PYTHON_USEDEP}]'
@@ -927,6 +935,9 @@ _distutils-r1_backend_to_key() {
                hatchling.build)
                        echo hatchling
                        ;;
+               jupyter_packaging.build_api)
+                       echo jupyter
+                       ;;
                pdm.pep517.api)
                        echo pdm
                        ;;

Reply via email to