ipywidgets icon indicating copy to clipboard operation
ipywidgets copied to clipboard

Reorganize python directories and tests

Open jasongrout opened this issue 3 years ago • 1 comments

Looking at https://discuss.python.org/t/a-test-design-pattern-to-reuse-integration-tests-on-newly-built-distribution-packages/17006 and https://hynek.me/articles/testing-packaging/, it seems recommended practice is:

  1. Put your python source inside a non-importable src/ directory
  2. Move your python tests up to the top-level directory
  3. Make sure you are running your tests with various flags mentioned in the posts

This issue tracks our work on these points.

jasongrout avatar Sep 17 '22 05:09 jasongrout

Assigning to 9.0 since moving the tests out of the package may be considered breaking? (or not, since IIRC tests are not exported from the base package)

jasongrout avatar Sep 17 '22 05:09 jasongrout