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

Drop python 3.8 and add python 3.12 #115

Merged
merged 4 commits into from
Nov 6, 2023
Merged

Conversation

pmav99
Copy link
Member

@pmav99 pmav99 commented Oct 30, 2023

The reason we are kind of forced to drop python 3.8 is numpy who is following NEP 29: https://numpy.org/neps/nep-0029-deprecation_policy.html

I.e. now we should be able to do this:

``` python
import searvey

coops = searvey.get_coops_stations()
ioc = searvey.get_ioc_stations()
usgs = searvey.get_usgs_stations()
```
@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Merging #115 (3ef218a) into master (3f36f71) will increase coverage by 0.01%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
+ Coverage   90.04%   90.06%   +0.01%     
==========================================
  Files          13       13              
  Lines        1015     1017       +2     
  Branches      151      151              
==========================================
+ Hits          914      916       +2     
  Misses         55       55              
  Partials       46       46              
Files Coverage Δ
searvey/__init__.py 100.00% <100.00%> (ø)
searvey/critech.py 100.00% <ø> (ø)
searvey/ioc.py 90.98% <100.00%> (+0.07%) ⬆️
searvey/uhslc.py 100.00% <ø> (ø)

Fixes oceanmodeling#104

```
.venv/lib/python3.10/site-packages/searvey/ioc.py:147: FutureWarning: Passing literal html to 'read_html' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
  df = pd.read_html(html)[0]
```
Copy link
Contributor

@SorooshMani-NOAA SorooshMani-NOAA 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 @pmav99, looks good. Do we need to specify numpy version lower bound too, or leaving it as * is OK?

@pmav99
Copy link
Member Author

pmav99 commented Oct 31, 2023

I think it is OK like this. When the dependency resolver (pip, poetry, whatever) checks the package metadata on PyPI it will find out that e.g python 3.8 is not supported by numpy 1.26 and will try to find a different solution for the given constraints.

@pmav99 pmav99 merged commit e453791 into oceanmodeling:master Nov 6, 2023
12 checks passed
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