Skip to content

Prepare PyPI Trusted Publishing for apache-casbin - #445

Closed
EmryZhang wants to merge 2 commits into
review/casbin-20261121/source-headersfrom
review/casbin-20261121/publisher-route
Closed

EmryZhang wants to merge 2 commits into
review/casbin-20261121/source-headersfrom
review/casbin-20261121/publisher-route

Conversation

@EmryZhang

Copy link
Copy Markdown
Contributor

Summary

Align the release guide with the current package steps. Use the GitHub pypi environment and an isolated OIDC publication job after verification of the approved source.

Review order

This draft targets the branch for #444. Review that change first. After it merges, rebase this branch onto the default branch as needed, retarget this PR, and rerun the affected checks before merging.

Validation

Checked the workflow's RC and manual publication entry points, isolated OIDC permission and artifact handoff locally. First publication requires the matching PyPI Trusted Publisher and GitHub environment.

@hsluoyz hsluoyz closed this Nov 21, 2026
@hsluoyz
hsluoyz deleted the review/casbin-20261121/publisher-route branch November 21, 2026 09:55
@hsluoyz

hsluoyz commented Nov 21, 2026

Copy link
Copy Markdown
Member

Thanks! This stack (#442 to #446) landed as a single commit, 5abf955, because the drafts were chained and the intermediate states disagreed (for example #442 still described the readerwriterlock dependency that was dropped in #440). The final tree of #446 is kept, with these changes:

  • LICENSE and NOTICE are unchanged from master. The full CC0 text for the .gitignore template is gone, because .gitignore is now a short list written for this repository. The per-header copyright list is gone too, because the existing Copyright 2017-2026 The casbin Authors line already covers it.
  • .rat-excludes uses *.csv instead of listing every policy fixture by name.

Checked on the result: 479 unit tests (1 skipped), 26 release-script tests, black --check, wheel and sdist build, twine check --strict, and release.py python-check on both packages.

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.

2 participants