Skip to content

chore: add MIT LICENSE and declare license metadata - #84

Open
innovus-h wants to merge 1 commit into
context-labs:mainfrom
innovus-h:add-mit-license
Open

chore: add MIT LICENSE and declare license metadata#84
innovus-h wants to merge 1 commit into
context-labs:mainfrom
innovus-h:add-mit-license

Conversation

@innovus-h

@innovus-h innovus-h commented Jul 28, 2026

Copy link
Copy Markdown

Fixes #34.

Problem

README.md advertises MIT in two places, but the repo had no LICENSE file and pyproject.toml declared no license — so the code defaulted to "all rights reserved", contradicting the README, and both GET /repos/context-labs/halo and the halo-engine PyPI metadata reported no license.

  • README.md:23-24 — MIT badge
  • README.md:307[MIT](LICENSE) link, previously a 404
  • The only LICENSE in the tree was the vendored demo/appworld/LICENSE (Apache-2.0, untouched here)

Changes

  1. LICENSE — standard MIT text at the repo root. Attributed to Inference R&D, Inc., per @samheutmaker's reply on Repo is missing LICENSE file despite MIT badge in README #34. Copyright year 2026.
  2. pyproject.toml — added license = "MIT" and license-files = ["LICENSE"].

The PEP 639 spelling is used rather than the legacy license = {text = "MIT"} since the build backend is already hatchling==1.28.0, which supports it.

Verification

Built the wheel and inspected the metadata:

Metadata-Version: 2.4
Name: halo-engine
Version: 0.2.2
License-Expression: MIT
License-File: LICENSE

The LICENSE is also bundled at halo_engine-0.2.2.dist-info/licenses/LICENSE, so the next PyPI release will carry correct license metadata. No source files touched.

Credit to @yurekami for the original report and diagnosis in #34.


Note

Low Risk
Documentation and packaging metadata only; no runtime or security-sensitive code paths change.

Overview
Adds a root LICENSE with standard MIT text (copyright Inference R&D, Inc., 2026) so the README’s MIT badge and [MIT](LICENSE) link match the repo instead of implying “all rights reserved.”

Updates pyproject.toml with PEP 639 license = "MIT" and license-files = ["LICENSE"] so GitHub and PyPI/halo-engine wheel metadata report MIT and bundle the license file—no application or runtime code changes.

Reviewed by Cursor Bugbot for commit 9ae80cc. Bugbot is set up for automated code reviews on this repo. Configure here.

README advertises MIT in two places (the badge and the `[MIT](LICENSE)`
link), but no LICENSE file existed and pyproject.toml declared no license,
so the repo defaulted to "all rights reserved" and GitHub/PyPI both
reported no license.

- Add a top-level LICENSE with the standard MIT text, attributed to
  Inference R&D, Inc. per maintainer guidance in the issue thread.
- Declare `license = "MIT"` and `license-files = ["LICENSE"]` in
  pyproject.toml. hatchling 1.28.0 supports PEP 639, so the built wheel
  now carries `License-Expression: MIT` / `License-File: LICENSE`
  (Metadata-Version 2.4) and bundles the LICENSE in dist-info.

Fixes context-labs#34
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.

Repo is missing LICENSE file despite MIT badge in README

1 participant