Skip to content

tests: Allow to run polars without extra deps#3256

Merged
FBruzzesi merged 5 commits intomainfrom
tests/run-polars-wo-any-other-dep
Oct 30, 2025
Merged

tests: Allow to run polars without extra deps#3256
FBruzzesi merged 5 commits intomainfrom
tests/run-polars-wo-any-other-dep

Conversation

@FBruzzesi
Copy link
Copy Markdown
Member

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

run: pytest tests --runslow --constructors=pandas[pyarrow],pyarrow
- name: install-polars
run: |
uv pip uninstall pandas pyarrow --system
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Notice that numpy will still remain installed, but the changes allow to run polars even without numpy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

out of interest, why not uninstall numpy then?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I should have expanded more on this.

Some polars functionalities require numpy to be installed. It comes down to either:

  • uninstall numpy and do not test them
  • keep numpy and test them

In both cases it's no longer dependent on pandas and pyarrow installation, which was the initial goal.

What's your take on this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is probably fine, thanks!

@FBruzzesi FBruzzesi merged commit aafb9ce into main Oct 30, 2025
33 of 36 checks passed
@FBruzzesi FBruzzesi deleted the tests/run-polars-wo-any-other-dep branch October 30, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: allow for tests to be run without Polars / PyArrow/ pandas installed

2 participants