Rename keyring.py to keyring_utils.py#1765
Conversation
Doing this avoids `keyring.py` shadowing the `keyring` dependency pacakge.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1765 +/- ##
=======================================
Coverage 75.03% 75.03%
=======================================
Files 84 84
Lines 11889 11889
=======================================
Hits 8921 8921
Misses 2968 2968
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR renames the keyring.py module to keyring_utils.py to avoid naming conflicts with the external keyring package (as referenced in issue #1764).
Key Changes:
- Module
dandi/keyring.pyrenamed todandi/keyring_utils.py - Import statements updated across the codebase
- Test mock patch paths updated to reference the new module name
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
dandi/keyring_utils.py |
New file containing the renamed keyring utility functions (previously keyring.py) |
dandi/dandiapi.py |
Updated import statement to reference keyring_utils instead of keyring |
dandi/tests/test_keyring.py |
Updated import statement and all mock patch paths to reference keyring_utils module |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
In general I don't mind, but to me it suggests the underlying tool likely trying to be too flexible with how it does imports etc, since it is infeasible to guarantee that we do not conflict with any potential python package installed on the system. Although I don't expect but before we merge please search GitHub for dandi and keyring to ensure that no third party imports it. |
|
@copilot Can you search GitHub to ensure no other packages import |
|
@candleindark I've opened a new pull request, #1766, to work on those changes. Once the pull request is ready, I'll request review from you. |
I think we are good to go. The only query that located some references of module is See #1766 for detials. |
|
were approvied, could've been merged (attn @candleindark ) |
Do you mean that I can merge any PR for this repo that is approved from now on? What about PRs for the dandischema repo? |
|
yes, yes |
|
🚀 PR was released in |
This PR closes #1764.