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

Chore: the big bump #433

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Chore: the big bump #433

wants to merge 13 commits into from

Conversation

nnansters
Copy link
Contributor

This is the one: the big dependency bump!

As Python 3.8 is end-of-life, this release drops the support for it. This allows us to bump a lot of our core dependencies:

numpy = "^2.0"

scipy = "^1.13"

pandas = "^2.2"

scikit-learn = "^1.6"

pyarrow = "^18.1"

This should be a lot less restrictive for people with up-to-date installations.
Working with these versions means we now support Python 3.12 as well!

@nnansters nnansters force-pushed the chore/update-dependencies branch from 3e0baa4 to cc51010 Compare December 18, 2024 18:26
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 29.93421% with 213 lines in your changes missing coverage. Please review.

Project coverage is 74.75%. Comparing base (c6d326e) to head (60f9fdf).

Files with missing lines Patch % Lines
...performance_estimation/confidence_based/metrics.py 29.72% 104 Missing ⚠️
...e_calculation/metrics/multiclass_classification.py 2.85% 34 Missing ⚠️
...mance_calculation/metrics/binary_classification.py 53.33% 21 Missing ⚠️
...nyml/performance_calculation/metrics/regression.py 10.00% 18 Missing ⚠️
...mance_estimation/direct_loss_estimation/metrics.py 40.00% 12 Missing ⚠️
...rformance_estimation/direct_loss_estimation/dle.py 0.00% 6 Missing ⚠️
nannyml/stats/avg/calculator.py 0.00% 4 Missing ⚠️
nannyml/stats/median/calculator.py 0.00% 4 Missing ⚠️
nannyml/stats/std/calculator.py 0.00% 4 Missing ⚠️
nannyml/stats/sum/calculator.py 0.00% 4 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #433      +/-   ##
==========================================
- Coverage   74.77%   74.75%   -0.02%     
==========================================
  Files         109      109              
  Lines        9703     9706       +3     
  Branches     1537     1183     -354     
==========================================
+ Hits         7255     7256       +1     
- Misses       1966     1969       +3     
+ Partials      482      481       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nnansters nnansters marked this pull request as ready for review December 19, 2024 12:14
@nnansters nnansters requested a review from nikml as a code owner December 19, 2024 12:14
@nnansters
Copy link
Contributor Author

Finally got round to it. Take a peek at the dependencies in pyproject.toml and see if it covers your needs!

#431
#430
#428
#427
#424

This was referenced Dec 19, 2024

pandas = "^2.2"

scikit-learn = "^1.6"

Choose a reason for hiding this comment

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

isn't this the very latest version released dec 9? I think ideally deps shouldn't be too constrained, as this would make it harder for users to integrate nannyml into their model monitoring.

s3fs = ">=2022.8.2"
sqlmodel = {version = "^0.0.19", optional = true}
APScheduler = "^3.9.1"
psycopg2-binary = {version = "^2.9.3", optional = true}
segment-analytics-python = "^2.3.2"
python-dotenv = "^0.21.0"
python-dotenv = "^1.0"
Copy link

@davisthomas-aily davisthomas-aily Dec 19, 2024

Choose a reason for hiding this comment

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

might not be a bad idea to maintain support to some more older versions of dotenv here, the latest version is just 1.0.1, a lot of users might not have upgraded this yet

s3fs = ">=2022.8.2"
sqlmodel = {version = "^0.0.19", optional = true}
APScheduler = "^3.9.1"
psycopg2-binary = {version = "^2.9.3", optional = true}
segment-analytics-python = "^2.3.2"
python-dotenv = "^0.21.0"
python-dotenv = "^1.0"
types-pyyaml = "^6.0.12.8"

Choose a reason for hiding this comment

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

isn't this for type checking? you could put such dependencies in a lint subgroup. This does add some work - you would need to identify which deps you actually need to run the main package, and which ones you need for the tests, etc
here's the relevant documentation: https://python-poetry.org/docs/managing-dependencies/#dependency-groups

@davisthomas-aily
Copy link

Great work! Always nice to see that the package is being maintained.
I've left some comments-I think the pyproject might benefit from a little division of dependencies into main and dev (and additional ones if you really want to clean house) - this keeps it from being too restrictive, as users importing this into their own env will never actually need to actively modify the library.


scipy = "^1.13"

pandas = "^2.2"

Choose a reason for hiding this comment

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

would be nice to still support atleast some pandas 1. versions


scikit-learn = "^1.6"

pyarrow = "^18.1"

Choose a reason for hiding this comment

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

this is also the latest version released nov, I think you should support it from atleast 13.0 or 14.0, those versions were released just last year.

]
python = ">=3.9,<3.13"

numpy = "^2.0"

Choose a reason for hiding this comment

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

This seems too restrictive as well, numpy 1.26 was just released in Sep 2023

@@ -51,13 +56,13 @@ PyYAML = "^6.0"
Jinja2 = "<3.1"
pyfiglet = "^0.8.post1"
lightgbm = "^3.3.2"
Copy link

@davisthomas-aily davisthomas-aily Dec 19, 2024

Choose a reason for hiding this comment

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

the latest lightgbm version is at 4.5, would be nice to have support for this

@canoadri
Copy link

canoadri commented Jan 2, 2025

Hi all, any updates on this PR?

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.

3 participants