You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
I have searched the documentation and believe that my question is not covered.
Feature Request
I'd like to include tests in my project within the distributed source distribution. But of course I don't want the tests to be installed as a package.
My project layout is like this:
- project_name
- tests
When I set includes = ['tests/*'], the tests will be installed as a package. This is due to the generated setup.py file containing:
package_data = \
{'': ['*']}
This means that all Python packages are installed which includes the tests folder. But I want to include the tests in the source package WITHOUT them being installed.
The text was updated successfully, but these errors were encountered:
I was trying to figure this out as well, and I think this works the way you want if you use include instead of packages. Also,
the per-format packages support added in #1133 appears to also apply to include, although I don't see that in the docs.
include = [
{ path = "tests", format = "sdist" }
]
I noticed this in poetry's own pyproject.toml, recently updated in #4007.
Feature Request
I'd like to include tests in my project within the distributed source distribution. But of course I don't want the tests to be installed as a package.
My project layout is like this:
When I set
includes = ['tests/*']
, the tests will be installed as a package. This is due to the generatedsetup.py
file containing:This means that all Python packages are installed which includes the
tests
folder. But I want to include the tests in the source package WITHOUT them being installed.The text was updated successfully, but these errors were encountered: