Skip to content

Fix license references: MIT → Apache 2.0#87

Merged
dgenio merged 2 commits intomainfrom
copilot/fix-license-references
Mar 6, 2026
Merged

Fix license references: MIT → Apache 2.0#87
dgenio merged 2 commits intomainfrom
copilot/fix-license-references

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

The LICENSE file is Apache 2.0, but both README.md and pyproject.toml incorrectly referenced MIT — creating legal ambiguity and causing PyPI to display the wrong license.

Changes

  • README.md: Updated license section from MIT — see [LICENSE](LICENSE). to This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
  • pyproject.toml: Updated classifier from "License :: OSI Approved :: MIT License" to "License :: OSI Approved :: Apache Software License"
Original prompt

This section details on the original issue you should resolve

<issue_title>Fix license references: MIT → Apache 2.0 (README + pyproject.toml)</issue_title>
<issue_description>## Bug

The LICENSE file at the repository root is Apache License 2.0, but the README.md states:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Additionally, pyproject.toml contains an incorrect classifier:

"License :: OSI Approved :: MIT License"

Both the README and pyproject.toml are inconsistent with the actual Apache 2.0 LICENSE file.

Proposed fix

1. Update README.md

Update README.md license section from:

This project is licensed under the MIT License - see the LICENSE file for details.

to:

This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.

2. Update pyproject.toml classifier

Change:

"License :: OSI Approved :: MIT License",

to:

"License :: OSI Approved :: Apache Software License",

Why this matters

  • License mismatches create legal ambiguity for users and contributors
  • Automated compliance tools (FOSSA, Snyk, etc.) may flag the mismatch
  • PyPI displays classifier-based license info — it currently shows MIT incorrectly
  • The LICENSE file is the canonical source of truth; everything else must match

Labels to apply

  • documentation
  • priority:P2
  • bug

Depends on

None — standalone micro-fix.

Acceptance criteria

  • README.md license section references "Apache License 2.0" (not "MIT")
  • pyproject.toml classifier updated from MIT to License :: OSI Approved :: Apache Software License
  • LICENSE file remains unchanged (it is correct)</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: dgenio <12731907+dgenio@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix license references from MIT to Apache 2.0 Fix license references: MIT → Apache 2.0 Mar 6, 2026
@dgenio dgenio requested a review from Copilot March 6, 2026 18:14
@dgenio dgenio marked this pull request as ready for review March 6, 2026 18:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Aligns the documented/package-reported license with the repository’s canonical LICENSE file (Apache 2.0) to remove ambiguity and ensure correct PyPI metadata.

Changes:

  • Updated the pyproject.toml license classifier from MIT to Apache.
  • Updated the README.md License section to reference Apache License 2.0.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Corrects the PyPI trove classifier to Apache Software License.
README.md Updates the human-facing license blurb to match Apache 2.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@dgenio dgenio merged commit 66b8fe3 into main Mar 6, 2026
8 checks passed
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.

Fix license references: MIT → Apache 2.0 (README + pyproject.toml)

3 participants