robotology / gz-sim-yarp-plugins

YARP plugins for Modern Gazebo (gz-sim).
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Publish package on conda-forge #132

Closed xela-95 closed 7 months ago

xela-95 commented 8 months ago

Conda-forge PR: https://github.com/conda-forge/staged-recipes/pull/25910

xela-95 commented 8 months ago

CC @traversaro

traversaro commented 8 months ago

Once we have a working release, we can prepare a PR to staged-recipes as documented in https://conda-forge.org/docs/maintainer/adding_pkgs/#creating-recipes . For a reference, you can see the PR that added gazebo-yarp-plugins: https://github.com/conda-forge/staged-recipes/pull/21891 .

traversaro commented 8 months ago

For a reference, you can see the PR that added gazebo-yarp-plugins: https://github.com/conda-forge/staged-recipes/pull/21891 .

Note that since that has been created, the recipe changed, you can see the latest in https://github.com/conda-forge/gazebo-yarp-plugins-feedstock/blob/main/recipe/meta.yaml . I suggest to use the recipe in https://github.com/conda-forge/gazebo-yarp-plugins-feedstock/blob/main/recipe/meta.yaml as a model, so we can have both libgz-sim-yarp-plugins package (where lib is required by naming rules of conda-forge) and gz-sim-yarp-plugins meta-package (that just depends on libgz-sim-yarp-plugins, but does not have any run_exports and it is easier for users to remember).

xela-95 commented 7 months ago

@traversaro I'm compiling the requirements section of the meta.yaml file. I was thinking to use the dependencies in the ci.yaml we use for the conda CI. Other than that, in our CI we install additional dependencies for Linux: https://github.com/robotology/gz-sim-yarp-plugins/blob/fe4bbe64f151ffa68d934cc7da0dea8651775cd3/.github/workflows/conda-forge.yml#L40-L44 Should I add those?

xela-95 commented 7 months ago

I have other doubts:

xela-95 commented 7 months ago

@traversaro do you know what are the correct locations on Windows to which the env. vars GZ_SIM_SYSTEM_PLUGIN_PATH and GZ_SIM_RESOURCE_PATH has to be set? I've seen in https://github.com/conda-forge/gazebo-yarp-plugins-feedstock/blob/68e63851eff50994ccdf94a9872aebc40542a4c7/recipe/activate.msh that for the variables needed by gazebo-classic they are different from Linux (of course).

xela-95 commented 7 months ago

Do I need to have the conda_build_config.yaml with macOS deployment configurations?

traversaro commented 7 months ago

Should I add those?

Those are OS-specific dependencies. conda-forge CI does not use an apt-based Linux distribution, but one based on yum. So you can add them via yum_requirements.txt, like we do in gazebo-yarp-plugins: https://github.com/conda-forge/gazebo-yarp-plugins-feedstock/blob/main/recipe/yum_requirements.txt .

traversaro commented 7 months ago

Do I need to have the conda_build_config.yaml with macOS deployment configurations?

Probably not. You can start without, and it the CI complains we add them.

traversaro commented 7 months ago

We are not installing any at the moment, so you can just skip that.

traversaro commented 7 months ago

@traversaro do you know what are the correct locations on Windows to which the env. vars GZ_SIM_SYSTEM_PLUGIN_PATH and GZ_SIM_RESOURCE_PATH has to be set? I've seen in https://github.com/conda-forge/gazebo-yarp-plugins-feedstock/blob/68e63851eff50994ccdf94a9872aebc40542a4c7/recipe/activate.msh that for the variables needed by gazebo-classic they are different from Linux (of course).

For GZ_SIM_SYSTEM_PLUGIN_PATH, we need to check where are we installing the plugins on Windows. For GZ_SIM_RESOURCE_PATH, as we are not installing any model in this repo probably we do not need to set them?

xela-95 commented 7 months ago

For GZ_SIM_SYSTEM_PLUGIN_PATH, we need to check where are we installing the plugins on Windows. For GZ_SIM_RESOURCE_PATH, as we are not installing any model in this repo probably we do not need to set them?

Ok I will try to install it on windows and check the installation path. for the GZ_SIM_RESOURCE_PATH you're right, I was thinking about the tutorials but they don't need it.

xela-95 commented 7 months ago

Those are OS-specific dependencies. conda-forge CI does not use an apt-based Linux distribution, but one based on yum. So you can add them via yum_requirements.txt, like we do in gazebo-yarp-plugins: https://github.com/conda-forge/gazebo-yarp-plugins-feedstock/blob/main/recipe/yum_requirements.txt .

Ok thanks! in the yum_requirements.txt should I report only the apt-based dependencies or also the ones installed only for linux in https://github.com/robotology/gz-sim-yarp-plugins/blob/fe4bbe64f151ffa68d934cc7da0dea8651775cd3/.github/workflows/conda-forge.yml#L40?

traversaro commented 7 months ago

Ok I will try to install it on windows and check the installation path.

You can just check the CI logs.

traversaro commented 7 months ago

Those are OS-specific dependencies. conda-forge CI does not use an apt-based Linux distribution, but one based on yum. So you can add them via yum_requirements.txt, like we do in gazebo-yarp-plugins: https://github.com/conda-forge/gazebo-yarp-plugins-feedstock/blob/main/recipe/yum_requirements.txt .

Ok thanks! in the yum_requirements.txt should I report only the apt-based dependencies or also the ones installed only for linux in

https://github.com/robotology/gz-sim-yarp-plugins/blob/fe4bbe64f151ffa68d934cc7da0dea8651775cd3/.github/workflows/conda-forge.yml#L40 ?

Only the one related to OpenGL or similar, not all the dependency. You can just copy the one used in gazebo-yarp-plugins, in general yum and apt packages have different names (as conda-forge packages and apt packages have different names).

xela-95 commented 7 months ago

https://github.com/conda-forge/staged-recipes/pull/25910 has been merged and the package is available. Closing.