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

Option to only get n latest versions of matching packages. #52

Open
analog-cbarber opened this issue Aug 9, 2021 · 5 comments
Open

Comments

@analog-cbarber
Copy link

As new versions of packages are released, mirroring a channel from the same spec using '>=' version specifiers will pull in more and more packages. But the user may be satisfied with only the more recent versions.

We could add an option to specify that you should only take the latest n versions of each package that passes the filter. We may also want to consider options to control whether to pick up dev versions (and how many).

@FordMustang0288
Copy link

This is something I have spent all morning trying to find. Is there any ETA on when this might happen?

@analog-cbarber
Copy link
Author

I believe the maintainer is currently off for the summer, so no pull requests are being processed right now. Once my current pull requests have been accepted and merged, I will probably work on this next.

I have no idea when there will be another release.

@analog-cbarber
Copy link
Author

Perhaps:

  • --latest option that takes an optional number of recent versions to take. This will not include dev versions
    unless there are no non-dev versions.

  • --latest-dev option that takes an optional number of recent dev versions to take.

analog-cbarber added a commit to analog-garage/conda-mirror that referenced this issue Aug 30, 2021
…onda-incubator#52))

Adds `--latest` and `--latest-dev` options to
limit download to only the n most recent non-dev/dev versions of each package.
@analog-cbarber
Copy link
Author

There is a working version of this feature on the ag-latest
and ag-dev branches of my fork. The ag-latest branch
only has this feature, while ag-dev includes the other yet-to-be-merged pull requests.

zinal pushed a commit to zinal/conda-mirror that referenced this issue Jan 24, 2023
…onda-incubator#52))

Adds `--latest` and `--latest-dev` options to
limit download to only the n most recent non-dev/dev versions of each package.
@zinal
Copy link

zinal commented Jan 24, 2023

Hello! I've created a pull request with the commit from @analog-cbarber shown above, as it merges cleanly, looks good and works great. Please merge it to the next release of the tool, that small commit will be a BIG thing.

zinal added a commit to zinal/conda-mirror that referenced this issue Jan 24, 2023
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

3 participants