[Python] How to manually set certain dependecies in local dev enviorment for UV Python...

Discussão em 'Python' iniciado por Stack, Janeiro 24, 2025.

  1. Stack

    Stack Membro Participativo

    Currently I have the following pyproject.toml:

    [project]
    name = "sample_project"
    version = "0.1.0"
    description = "Add your description here"
    readme = "README.md"
    requires-python = ">=3.12"

    dependencies = [
    "anytree",
    "pyvis",
    "pandas>=2",
    "numpy>=2",
    "statsmodels>=0",
    "matplotlib>=3",
    "seaborn>=0",
    "plotly>=5",
    "pyarrow>=18",
    "polars>=1",
    "scipy>=1",
    "xgboost>=2",
    "lightgbm>=4",
    "scikit-learn>=1",
    "numba>=0",
    "num2words>=0",
    "sqlalchemy>=2",
    "pygount",
    ]


    [tool.uv]
    dev-dependencies = ["ipykernel>=6", "pytest>=8", "ruff>=0", "maturin>=1"]


    but I have a locally-built rust python PyO3 binding package named rusty_crates in my .venv/Lib/site-package folder that I depend on for this project.

    How do I tell uv to ignore this "dependency" so that everytime I run uv sync the package is not uninstalled by uv

    Continue reading...

Compartilhe esta Página