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

feat: Expose LTS CPU in show_versions() #19193

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

alonme
Copy link
Contributor

@alonme alonme commented Oct 11, 2024

closes #19109

This PR both exposes LTS CPU in show_versions() and fixes an issue in the release workflow where the _POLARS_LTS_CPU wasn't set correctly.

The LTS CPU was originally supposed to be taken into account by check_cpu_flags however, because of the mentioned issue it was practically always False and so we can deem it safe to remove it from that check

@@ -12,4 +12,5 @@ def test_show_versions(capsys: Any) -> None:
out, _ = capsys.readouterr()
assert "Python" in out
assert "Polars" in out
assert "LTS CPU" in out
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are some other fields that we can test for - should i add those too?

Copy link
Collaborator

Choose a reason for hiding this comment

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

What were you thinking about testing? Either way, not in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Version info Index type and Platform

@@ -137,7 +137,6 @@ jobs:
if: matrix.architecture == 'x86-64'
env:
IS_LTS_CPU: ${{ matrix.package == 'polars-lts-cpu' }}
IS_MACOS: ${{ matrix.os == 'macos-13' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was unused

@alonme alonme changed the title Feat: Expose LTS CPU in show_versions() feat: Expose LTS CPU in show_versions() Oct 11, 2024
@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars and removed title needs formatting labels Oct 11, 2024
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.65%. Comparing base (44439d9) to head (b8cab23).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #19193   +/-   ##
=======================================
  Coverage   79.64%   79.65%           
=======================================
  Files        1532     1532           
  Lines      209131   209135    +4     
  Branches     2416     2416           
=======================================
+ Hits       166570   166592   +22     
+ Misses      42015    41997   -18     
  Partials      546      546           

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

@ritchie46 ritchie46 merged commit 1cc2cb8 into pola-rs:main Oct 11, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose LTS_CPU in a public API
3 participants