-
Notifications
You must be signed in to change notification settings - Fork 102
[DISCUSSION] Include numpy as a dependency in pyrpoject.toml #738
Copy link
Copy link
Open
Labels
Documentation 📚Changes to docstrings or the documentation site. No codebase changes.Changes to docstrings or the documentation site. No codebase changes.Effort > Brief 🐇Small tasks expected to take a few hours up to a couple of days.Small tasks expected to take a few hours up to a couple of days.Great First Contribution! 🌱Beginner friendly tickets with narrow scope and huge impact. Perfect to join our community!Beginner friendly tickets with narrow scope and huge impact. Perfect to join our community!Impact > Minor 🔷Small, backward compatible change. Treat like a patch release (e.g., 0.5.8 → 0.5.9).Small, backward compatible change. Treat like a patch release (e.g., 0.5.8 → 0.5.9).dependenciesPull requests that update a dependency filePull requests that update a dependency filepython:uvPull requests that update python:uv codePull requests that update python:uv code
Metadata
Metadata
Assignees
Labels
Documentation 📚Changes to docstrings or the documentation site. No codebase changes.Changes to docstrings or the documentation site. No codebase changes.Effort > Brief 🐇Small tasks expected to take a few hours up to a couple of days.Small tasks expected to take a few hours up to a couple of days.Great First Contribution! 🌱Beginner friendly tickets with narrow scope and huge impact. Perfect to join our community!Beginner friendly tickets with narrow scope and huge impact. Perfect to join our community!Impact > Minor 🔷Small, backward compatible change. Treat like a patch release (e.g., 0.5.8 → 0.5.9).Small, backward compatible change. Treat like a patch release (e.g., 0.5.8 → 0.5.9).dependenciesPull requests that update a dependency filePull requests that update a dependency filepython:uvPull requests that update python:uv codePull requests that update python:uv code
Description
My IDE warns me every time we use
import numpy as npthat numpy isn't listed in the project dependencies. I can see why it's not in listed inpyproject.toml, because by installingpandas, we already install numpy. For the last few years I've also just ignored the warning, because it seems unlikely that it'll be an issue.However, is it a best practice to include numpy in
pyproject.toml, even if it gets installed indirectly by our other dependencies? A Google search indicates yes, but the answers tend to be from sources like discussion forums or AI summaries, rather than authoritative sources like PEPs or the Python Packaging guide.Therefore, I can't just say hey, we gotta follow this, it's open to discussion.
Reasons for
Reasons against
pyrpoject.tomlshort and tidyIs your feature request aligned with the scope of the package?
Describe the solution you'd like, or your current workaround.
No response
Do you have any additional supporting notes?
No response