Skip to content

docs: add NOTICE entry for the Casbin adapter - #657

Merged
uniqueg merged 1 commit into
devfrom
docs/notice-casbin-adapter
Nov 4, 2026
Merged

uniqueg merged 1 commit into
devfrom
docs/notice-casbin-adapter

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #655.

Adds a NOTICE file with the origin of foca/security/access_control/foca_casbin_adapter/adapter.py (casbin-pymongo-adapter, Apache-2.0), and ships it: license-files in pyproject.toml, plus docker/Dockerfile and the allowlist of .dockerignore, as the image's pip 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 NOTICE file 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 has NOTICE, the wheel has dist-info/licenses/NOTICE.
  • pytest tests/test_repository.py tests/test_version_mentions.py: passed locally.
  • The image build was not run locally (no Docker socket in the sandbox); the integration and scan jobs of CI build it, and passed for 8e279f7, like all other checks.

🤖 Generated with Claude Code

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]>
@sourcery-ai

sourcery-ai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This 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

Change Details Files
Add Casbin adapter attribution and package the NOTICE file across distributions and container builds.
  • Document the adapter’s casbin-pymongo-adapter Apache-2.0 origin.
  • Include NOTICE in Python license metadata for source distributions and wheels.
  • Allow and copy NOTICE into the Docker build context so pip install . can package it.
NOTICE
pyproject.toml
.dockerignore
docker/Dockerfile

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (55e2ea5) to head (8e279f7).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #657   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        56           
  Lines         7189      7189           
=========================================
  Hits          7189      7189           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 4, 2026 00:02

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 242633b into dev Nov 4, 2026
85 of 104 checks passed
@uniqueg
uniqueg deleted the docs/notice-casbin-adapter branch November 4, 2026 00:13
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.

docs: add NOTICE entry for the Casbin adapter

1 participant