Skip to content

DEV: remove downstream test packages from environment.yml #50157

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

Merged

Conversation

jorisvandenbossche
Copy link
Member

xref #49998

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

Cool, seems to be working!

Looks good to me pending green (well, barring #50124)

@jorisvandenbossche
Copy link
Member Author

There is still a doc error from using statsmodels in an old whatsnew file, will convert that to plain code block.

@WillAyd
Copy link
Member

WillAyd commented Dec 10, 2022

lgtm when green

@MarcoGorelli MarcoGorelli added CI Continuous Integration Dependencies Required and optional dependencies labels Dec 11, 2022
@MarcoGorelli MarcoGorelli added this to the 2.0 milestone Dec 11, 2022
@MarcoGorelli
Copy link
Member

There is still a doc error from using statsmodels in an old whatsnew file, will convert that to plain code block.

I went ahead and did this, hope it's OK

@jorisvandenbossche
Copy link
Member Author

I went ahead and did this, hope it's OK

Sure!

@jorisvandenbossche
Copy link
Member Author

Should we document in the contributing docs for now that you need to install a few additional packages to be able to run all tests in test_downstream.py ?
(pip/conda install seaborn scikit-learn statsmodels cftime pandas-datareader)

I am not fully sure this is necessarily worth mentioning (it makes the docs more complex with yet another note, while in practice contributors won't often need this)

@MarcoGorelli
Copy link
Member

I think it's OK to not mention this - very few contributors will be running the downstream tests anyway, and for those who do, the error message will typically make it clear what they need to install

@jorisvandenbossche
Copy link
Member Author

I additionally also removed pandas-gbq, because 1) this is actually a big dependency (with conda, indirectly it is still bringing in geopandas and its dependencies (GDAL etc)), and 2) we actually only need this for test_downstream.py so it is a "downstream" dependency in that sense (it seems that all actual tests of read_gbq / to_gbq have been removed because this functionality is tested in pandas-gbq itself now)

@phofl
Copy link
Member

phofl commented Dec 11, 2022

It would be nice to have a list of downstream dependencies somewhere. Not necessarily in the docs though. Maybe inside the test file itself?

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

LGTM (IMO fine either way documenting these need to be installed or not)

@MarcoGorelli MarcoGorelli merged commit 49f93ed into pandas-dev:main Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Dependencies Required and optional dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants