Skip to content

Project-specific repodata patches #4891

Open

Description

@pavelzw

It would be cool if we had the opportunity to do repodata patches for manually adjusting dependencies in case they have some unwanted constraints that we want to relax

[workspace]
channels = ["conda-forge", "https://prefix.dev/bioconda"]

[channels."https://prefix.dev/bioconda"]
repodata-patches = ["my-patch.conda"]

not sure about how the exact should look like, maybe adjusting the dependencies of a specific package directly could be more comfortable?

Activity

  1. Hofer-Julian commented on Nov 10, 2025

    @Hofer-Julian
    Member

    @pavelzw would a feature similar to what uv provides also work for you, if we implemented for conda?
    https://docs.astral.sh/uv/concepts/resolution/#dependency-metadata

  2. tdejager commented on Nov 10, 2025

    @tdejager
    Contributor

    The reason we are asking is because, I would like to implement that at some point. However, patching would allow patching multiple versions, but this only allows patching a single version.

  3. pavelzw commented on Nov 10, 2025

    @pavelzw
    CollaboratorAuthor

    yes this should also work.
    would be cool though if it was possible to specify this per conda package

    [dependency-metadata."polars-1.0.0-hcf12345.conda".dependencies]
    run = ["numpy>=1.8.1", "scipy>=0.13.0", "six>=1.11.0"]

    something like this maybe?

    maybe there is a better api, haven't though about how this should look like much

  4. AndreasAlbertQC commented on May 29, 2026

    @AndreasAlbertQC
    Contributor

    I came to this issue via the docs. My specific use case is that I want to force my (many) environments to use openssl >= 3.6.2, but only if they are already installing openssl.
    While full-on repodata patching would be a solution for this, something like run-constraints would already be a great step in the right direction, and presumably be easier to implement

  5. pavelzw commented on May 29, 2026

    @pavelzw
    CollaboratorAuthor

    actually there is the following for your use case (see docs):

    [constraints]
    openssl = ">=3.6.2"
    

    project-specific repodata patches would be only necessary if there is a dependency that's blocking the solve of openssl >=3.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions