Skip to content

ENH: Smaller package size #37526

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

Closed
dazza-codes opened this issue Oct 30, 2020 · 1 comment
Closed

ENH: Smaller package size #37526

dazza-codes opened this issue Oct 30, 2020 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request Testing pandas testing functions or related to the test suite

Comments

@dazza-codes
Copy link

dazza-codes commented Oct 30, 2020

Could the pandas.tests package be an optional package? It consumes a huge portion of the package size, which may not be required for many production purposes.

$ du -s /opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/* | sort -n
4	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/testing.py
4	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/_typing.py
4	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/_version.py
12	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/__init__.py
16	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/arrays
24	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/errors
32	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/conftest.py
64	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/api
92	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/compat
92	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/_testing.py
96	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/_config
100	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/tseries
140	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/__pycache__
160	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/util
472	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/plotting
2252	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/io
7360	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/core
16364	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/_libs
20060	/opt/conda/envs/myproject/lib/python3.6/site-packages/pandas/tests

The feature-request is that a default pandas install would exclude pandas.tests and a pandas[tests] install would include that package. The general pattern is that production dependencies (requirements.txt) would use pandas and any dev/test/CI dependencies (requirements_dev.txt) would add the optional extra for pandas[tests].

@dazza-codes dazza-codes added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 30, 2020
@jreback
Copy link
Contributor

jreback commented Oct 30, 2020

duplicate of #30741

@jreback jreback closed this as completed Oct 30, 2020
@jreback jreback added Testing pandas testing functions or related to the test suite Duplicate Report Duplicate issue or pull request and removed Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 30, 2020
@jreback jreback added this to the No action milestone Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

2 participants