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

Support dependency overrides #678

Merged
merged 7 commits into from
Oct 5, 2023
Merged

Conversation

angrybayblade
Copy link

@angrybayblade angrybayblade commented Oct 5, 2023

Proposed changes

  • Updates dependency merge to override dependencies in order of extra dependencies provided by flag > agent > skill > connection > contract > protocol
  • Adds support for extra dependencies and dependency overrides on aea install

Fixes

fixes valory-xyz/open-autonomy#1910

Types of changes

What types of changes does your code introduce to agents-aea?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING doc
  • I am making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Lint and unit tests pass locally with my changes and CI passes too
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that code coverage does not decrease.
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Copy link
Collaborator

@solarw solarw left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (454807b) 91.97% compared to head (46ade04) 91.98%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #678   +/-   ##
=======================================
  Coverage   91.97%   91.98%           
=======================================
  Files         371      371           
  Lines       29533    29589   +56     
=======================================
+ Hits        27163    27216   +53     
- Misses       2370     2373    +3     
Flag Coverage Δ
unittests 91.98% <92.50%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
aea/cli/utils/context.py 97.69% <100.00%> (+0.98%) ⬆️
aea/cli/install.py 97.14% <90.00%> (-2.86%) ⬇️
aea/cli/utils/click_utils.py 92.07% <75.00%> (-0.93%) ⬇️
aea/configurations/data_types.py 98.46% <76.92%> (-0.74%) ⬇️

... and 2 files with indirect coverage changes

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

@angrybayblade angrybayblade merged commit 73a9873 into main Oct 5, 2023
33 of 36 checks passed
@DavidMinarsch DavidMinarsch deleted the feat/dependency-overrides branch October 12, 2023 23:54
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.

Overriding dependencies
5 participants