no-install-tests.patch 726 B

1234567891011121314151617181920212223242526
  1. From a3b4c9b9735dee8b407b7cdacc27301bc9af283b Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
  3. Date: Fri, 25 Mar 2022 10:50:03 +0100
  4. Subject: [PATCH] do not install tests as a top-level package
  5. Explicitly exclude tests from being found by find_packages().
  6. Otherwise, they are installed as top-level site-packages/tests.
  7. ---
  8. setup.cfg | 4 ++++
  9. 1 file changed, 4 insertions(+)
  10. diff --git a/setup.cfg b/setup.cfg
  11. index 9dc7a64..9dc9f11 100644
  12. --- a/setup.cfg
  13. +++ b/setup.cfg
  14. @@ -39,5 +39,9 @@ install_requires =
  15. [options.extras_require]
  16. test = build; coverage; pre-commit; pytest; pytest-cov; pytest-mock
  17. +[options.packages.find]
  18. +exclude =
  19. + tests
  20. +
  21. [bdist_wheel]
  22. universal=1