From 373efbcb2dd72c0e3c43c4ed02b80200132e00e2 Mon Sep 17 00:00:00 2001 From: Matthew Daubney Date: Fri, 25 Sep 2026 19:47:06 +0100 Subject: [PATCH] License under BSD 3-Clause Adds LICENSE, the licence expression and file in the package metadata, an OCI licence label on both images, and a Licence section in the README. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW --- LICENSE | 28 ++++++++++++++++++++++++++++ README.md | 4 ++++ docker/api.Dockerfile | 1 + docker/ui.Dockerfile | 1 + pyproject.toml | 2 ++ 5 files changed, 36 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..bcf8e58 --- /dev/null +++ b/LICENSE @@ -0,0 +1,28 @@ +BSD 3-Clause License + +Copyright (c) 2026, Matthew Daubney + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index 29b5247..ca193b5 100644 --- a/README.md +++ b/README.md @@ -166,3 +166,7 @@ The workflow needs these repository secrets and variables: - **Variables**: `PKGS_HOST`, `PKGS_DOCKER_FEED`, `PKGS_PYPI_FEED`, `PKGS_ASSET_FEED`, `NTFY_URL`, `NTFY_TOPIC` To release, tag `vX.Y.Z` on `main` and push the tag. The tag sets the package and image version. + +## Licence + +BSD 3-Clause; see [LICENSE](LICENSE). The fonts vendored in `frontend/fonts/` are under the SIL Open Font License 1.1. diff --git a/docker/api.Dockerfile b/docker/api.Dockerfile index cb3f998..d123df6 100644 --- a/docker/api.Dockerfile +++ b/docker/api.Dockerfile @@ -11,6 +11,7 @@ COPY src ./src RUN uv sync --locked --no-dev --no-editable FROM python:3.13-slim +LABEL org.opencontainers.image.licenses="BSD-3-Clause" RUN useradd --system --uid 10001 --no-create-home scrobbler WORKDIR /app COPY --from=build /app/.venv /app/.venv diff --git a/docker/ui.Dockerfile b/docker/ui.Dockerfile index 146d06c..f26bda5 100644 --- a/docker/ui.Dockerfile +++ b/docker/ui.Dockerfile @@ -1,5 +1,6 @@ # Scrobbler web UI: static files served by nginx. FROM nginx:1.29-alpine +LABEL org.opencontainers.image.licenses="BSD-3-Clause" ENV API_BASE_URL=http://localhost:5050 COPY deploy/nginx/default.conf.template /etc/nginx/templates/default.conf.template COPY docker/ui-config.sh /docker-entrypoint.d/40-scrobbler-config.sh diff --git a/pyproject.toml b/pyproject.toml index cfb2835..480ebde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,8 @@ name = "scrobby" version = "0.1.0" description = "Self-hosted, Last.fm-compatible music scrobbling service" readme = "README.md" +license = "BSD-3-Clause" +license-files = ["LICENSE"] requires-python = ">=3.13" dependencies = [ "flask>=3.1.3",