Skip to content

[FEA] uv pyproject.toml install support #746

@mattharrison

Description

@mattharrison

Is your feature request related to a problem? Please describe.
The Python community in general is eager to adopt uv and pyproject.toml for libraries.

Describe the solution you'd like
Would love to be able to say uv add cuml (or other accelerated libraries).

Describe alternatives you've considered
If a single uv command isn't sufficient (due to alternate indexes and cu12/13 dependency groups), a reference pyproject.toml file would be appreciated.

I was exploring the pyproject.toml file at https://github.com/NVIDIA/dgx-spark-playbooks/tree/main/nvidia/portfolio-optimization/assets/setup and was very hopeful after a uv sync ran on my Spark DGX, however, when I went to run the notebook, I discovered that it didn't include Jupyter or cuML when running .

Additional context
The competition here on the Apple side is strong. I have a MBP and wanted to run the parakeet model in a Python script, all I needed to do was add this to the top of the script and run it with uv run. No Docker, no conda 30 minute installs, no slow pip...

#!/usr/bin/env python3
# /// script
# requires-python = ">=3.12"
# dependencies = [
#     "parakeet-mlx>=0.5.0",
#     "sounddevice>=0.4.6",
#     "numpy>=1.24.0",
#     "pyperclip>=1.8.2",
# ]
# ///

Also note that https://docs.rapids.ai/install/ doesn't include a single reference to Spark DGX. A simple note, call out would be appreciated to direct down the golden path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions