-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
tests
directory is installed with pip install
#588
Comments
I think we can exclude this with the following in packages=find_packages(exclude=['smart_open.test']) |
@piskvorky Are we including tests in the package intentionally? If not, then perhaps it would be a good idea to remove them. |
That PR included data required by I think what's being asked here is different: remove the tests from the packaged distribution altogether, both code and data. FWIW I have no objection, the packaged tests serve no purpose to me. Personally when I want to test a package, I go full dev-mode and install from git and tinker (as opposed to test a |
So I guess I can open a PR? |
I just opened #589. |
Problem description
Version: 4.2.0
Observed:
We get:
==> Tests files represent 60% of the total package size.
These files are not needed at "run time".
Expected:
==> Tests files are not installed with
$ pip install
. (So the size of the package goes down to 340 kB.)Additional information:
If this issue is validated, I can fix it and provide a PR.
The size of packages are important when using AWS Lambdas. (We want to keep Lambdas size as small as possible.)
Checklist
Before you create the issue, please make sure you have:
The text was updated successfully, but these errors were encountered: