Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'tests' package from find_packages() #232

Merged
merged 1 commit into from
Oct 25, 2017

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Oct 10, 2017

We aren't excluding tests, which means that installing globus-sdk from pypi will also provide a mysterious tests package. This can be especially confusing when working with a dependent codebase that has its own top-level tests package, as the site-packages dir comes earlier in the pythonpath than ., so import tests will grab the sdk tests package and presumably fail to import properly.

Since this can break client applications' testsuites, I kind of think it's a "big deal" once you notice it, though most people probably won't ever notice.
I noticed while refactoring another application to move its tests from package_name.tests to tests and my whole testsuite failed strangely.

We aren't excluding `tests`, which means that installing `globus-sdk`
from pypi will also provide a mysterious `tests` package. This can be
especially confusing when working with a dependent codebase that has its
own top-level `tests` package, as the site-packages dir comes earlier in
the pythonpath than `.`, so `import tests` will grab the *sdk* tests
package and presumably fail to import properly.
@sirosen sirosen added the bug Something isn't working correctly label Oct 10, 2017
@jaswilli jaswilli merged commit 2caa8ce into globus:master Oct 25, 2017
sirosen added a commit to sirosen/globus-cli that referenced this pull request Oct 30, 2017
sirosen added a commit to sirosen/globus-sdk-python that referenced this pull request Oct 30, 2017
Closed issues since 1.2.1:
- globus#232
- globus#233
- globus#231
- globus#229

Three of these are documentation updates, and one is the fix for
installing a `tests` package.
sirosen added a commit to sirosen/globus-sdk-python that referenced this pull request Nov 1, 2017
Closed issues since 1.2.1:
- globus#232
- globus#233
- globus#231
- globus#229

Three of these are documentation updates, and one is the fix for
installing a `tests` package.
@sirosen sirosen deleted the bugfix/dont-install-tests branch May 27, 2022 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants