Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

setup.py includes tests directory in package data #131

Copy link
Copy link
@bwind

Description

@bwind
Issue body actions

Issue Summary

setup.py includes all packages (containing an init.py) using find_packages(). This is a problem because it will include the tests directory as a top level importable module in the local app, breaking our own tests that happen to live in a directory with the same name.

Steps to Reproduce

  1. pip install python-http-client
  2. ls /usr/local/lib/python3.7/site-packages/ and observe tests is there as a top level importable package
  3. import tests from local app will import python-http-client's tests, not the app's tests

Either init.py should be excluded from the package data, or (rather) the entire tests directory.

Technical details:

  • python-http-client 3.2.0+
  • Python Version: 3.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.