Skip to content

Commit

Permalink
Support conda version specifiers (conda-incubator#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-cbarber committed Jul 6, 2021
1 parent 8916294 commit d2e0670
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ whitelist conditions.

blacklist and whitelist both take lists of dictionaries. The keys in the
dictionary need to be values in the `repodata.json` metadata. The values are
(unix) globs to match on. Go here for the full repodata of the upstream
(unix) globs to match on, but in the case of the `version` attribute,
[conda package match version specifications](https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/pkg-specs.html#package-match-specifications)
may also be used.

Go here for the full repodata of the upstream
"defaults" channel:
http://conda.anaconda.org/anaconda/linux-64/repodata.json

Expand Down Expand Up @@ -155,6 +159,17 @@ whitelist:
version: 1.4.10
build: py34_0
```

you can use standard conda package version specifiers to filter a range of versions:

```yaml
blacklist:
- name: "*"
whitelist:
- name: botocore
version: ">=1.4.10,<1.5"
```

##### Mirror everything but agpl licenses
```yaml
blacklist:
Expand Down

0 comments on commit d2e0670

Please sign in to comment.