Repository navigation
docs: add NOTICE entry for the Casbin adapter - #657
Merged
Merged
Conversation
The adapter derives from casbin-pymongo-adapter (Apache-2.0). Its module docstring already says so (#652); add a NOTICE file with the entry, and ship it in the distributions and the image build. Closes #655 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis documentation and packaging-only change adds attribution for the Casbin adapter and ensures NOTICE is shipped in source distributions, wheels, and Docker-built installations without altering runtime logic. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #657 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 56
Lines 7189 7189
=========================================
Hits 7189 7189
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
November 4, 2026 00:02
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#655 docs: add NOTICE entry for the Casbin adapter · 2 of 3 met · 1 to check by hand
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | NOTICE names the adapter file, its origin, URL and license. | ✅ Met | NOTICE.md names the adapter path, casbin-pymongo-adapter, its GitHub URL and Apache License, Version 2.0. |
| 2 | The source distribution and wheel contain NOTICE. | ✅ Met | NOTICE is listed in pyproject.toml's license-files; the PR description also reports verifying its inclusion in both distributions. |
| 3 | The image still builds. | 👀 Check by hand (runtime) | Confirm that the Docker image build succeeds; the PR description says the image build was not run locally. |
Sourcery assessment
Approved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Closes #655.
Adds a
NOTICEfile with the origin offoca/security/access_control/foca_casbin_adapter/adapter.py(casbin-pymongo-adapter, Apache-2.0), and ships it:license-filesinpyproject.toml, plusdocker/Dockerfileand the allowlist of.dockerignore, as the image'spip install .needs every listed license file.The module docstring note was already added by #652 (for #647), so it isn't changed here. Upstream has no
NOTICEfile of its own to carry over.Light lane: only attribution text and the packaging list that ships it, no logic, so no reviewer subagents; I reviewed the diff myself.
How it was verified
uv build: the source distribution hasNOTICE, the wheel hasdist-info/licenses/NOTICE.pytest tests/test_repository.py tests/test_version_mentions.py: passed locally.🤖 Generated with Claude Code