From 85a75b321d4b34b0d992ca3268117a2243f13171 Mon Sep 17 00:00:00 2001 From: magdev Date: Tue, 29 Sep 2026 12:35:09 +0200 Subject: [PATCH] Add MIT licence Declared with the PEP 639 license / license-files fields, so the text ships in the wheel and the image rather than only the repository. Records the terms of the two things this repository deliberately does not contain: Boxsim, which is Visaton freeware and is never redistributed, and kicad-visaton-lib, which is CC-BY-SA-4.0 and is copied into any image built by tools/build-image.sh. Verified: pip install exposes License-Expression MIT and packages the text as dist-info/licenses/LICENSE, both on the host and in the image. Co-Authored-By: Claude Fable 5 --- .gitignore | 2 ++ Dockerfile | 2 +- LICENSE | 21 +++++++++++++++++++++ README.md | 7 ++++++- pyproject.toml | 5 +++-- 5 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/.gitignore b/.gitignore index b3efc34..11d35f9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ brute .claude/ __pycache__/ *.ini +build/ +dist/ diff --git a/Dockerfile b/Dockerfile index 17ef216..fd482fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ LABEL org.opencontainers.image.title="boxsim" \ WORKDIR /opt/boxsim -COPY pyproject.toml README.md ./ +COPY pyproject.toml README.md LICENSE ./ COPY boxsim ./boxsim # Staged by tools/build-image.sh: the upgraded Visaton symbol library and the diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2ef7a6b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Marco Grätsch + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index b8deb34..e70e66e 100644 --- a/README.md +++ b/README.md @@ -158,4 +158,9 @@ Tests needing KiCad or the Boxsim distribution skip themselves when those are ab ## Licence -MIT. +MIT, see [LICENSE](LICENSE). + +Two things this repository deliberately does not contain, and their terms if you assemble them yourself: + +- `Boxsim.exe` and the Boxsim distribution are Visaton freeware. Only the development-only oracle touches the binary, and no part of it is redistributed here or in the image. +- [kicad-visaton-lib](https://src.bundespruefstelle.ch/magdev/kicad-visaton-lib) is CC-BY-SA-4.0. `tools/build-image.sh` copies it into the image it builds, so an image you publish carries that licence alongside this one. diff --git a/pyproject.toml b/pyproject.toml index 3029bbe..28d2fb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=68"] +requires = ["setuptools>=77"] build-backend = "setuptools.build_meta" [project] @@ -8,7 +8,8 @@ version = "0.1.0" description = "Read Boxsim loudspeaker projects and generate KiCad projects from their crossovers" readme = "README.md" requires-python = ">=3.11" -license = { text = "MIT" } +license = "MIT" +license-files = ["LICENSE"] authors = [{ name = "Marco Grätsch", email = "magdev3.0@gmail.com" }] keywords = ["boxsim", "visaton", "kicad", "loudspeaker", "crossover"] dependencies = []