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

Declare test dependencies in [test] extra #881

Merged
merged 2 commits into from
Jun 24, 2022
Merged

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Jun 23, 2022

Formally declaring the test dependencies somewhere is a good idea, and allows tools like colcon to discover them.

['extras_require']['test'] is where we put these dependencies in colcon itself, but there doesn't appear to be a strong consensus among the packaging community regarding where to list these, and many options aren't compatible with python 2, which is still supported in this package. This option seems to meet all of our needs.

Also make the 'mock' dependency conditional, now that this package supports using unittest.mock.

@cottsay cottsay requested a review from nuclearsandwich June 23, 2022 17:45
@cottsay cottsay self-assigned this Jun 23, 2022
Also make the 'mock' dependency conditional, now that this package
supports using unittest.mock.
@cottsay cottsay force-pushed the cottsay/extras-test branch from 339b60e to cd40f4f Compare June 23, 2022 18:11
@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2022

Codecov Report

Merging #881 (8d79368) into master (937d6b9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #881   +/-   ##
=======================================
  Coverage   74.82%   74.82%           
=======================================
  Files          44       44           
  Lines        3360     3360           
=======================================
  Hits         2514     2514           
  Misses        846      846           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 937d6b9...8d79368. Read the comment docs.

@cottsay cottsay merged commit 4b52357 into master Jun 24, 2022
@cottsay cottsay deleted the cottsay/extras-test branch June 24, 2022 02:30
russkel pushed a commit to Greenroom-Robotics/rosdep that referenced this pull request Jun 27, 2022
Also make the 'mock' dependency conditional, now that this package
supports using unittest.mock.
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.

3 participants