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

Fix eccodes package names in setup.py, update documentation for setting up development environment. #2478

Merged
merged 1 commit into from
May 12, 2023

Conversation

sjoro
Copy link
Collaborator

@sjoro sjoro commented May 12, 2023

This PR fixes the package names for eccodes in setup.py. Old package names eccodes-python and python-eccodes are deprecated, see:

https://pypi.org/project/eccodes-python/
https://confluence.ecmwf.int/display/UDOC/How+to+install+ecCodes+with+Python+bindings+in+conda+-+ecCodes+FAQ

For added confusion both eccodes and python-eccodes are available in conda-forge and can be installed, but the new installation of the package should be:

conda install eccodes
pip install eccodes

The conda installation installs the C/Fortran library and the command line tools, pip installs the python bindings to this eccodes-library. For this reason the documentation is also updated to reflect the correct procedure.

The new docs built without warnings on my machine.

@sjoro sjoro changed the title Fix eccodes package names in setup.py Fix eccodes package names in setup.py, update documentation for setting up development environment. May 12, 2023
@codecov
Copy link

codecov bot commented May 12, 2023

Codecov Report

Merging #2478 (1058d9c) into main (f3cde7c) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2478   +/-   ##
=======================================
  Coverage   94.82%   94.82%           
=======================================
  Files         339      337    -2     
  Lines       49400    49406    +6     
=======================================
+ Hits        46845    46851    +6     
  Misses       2555     2555           
Flag Coverage Δ
behaviourtests 4.43% <ø> (+<0.01%) ⬆️
unittests 95.45% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 4 files with indirect coverage changes

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4958679338

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.397%

Totals Coverage Status
Change from base Build 4957540415: 0.0%
Covered Lines: 46964
Relevant Lines: 49230

💛 - Coveralls

@sjoro sjoro added the cleanup Code cleanup but otherwise no change in functionality label May 12, 2023
Copy link
Member

@djhoese djhoese left a comment

Choose a reason for hiding this comment

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

I know this isn't your fault, but this is unacceptable to me. Why would they deprecate the python-eccodes package on PyPI when that's the name of the conda package? Ugh. Fine.

@djhoese djhoese merged commit bc9c089 into pytroll:main May 12, 2023
@sjoro sjoro deleted the fix-setup branch May 15, 2023 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code cleanup but otherwise no change in functionality documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants