Skip to content

chore: replace LICENSE with the verbatim Apache-2.0 text - #87

Merged
chaksaray merged 2 commits into
developfrom
chore/license-verbatim-apache-2.0
Oct 15, 2026
Merged

chaksaray merged 2 commits into
developfrom
chore/license-verbatim-apache-2.0

Conversation

@chaksaray

Copy link
Copy Markdown
Member

Closes #81

Supersedes #82. That PR keeps the copyright line inside the LICENSE appendix. This one
leaves LICENSE verbatim and moves the copyright line to a new NOTICE file. If this merges,
#82 can be closed.

Change

  • LICENSE: replaced with the apache-2.0 body from the GitHub licenses API
    (gh api licenses/apache-2.0), written byte for byte: 201 lines, 1,581 words,
    11,357 bytes. No word is edited, including the appendix placeholder
    Copyright [yyyy] [name of copyright owner].
  • NOTICE (new): Copyright 2026 Bawbel (bawbel.io@gmail.com), the line that was at
    line 102 of the old LICENSE.
  • pyproject.toml: unchanged. It already declares license = { text = "Apache-2.0" }
    (line 12) and License :: OSI Approved :: Apache Software License (line 55).
  • README badge: unchanged, already Apache 2.0 (line 13).

Released wheels up to 1.3.0 carry the abridged LICENSE. Any patch release is the
maintainer's call and is not part of this PR.

Before and after

Word count (wc -w LICENSE):

before: 725 LICENSE
after:  1581 LICENSE

Similarity from the workspace task check (status.py, word-level ratio against the SPDX
Apache-2.0 text, passes at >= 0.97):

before: status open  LICENSE is 725 words vs 1581 canonical, similarity=0.603 (need >= 0.97)
after:  status done  LICENSE is 1581 words vs 1581 canonical, similarity=1.000 (need >= 0.97)

Verify

Source text has all nine sections and the appendix:

$ grep -nE '^\s*[0-9]\. [A-Z]|APPENDIX|END OF TERMS' LICENSE
7:   1. Definitions.
66:   2. Grant of Copyright License. Subject to the terms and conditions of
73:   3. Grant of Patent License. Subject to the terms and conditions of
89:   4. Redistribution. You may reproduce and distribute copies of the
130:   5. Submission of Contributions. Unless You explicitly state otherwise,
138:   6. Trademarks. This License does not grant permission to use the trade
143:   7. Disclaimer of Warranty. Unless required by applicable law or
153:   8. Limitation of Liability. In no event and under no legal theory,
165:   9. Accepting Warranty or Additional Liability. While redistributing
176:   END OF TERMS AND CONDITIONS
178:   APPENDIX: How to apply the Apache License to your work.

LICENSE matches the API body exactly:

$ cmp LICENSE <body of gh api licenses/apache-2.0>   # exit 0
LICENSE is byte-identical to the gh api body

Package build from the committed tree (python -m build), both files ship:

Successfully built bawbel_scanner-1.3.0.tar.gz and bawbel_scanner-1.3.0-py3-none-any.whl
wheel: bawbel_scanner-1.3.0.dist-info/licenses/LICENSE
wheel: bawbel_scanner-1.3.0.dist-info/licenses/NOTICE
sdist: bawbel_scanner-1.3.0/LICENSE
sdist: bawbel_scanner-1.3.0/NOTICE

Golden fixture, the pr-review.yml check run against the built wheel (exit 0):

Golden fixture OK -- 5 findings, risk 9.8

Tests, the CI selection pytest tests/ -m "not integration and not slow" (exit 0):

596 passed, 11 skipped, 2 warnings in 286.15s

GitHub classification, before this change:

$ gh repo view bawbel/scanner --json licenseInfo
{"licenseInfo":{"key":"other","name":"Other","nickname":""}}

Not yet verifiable: GitHub classifies the default branch (main), so this reads
apache-2.0 only after the change reaches main through develop.

🤖 Generated with Claude Code

chaksaray and others added 2 commits October 13, 2026 07:14
LICENSE was an abridged copy of the Apache License 2.0 (725 words
against 1,581 canonical), so GitHub classified it as Other. Replace it
with the apache-2.0 text from the GitHub licenses API, unedited,
including the appendix placeholder line.

Move the copyright line into a new NOTICE file.

Closes #81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: chaksaray <chaksaray@gmail.com>
@chaksaray
chaksaray merged commit 0f4788b into develop Oct 15, 2026
14 checks passed
@chaksaray
chaksaray deleted the chore/license-verbatim-apache-2.0 branch October 15, 2026 00:12
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.

1 participant