Skip to content

Include and Exclude statements are ignored #112

@tamersay

Description

@tamersay
source: conda-forge
destination: ./my-channel

include:
  - jupyter-ai
exclude:
  - name-glob: jupyter*

This is from the examples. I ran it and saw that conda-mirror basically tries to mirror all the packages in the conda-forge.

[00:00:02] #--------------------------------------- 66/293306 Mirroring

I believe this is not expected.

I tried this example, too

source: conda-forge
destination: /usr/share/nginx/html/miniconda/conda-forge-test

subdirs:
  - linux-64
  - noarch

exclude:
  - name-glob: "*"
    matchspec: "[license=GPL-3.0-or-later]"

include:
  - numpy

This is acting the same way as above.
🪞 Mirroring conda-forge to /usr/share/nginx/html/miniconda/conda-forge-test...
[00:00:07] #--------------------------------------- 152/289969 Mirroring

PS: I use the prebuilt conda-mirror-x86_64-unknown-linux-musl

I am trying to mirror all the packages in conda-forge that are built for py37 or py39. Is there a way to achieve it?

exclude:
  - name-glob: "*"
    matchspec: "[build=<py2*]"

include:
   - mylistofpackages

This kinda solution is what I need but the above trials already yield unexpected results. Would you be able to check?

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