Skip to content

Fix packages when it doesn't include dirs with source #10

Open

Description

@thatch

Activity

  1. thatch commented on Oct 3, 2020

    @thatch
    MemberAuthor

    A common layout is one like this:

    setup.py
    the_package/
      __init__.py
      foo.py
      tests/
        __init__.py
        test_foo.py
    

    If you specify

    packages =
      the_package
    

    it should be corrected to

    packages =
      the_package
      the_package.tests
    

    The crawling logic can probably use importall.finder.find_importable_names relative to package_dir from the config.

    This is an intermediate issue, and some familiarity with packaging with setuptools is helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions