📄 Add MIT-0 license #40

Merged
mat merged 1 commit from chore/add-license into main 2026-07-05 09:18:22 +00:00
Owner

Summary

Adds a license — the repo had none. Uses MIT-0 (MIT No Attribution): as permissive as MIT but with no attribution requirement, while keeping a warranty disclaimer that is valid across jurisdictions (unlike a public-domain dedication such as The Unlicense, whose validity is doubtful under French/EU law where the author is based).

Changes

  • LICENSE — canonical SPDX MIT-0 text, © 2024 Matéo Greil.
  • pyproject.toml — declare the license via PEP 639: license = "MIT-0" + license-files = ["LICENSE"], and bump the build backend to setuptools>=77 (needed for SPDX license-expression support). No license Trove classifier is added (PEP 639 forbids mixing the two).

Verification

  • python -m build emits License-Expression: MIT-0 and License-File: LICENSE in the wheel METADATA; LICENSE is bundled in both wheel (dist-info/licenses/) and sdist.
  • pytest: 89 passed. mypy: no issues.

Opened as draft (WIP) — remove the WIP: prefix to mark ready.

Rationale discussed: MIT-0 chosen over 0BSD for ecosystem familiarity (Python is MIT-heavy), over The Unlicense for legal robustness in France, over plain MIT because attribution wasn't wanted.

## Summary Adds a license — the repo had none. Uses **MIT-0** (MIT No Attribution): as permissive as MIT but with **no attribution requirement**, while keeping a warranty disclaimer that is valid across jurisdictions (unlike a public-domain dedication such as The Unlicense, whose validity is doubtful under French/EU law where the author is based). ## Changes - `LICENSE` — canonical SPDX **MIT-0** text, © 2024 Matéo Greil. - `pyproject.toml` — declare the license via **PEP 639**: `license = "MIT-0"` + `license-files = ["LICENSE"]`, and bump the build backend to `setuptools>=77` (needed for SPDX license-expression support). No license Trove classifier is added (PEP 639 forbids mixing the two). ## Verification - `python -m build` emits `License-Expression: MIT-0` and `License-File: LICENSE` in the wheel METADATA; `LICENSE` is bundled in both wheel (`dist-info/licenses/`) and sdist. - `pytest`: 89 passed. `mypy`: no issues. Opened as **draft** (WIP) — remove the `WIP:` prefix to mark ready. _Rationale discussed: MIT-0 chosen over 0BSD for ecosystem familiarity (Python is MIT-heavy), over The Unlicense for legal robustness in France, over plain MIT because attribution wasn't wanted._
📄 Add MIT-0 license
All checks were successful
Tests / forgejo-pytest (push) Successful in 42s
Tests / forgejo-pytest (pull_request) Successful in 42s
c625eb4ece
The repo had no license file. Add MIT-0 (MIT No Attribution) — permissive,
no attribution requirement, with a jurisdiction-robust warranty disclaimer
(unlike a public-domain dedication, which is legally shaky under French law).

- LICENSE: canonical SPDX MIT-0 text, © 2024 Matéo Greil
- pyproject.toml: declare it via PEP 639 (license = "MIT-0" + license-files),
  bump build backend to setuptools>=77 for SPDX license-expression support

Verified: build emits 'License-Expression: MIT-0' + bundles LICENSE in
wheel/sdist; 89 tests pass; mypy clean.
mat changed title from WIP: 📄 Add MIT-0 license to 📄 Add MIT-0 license 2026-07-05 09:18:19 +00:00
mat merged commit e68b8724bd into main 2026-07-05 09:18:22 +00:00
mat deleted branch chore/add-license 2026-07-05 09:18:22 +00:00
mat referenced this pull request from a commit 2026-07-05 09:18:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mat/python-comwatt-client!40
No description provided.