Skip to content

tests do end up in root site-packages/tests folder #550

@amureki

Description

@amureki

Greetings fellows!
Thanks for an amazing package.

Describe the bug
Whenever I do pip install django_select2, I discover in my site-packages/tests tests from django-select2:

image

I do believe, this is due to the current packages definition in setup.cfg:

packages = find:

This is rather a small thing, but it can lead to some bad things (you can import tests in your codebase, etc).
I would be happy to fix it on my own, but I'd rather hear your opinion on how would you want to proceed:

  • to install only package without tests (then we just define something like django-select2 in this config
  • to install package with tests (not sure I like that idea, but it might be useful for people who do integrity tests of installed packages) - then we would need to put tests under django-select2 folder, so they would appear as part of django-select2package.

Cheers!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions