Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support conda package version specifiers in include/exclude (whitelist/blacklist) specs #37

Closed
analog-cbarber opened this issue Jun 25, 2021 · 0 comments

Comments

@analog-cbarber
Copy link

Currently only glob expressions are supported for fields in the include/exclude lists.

It would be more useful if you could use regular conda package version specifiers
for the version field. For example:

include:
  - yaml >=0.2.3

To do this, we could consider any match spec containing one of the characters (^$=<>,|) to
be a conda version specifier rather than a glob expression.

Since the version matching logic is non-trivial, it makes the most sense to not try to reimplement it in this project.
Either import it directly from conda.models.version (either add a dependency on conda or do a runtime check)
or copy that module here.

Adding a conda dependency would mean that this package should only be installed in the base environment,
so it might be safer to do a runtime check and raise an error if a version specifier is encountered when running
outside of base environment.

Also see #26 and #22

analog-cbarber added a commit to analog-garage/conda-mirror that referenced this issue Jul 6, 2021
analog-cbarber added a commit to analog-garage/conda-mirror that referenced this issue Jul 6, 2021
analog-cbarber added a commit to analog-garage/conda-mirror that referenced this issue Jul 6, 2021
xhochy added a commit that referenced this issue Jul 7, 2021
Support conda package versions specifiers in whitelist/blacklist (#37)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant