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

Exclude tests from wheel #14

Merged
merged 1 commit into from
May 15, 2024

Conversation

DomenicP
Copy link
Contributor

Hi there!

Came across this library as a dependency of https://github.com/strictdoc-project/strictdoc. I noticed that the tests for this library are distributed inside the wheel. Unfortunately this breaks test integrations for some users of the library since a number of Python tools detect the site-packages/tests directory provided by python_datauri in the virtual environment before the local project tests directory.

Would you be open to removing the tests from distribution in the wheel? Looks like a pretty simple change to setup.py. Happy to help make this happen. If you're willing to publish a new version with this change I will also open a PR with StrictDoc to use the new version.

Without this change the workaround I'm stuck with is to rm -rf the tests folder in the virtual environment after installation which is less than ideal.

Thanks!

Copy link
Owner

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@fcurella fcurella merged commit cefcf88 into fcurella:master May 15, 2024
14 checks passed
@fcurella
Copy link
Owner

v2.1.1 has been released on PyPI

@DomenicP DomenicP deleted the remove-tests-from-wheel branch May 15, 2024 13:50
@DomenicP
Copy link
Contributor Author

Thanks for the quick response!

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

Successfully merging this pull request may close these issues.

2 participants