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 test helper python package for encapsulating versioned python packages #1180

Merged
merged 8 commits into from
Oct 11, 2022

Conversation

azeey
Copy link
Collaborator

@azeey azeey commented Sep 30, 2022

Summary

This builds on top of #1130 and provides a way to import math and sdformat packages without their version number. It does this by creating a test helper package that encapsulates the versioned python packages such that version numbers only have to be updated in one place (eg. when forward porting to main). If desired (for future work), we can take this a step further and make it cmake configurable so it doesn't have to be manually updated.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

willstott101 and others added 5 commits September 8, 2022 10:29
…failure due to gz.math not always being imported.

Signed-off-by: Will Stott <willstott101@gmail.com>
Signed-off-by: Will Stott <willstott101@gmail.com>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@azeey azeey requested a review from scpeters as a code owner September 30, 2022 02:54
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Sep 30, 2022
@azeey azeey mentioned this pull request Sep 30, 2022
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
@codecov
Copy link

codecov bot commented Sep 30, 2022

Codecov Report

Merging #1180 (06fac16) into sdf13 (ffea2ed) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            sdf13    #1180      +/-   ##
==========================================
+ Coverage   87.06%   87.10%   +0.04%     
==========================================
  Files         125      125              
  Lines       15983    16027      +44     
==========================================
+ Hits        13915    13960      +45     
+ Misses       2068     2067       -1     
Impacted Files Coverage Δ
src/Collision.cc 97.26% <100.00%> (+0.11%) ⬆️
src/Geometry.cc 100.00% <100.00%> (ø)
src/Heightmap.cc 100.00% <100.00%> (ø)
src/Link.cc 97.99% <100.00%> (+0.01%) ⬆️
src/Material.cc 95.37% <100.00%> (+0.04%) ⬆️
src/Mesh.cc 98.63% <100.00%> (+0.07%) ⬆️
src/Model.cc 92.76% <100.00%> (ø)
src/ParserConfig.cc 100.00% <100.00%> (ø)
src/Scene.cc 100.00% <100.00%> (ø)
src/Sky.cc 100.00% <100.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@azeey
Copy link
Collaborator Author

azeey commented Oct 11, 2022

Test failures appear to be due to network issues

@osrf-jenkins run tests please.

@azeey azeey merged commit 3fbdaf7 into gazebosim:sdf13 Oct 11, 2022
@azeey azeey deleted the python_module_version branch October 11, 2022 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants