🐛 Update xircuits-components to fetch from local #252
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the default way
xircuits-componentsfetches the components from pulling each file recursively to simply copying it from the site-packages (this behavior already exists if you runxircuitswithout xai_components present in your working dir, but it now the default forxircuits-componentsas well).If users would still want to fetch the components online or from a specific online branch, they can add the
--downloadtag. This PR also updates several error messages in this process.References
#152
Pull Request Type
Type of Change
Tests
Install Xircuits from this PR's wheel and verify that:
xircuits-components, it copies it from site-packages.xircuits-components --downloadit will download the components from an online source. Verify also that the error messages such as,unable to retrieve xai_components/xai_submodulename cannot be retrieved, skipping...no longer exist in this command.xircuits-components --downloadmultiple times in an hour, you will be greeted with the pyGithub error message.Tested on?