diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-04-26 04:09:02 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-30 13:51:51 +0700 |
commit | 515177bbfaf9d1eb03f011a6f3a5c22920f12c7f (patch) | |
tree | e0c03051177be3520f5c2628abb3fa138f73ea6b /development/jupyter_packaging/no-install-tests.patch | |
parent | f0cd9244112cabcaa11b13fe592b0800fcb4e7c3 (diff) |
development/jupyter_packaging: Added (Jupyter Packaging Utilities)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/jupyter_packaging/no-install-tests.patch')
-rw-r--r-- | development/jupyter_packaging/no-install-tests.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/development/jupyter_packaging/no-install-tests.patch b/development/jupyter_packaging/no-install-tests.patch new file mode 100644 index 0000000000000..5871685a40f69 --- /dev/null +++ b/development/jupyter_packaging/no-install-tests.patch @@ -0,0 +1,25 @@ +From a3b4c9b9735dee8b407b7cdacc27301bc9af283b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Fri, 25 Mar 2022 10:50:03 +0100 +Subject: [PATCH] do not install tests as a top-level package + +Explicitly exclude tests from being found by find_packages(). +Otherwise, they are installed as top-level site-packages/tests. +--- + setup.cfg | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/setup.cfg b/setup.cfg +index 9dc7a64..9dc9f11 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -39,5 +39,9 @@ install_requires = + [options.extras_require] + test = build; coverage; pre-commit; pytest; pytest-cov; pytest-mock + ++[options.packages.find] ++exclude = ++ tests ++ + [bdist_wheel] + universal=1 |