Skip to content

Add conda (formerly: RoboStack) platform#1018

Open
baszalmstra wants to merge 4 commits intoros-infrastructure:masterfrom
baszalmstra:add-conda-os
Open

Add conda (formerly: RoboStack) platform#1018
baszalmstra wants to merge 4 commits intoros-infrastructure:masterfrom
baszalmstra:add-conda-os

Conversation

@baszalmstra
Copy link

This is a continuation of #810.

The scope of #810 has been trimmed down after a discussion with @cottsay and @traversaro . This PR only adds the necessary constants and machinery to add conda as a supported rosdep mapping. I based this mostly on the original PR and the nix implementation.

@traversaro, I wasn't sure if you wanted to rename some keys?

@cottsay cottsay self-assigned this Oct 28, 2025
@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

❌ Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.21%. Comparing base (ad3a610) to head (fd50665).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/rosdep2/platforms/conda.py 86.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1018      +/-   ##
==========================================
+ Coverage   71.76%   72.21%   +0.45%     
==========================================
  Files          44       45       +1     
  Lines        3488     3513      +25     
  Branches      686      688       +2     
==========================================
+ Hits         2503     2537      +34     
+ Misses        808      798      -10     
- Partials      177      178       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +168 to +175
# Do generation for conda entries
# conda package naming follows debian convention: ros-{release}-{package}
conda_package_name = 'ros-%s-%s' % (release_name, pkg)
conda_package_name = conda_package_name.replace('_', '-')
rosdep_data[pkg][OS_CONDA] = {
CONDA_INSTALLER: {'packages': [conda_package_name]}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure we won't need this. gbpdistro hasn't been used since ROS Fuerte.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, removed these lines.

def conda_detect(packages):
# Return empty list - no packages detected as installed
# This is a stub implementation for package mapping only
return []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a pretty good way to handle this for now, but what would the behavior look like if we raised NotImplementedError instead?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it for now, it shouldn't really matter but not atleast it's more clear at runtime.

@ruben-arts
Copy link

Sorry we lost sight of this PR, I processed all comments. Would you be able to rereview @cottsay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants