Skip to content

fix(deps): cudf to cudf-cu12 in pyproject.toml#3405

Merged
FBruzzesi merged 1 commit intonarwhals-dev:mainfrom
camriddell:fix/cudf-naming
Jan 19, 2026
Merged

fix(deps): cudf to cudf-cu12 in pyproject.toml#3405
FBruzzesi merged 1 commit intonarwhals-dev:mainfrom
camriddell:fix/cudf-naming

Conversation

@camriddell
Copy link
Copy Markdown
Member

@camriddell camriddell commented Jan 16, 2026

cudf changed its naming scheme to include the underlying CUDA version. cudf on pypi only has version 0.6.1.post1 and has not been updated since 2020-01-01.

Description

Attempting to run uv run pytest, uv fails to resolve the dependency for cudf with the below error.

❯ uv run python
  × No solution found when resolving dependencies for split (markers: python_full_version >= '3.10'):
  ╰─▶ Because only cudf==0.6.1.post1 is available and narwhals[cudf] depends on cudf>=24.10.0, we can
      conclude that narwhals[cudf]'s requirements are unsatisfiable.
      And because your project requires narwhals[cudf], we can conclude that your project's
      requirements are unsatisfiable.

Turns out, cudf changed its naming scheme to include the underlying CUDA version. cudf on pypi only has version 0.6.1.post1 and has not been updated since 2020-01-01. https://pypi.org/project/cudf/

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

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

Checklist

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

cudf changed its naming scheme to include the
underlying CUDA version. cudf on pypi only has
version 0.6.1.post1 and has not been updated
since 2020-01-01.
@dangotbanned
Copy link
Copy Markdown
Member

dangotbanned commented Jan 16, 2026

I mentioned to @FBruzzesi about seeing that the other day

Show screenshot

image

I'm pretty excited if you've fixed this @camriddell 🥳

@dangotbanned dangotbanned added the dependencies Pull requests that update a dependency file label Jan 16, 2026
@dangotbanned dangotbanned self-requested a review January 16, 2026 16:44
@dangotbanned dangotbanned added the cudf Issue is related to cudf backend label Jan 16, 2026
@dangotbanned
Copy link
Copy Markdown
Member

dangotbanned commented Jan 16, 2026

Attempting to run uv run pytest, uv fails to resolve the dependency for cudf with the below error.

You have indeed solved that error, but sadly there are more hiding beneath the surface 😢

Command

uv run pytest --no-cache --isolated

Output

  × No solution found when resolving dependencies for split (markers: python_full_version == '3.9.*'):
  ╰─▶ Because the requested Python version (>=3.9) does not satisfy Python>=3.10 and pandas-stubs==2.3.0.250703 depends on Python>=3.10, we can conclude that pandas-stubs==2.3.0.250703 cannot be used.
      And because narwhals:dev depends on pandas-stubs==2.3.0.250703 and your project requires narwhals:dev, we can conclude that your project's requirements are unsatisfiable.

      hint: The `requires-python` value (>=3.9) includes Python versions that are not supported by your dependencies (e.g., pandas-stubs==2.3.0.250703 only supports >=3.10). Consider using a more restrictive `requires-python` value (like >=3.10).

      hint: While the active Python version is 3.13, the resolution failed for other Python versions supported by your project. Consider limiting your project's supported Python versions using `requires-python`.

Extra

I figure that if you're not seeing this too, it would be because I have a uv.toml that looks like this:

# narwhals/uv.toml
[pip]

group = ["local-dev", "typing-ci"]

I'm still dreaming for #3204 which I imagine would solve this 🙏

@camriddell
Copy link
Copy Markdown
Member Author

camriddell commented Jan 16, 2026

@dangotbanned I unfortunately did encounter that second error and came to the same conclusion about 3.9 support :( (which I figured was here to stay, at least for now).

However, after temporarily changing the requires-python version to >=3.10 this seems to have been the last layer of the onion. That said, I agree that #3204 needs to be accepted before we can finally use uv run ... with ease.

@dangotbanned dangotbanned mentioned this pull request Jan 16, 2026
25 tasks
Copy link
Copy Markdown
Member

@FBruzzesi FBruzzesi left a comment

Choose a reason for hiding this comment

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

Thanks @camriddell 🙏🏼

@FBruzzesi FBruzzesi changed the title fix: cudf to cudf-cu12 in pyproject.toml fix(deps): cudf to cudf-cu12 in pyproject.toml Jan 19, 2026
@FBruzzesi FBruzzesi merged commit 3db88bd into narwhals-dev:main Jan 19, 2026
34 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cudf Issue is related to cudf backend dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants