From a34d4eeebf931578997fad154a785d4ef8c9fc2d Mon Sep 17 00:00:00 2001 From: aoife cassidy Date: Wed, 4 Sep 2024 00:26:02 -0700 Subject: [PATCH] reuse: switch from .reuse/dep5 to REUSE.toml (#263) --- .github/workflows/rtc-node.yml | 6 ++--- .reuse/dep5 | 34 -------------------------- REUSE.toml | 44 ++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 37 deletions(-) delete mode 100644 .reuse/dep5 create mode 100644 REUSE.toml diff --git a/.github/workflows/rtc-node.yml b/.github/workflows/rtc-node.yml index 99efec37..c0757e0f 100644 --- a/.github/workflows/rtc-node.yml +++ b/.github/workflows/rtc-node.yml @@ -15,7 +15,7 @@ on: - 'examples/**' - 'package.json' - 'pnpm-lock.yaml' - - '.reuse/dep5' + - 'REUSE.toml' - '.github/workflows' branches: - main @@ -38,8 +38,8 @@ jobs: node-version: 20 cache: 'pnpm' - - name: REUSE-3.0 compliance check - uses: fsfe/reuse-action@v3 + - name: REUSE-4.0 compliance check + uses: fsfe/reuse-action@v4 - name: Install dependencies run: pnpm install diff --git a/.reuse/dep5 b/.reuse/dep5 deleted file mode 100644 index 1e7650ee..00000000 --- a/.reuse/dep5 +++ /dev/null @@ -1,34 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: node-sdks -Upstream-Contact: LiveKit, Inc. -Source: https://livekit.io - -# trivial files -Files: .gitignore .gitmodules flake.lock .github/* packages/livekit-rtc/.gitignore .changeset/* **/CHANGELOG.md NOTICE -Copyright: 2024 LiveKit, Inc. -License: Apache-2.0 - -# pnpm project files -Files: pnpm-workspace.yaml pnpm-lock.yaml -Copyright: 2024 LiveKit, Inc. -License: Apache-2.0 - -# node project files -Files: packages/livekit-rtc/.npmignore .prettierrc .prettierignore .eslintrc *.json -Copyright: 2024 LiveKit, Inc. -License: Apache-2.0 - -# cargo project files -Files: packages/livekit-rtc/Cargo.toml packages/livekit-rtc/Cargo.lock packages/livekit-rtc/.cargo/* -Copyright: 2024 LiveKit, Inc. -License: Apache-2.0 - -# autogenerated files -Files: packages/livekit-rtc/src/proto/* packages/livekit-rtc/npm/* packages/livekit-rtc/src/napi/native.cjs packages/livekit-rtc/src/napi/native.d.ts -Copyright: 2024 LiveKit, Inc. -License: Apache-2.0 - -# examples directory -Files: examples/* -Copyright: 2024 LiveKit, Inc. -License: Apache-2.0 diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 00000000..ec2c697f --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: 2024 LiveKit, Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +version = 1 +SPDX-PackageName = "node-sdks" +SPDX-PackageSupplier = "LiveKit, Inc. " +SPDX-PackageDownloadLocation = "https://github.com/livekit/node-sdks" + +# trivial files +[[annotations]] +path = [".gitignore", ".gitmodules", "flake.lock", ".github/**", "packages/livekit-rtc/.gitignore", ".changeset/**", "**/CHANGELOG.md", "NOTICE"] +SPDX-FileCopyrightText = "2024 LiveKit, Inc." +SPDX-License-Identifier = "Apache-2.0" + +# pnpm files +[[annotations]] +path = ["pnpm-workspace.yaml", "pnpm-lock.yaml"] +SPDX-FileCopyrightText = "2024 LiveKit, Inc." +SPDX-License-Identifier = "Apache-2.0" + +# project configuration files +[[annotations]] +path = ["packages/livekit-rtc/.npmignore", ".prettierrc", ".prettierignore", ".eslintrc", "**.json"] +SPDX-FileCopyrightText = "2024 LiveKit, Inc." +SPDX-License-Identifier = "Apache-2.0" + +# Rust NAPI files +[[annotations]] +path = ["packages/livekit-rtc/Cargo.toml", "packages/livekit-rtc/Cargo.lock", "packages/livekit-rtc/.cargo/**"] +SPDX-FileCopyrightText = "2024 LiveKit, Inc." +SPDX-License-Identifier = "Apache-2.0" + +# FFI protocol files +[[annotations]] +path = ["packages/livekit-rtc/src/proto/**", "packages/livekit-rtc/npm/**", "packages/livekit-rtc/src/napi/native.cjs", "packages/livekit-rtc/src/napi/native.d.ts"] +SPDX-FileCopyrightText = "2024 LiveKit, Inc." +SPDX-License-Identifier = "Apache-2.0" + +# examples +[[annotations]] +path = "examples/**" +SPDX-FileCopyrightText = "2024 LiveKit, Inc." +SPDX-License-Identifier = "Apache-2.0"