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

test data not included in installable package #293

Closed
orbeckst opened this issue Oct 11, 2024 · 3 comments
Closed

test data not included in installable package #293

orbeckst opened this issue Oct 11, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@orbeckst
Copy link
Member

Tests cannot be run from an installed package:

pip install mdpow
pytest --pyargs mdpow   # <--- FAILS

The files under mdpow/tests/testing_resources/ are not included as data files in the package.

@orbeckst orbeckst added this to the 0.9.0 milestone Oct 11, 2024
@orbeckst orbeckst self-assigned this Oct 11, 2024
@orbeckst
Copy link
Member Author

Including the testing resources increases the package size from 3.1M to 23M.

@orbeckst
Copy link
Member Author

Following https://setuptools.pypa.io/en/latest/userguide/datafiles.html we could include data files in the tar.gz but exclude from the wheel.

@orbeckst
Copy link
Member Author

Note that pip installing from sdist builds a wheel and that excludes tests so it's still not possible to run

pytest --pyargs mdpow

For right now, must run tests with sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant