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

Add generation of conda metapackages robotology-distro and robotology-distro-all for each new distro release #1030

Merged
merged 5 commits into from
Feb 24, 2022

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Feb 14, 2022

This PR adds the logic to generate the robotology-distro and robotology-distro-all conda metapackages for each new robotology-superbuild.

This would permit user to run:

mamba install -c conda-forge -c robotology robotology-distro=2022.0 yarp icub-main idyntree

And the solver will automatically compute the correct version of yarp, icub-main and idyntree to install. Note that robotology-distro will just constrain the version of packages that are installed by the user, so installing just that package will not install anything else. On the other hand, this PR also adds the robotology-distro-all metapackage, that will install all the packages contained in the robotology-superbuild corresponding to a given release.

No documentation is currently added as I prefer to actually have the first metapackages generated and present on the robotology channel before document this.

In details, this PR:

  • Also generate conda packages on releases and not only on weekly jobs on master branch, to make sure that the versions references by the metapackages actually exists
  • Read and write CONDA_BUILD_NUMBER always on master branch, even when the conda packages are generated on a branch (that is tipically is a release/YYYY.MM
  • On releases, also generate the robotology-distro and robotology-distro-all metapackages . This is done by appropriate modifications to the conda packages generation logic, that is described in https://github.com/robotology/robotology-superbuild/blob/master/doc/conda-recipe-generation.md#internals

Fix #727 .

@traversaro
Copy link
Member Author

fyi @GiulioRomualdi

@Nicogene
Copy link
Member

I am not a conda expert, but I like very much this addition 👍🏻

@traversaro
Copy link
Member Author

Thanks @Nicogene !

@traversaro traversaro merged commit 113e1c4 into robotology:master Feb 24, 2022
@traversaro traversaro deleted the 727rebased2 branch February 24, 2022 10:23
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

Successfully merging this pull request may close these issues.

Add robotology-distro conda metapackage
2 participants