From 3ec644781729b2afbc9a6f75fb93d0964caffa68 Mon Sep 17 00:00:00 2001 From: Lukas Kollmer Date: Tue, 2 Dec 2025 19:05:38 +0100 Subject: [PATCH 1/4] update stuff --- .github/workflows/build-and-test.yml | 5 +++-- .github/workflows/static-analysis.yml | 8 ++++---- .gitignore | 2 +- .spi.yml | 2 +- .swiftlint.yml | 2 +- CITATION.cff | 4 ++-- CONTRIBUTORS.md | 2 +- LICENSE.md | 2 +- Package.swift | 2 +- README.md | 18 +++++++++--------- Sources/ThreadLocal/Macros.swift | 2 +- Sources/ThreadLocal/ThreadLocal.swift | 2 +- Sources/ThreadLocalMacros/Diagnostic.swift | 2 +- .../ThreadLocalMacros/ThreadLocalMacro.swift | 2 +- .../ThreadLocalMacros/ThreadLocalMacros.swift | 2 +- .../ThreadLocalMacroTests.swift | 2 +- Tests/ThreadLocalTests/ThreadLocalTests.swift | 2 +- 17 files changed, 31 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1bcd473..46b5a90 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,7 +1,7 @@ # # This source file is part of the ThreadLocal open source project # -# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) # # SPDX-License-Identifier: MIT # @@ -35,7 +35,7 @@ jobs: destination: 'platform=watchOS Simulator,name=Apple Watch Series 11 (46mm)' fail-fast: false with: - # runsonlabels: '["macOS", "self-hosted"]' + runsonlabels: '["macOS", "self-hosted"]' scheme: ThreadLocal destination: ${{ matrix.platform.destination }} buildConfig: ${{ matrix.config }} @@ -48,6 +48,7 @@ jobs: strategy: matrix: config: [Debug, Release] + fail-fast: false with: artifact_name: ${{ format('ThreadLocal-Linux-{0}.lcov', matrix.config) }} uploadcoveragereport: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index e9c2722..5f8059d 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,7 +1,7 @@ # # This source file is part of the ThreadLocal open-source project # -# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) # # SPDX-License-Identifier: MIT # @@ -26,9 +26,9 @@ jobs: swiftlint: name: SwiftLint uses: StanfordSpezi/.github/.github/workflows/swiftlint.yml@v2 - # markdown_link_check: - # name: Markdown Link Check - # uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2 + markdown_link_check: + name: Markdown Link Check + uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2 breaking_changes: name: Diagnose Breaking Changes uses: StanfordSpezi/.github/.github/workflows/breaking-changes.yml@v2 diff --git a/.gitignore b/.gitignore index 569def2..4217f17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # # This source file is part of the ThreadLocal open source project # -# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) # # SPDX-License-Identifier: MIT # diff --git a/.spi.yml b/.spi.yml index 37047fd..a6c7c89 100644 --- a/.spi.yml +++ b/.spi.yml @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the ThreadLocal open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # diff --git a/.swiftlint.yml b/.swiftlint.yml index d4524a5..60aa2e7 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the ThreadLocal open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # diff --git a/CITATION.cff b/CITATION.cff index 8589ca7..7980c7c 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,7 +1,7 @@ # # This source file is part of the ThreadLocal open source project # -# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) # # SPDX-License-Identifier: MIT # @@ -15,6 +15,6 @@ authors: - family-names: "Ravi" given-names: "Vishnu" orcid: "https://orcid.org/0000-0003-0359-1275" -title: "TemplatePackage" +title: "ThreadLocal" doi: 10.5281/zenodo.7538165 url: "https://github.com/StanfordBDHG/SwiftPackageTemplate" diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 21c893c..17da8c8 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -3,7 +3,7 @@ # # This source file is part of the ThreadLocal open source project # -# SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +# SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) # # SPDX-License-Identifier: MIT # diff --git a/LICENSE.md b/LICENSE.md index 2068f2c..0ac3219 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +Copyright (c) 2025 Stanford University and the project authors (see CONTRIBUTORS.md) 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: diff --git a/Package.swift b/Package.swift index 9c0c921..fb290eb 100644 --- a/Package.swift +++ b/Package.swift @@ -2,7 +2,7 @@ // // This source file is part of the ThreadLocal open-source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // diff --git a/README.md b/README.md index 8eae5ab..376a4fe 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This source file is part of the ThreadLocal open source project -SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) SPDX-License-Identifier: MIT @@ -10,11 +10,11 @@ SPDX-License-Identifier: MIT # ThreadLocal -[![Build and Test](https://github.com/lukaskollmer/ThreadLocal/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/lukaskollmer/ThreadLocal/actions/workflows/build-and-test.yml) -[![codecov](https://codecov.io/gh/lukaskollmer/ThreadLocal/branch/main/graph/badge.svg?token=X7BQYSUKOH)](https://codecov.io/gh/lukaskollmer/ThreadLocal) +[![Build and Test](https://github.com/StanfordBDHG/ThreadLocal/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordBDHG/ThreadLocal/actions/workflows/build-and-test.yml) +[![codecov](https://codecov.io/gh/StanfordBDHG/ThreadLocal/branch/main/graph/badge.svg?token=X7BQYSUKOH)](https://codecov.io/gh/StanfordBDHG/ThreadLocal) -[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flukaskollmer%2FThreadLocal%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/lukaskollmer/ThreadLocal) -[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Flukaskollmer%2FThreadLocal%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/lukaskollmer/ThreadLocal) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordBDHG%2FThreadLocal%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/StanfordBDHG/ThreadLocal) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordBDHG%2FThreadLocal%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/StanfordBDHG/ThreadLocal) Thread-local variables for Swift. @@ -34,7 +34,7 @@ When the thread is destroyed, the variable's lifetime is ended. You can use non-trivial types with thread-local variables, and can provide a custom deallocator if needed (see ``ThreadLocal(deallocator:)``). -See [the documentation](https://swiftpackageindex.com/lukaskollmer/ThreadLocal) for more info. +See [the documentation](https://swiftpackageindex.com/StanfordBDHG/ThreadLocal) for more info. ## Installation @@ -47,12 +47,12 @@ The project can be added to your Xcode project or Swift Package using the [Swift ## License -This project is licensed under the MIT License. See [Licenses](https://github.com/lukaskollmer/ThreadLocal/tree/main/LICENSES) for more information. +This project is licensed under the MIT License. See [Licenses](https://github.com/StanfordBDHG/ThreadLocal/tree/main/LICENSES) for more information. ## Contributors -This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University. -See [CONTRIBUTORS.md](https://github.com/lukaskollmer/ThreadLocal/tree/main/CONTRIBUTORS.md) for a full list of all TemplatePackage contributors. +This project is developed as part of the Stanford Mussallem Center for Biodesign at Stanford University. +See [CONTRIBUTORS.md](https://github.com/lukaskollmer/ThreadLocal/tree/main/CONTRIBUTORS.md) for a full list of all ThreadLocal contributors. ![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-light.png#gh-light-mode-only) ![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-dark.png#gh-dark-mode-only) diff --git a/Sources/ThreadLocal/Macros.swift b/Sources/ThreadLocal/Macros.swift index ecbe734..265ea07 100644 --- a/Sources/ThreadLocal/Macros.swift +++ b/Sources/ThreadLocal/Macros.swift @@ -1,7 +1,7 @@ // // This source file is part of the ThreadLocal open-source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // diff --git a/Sources/ThreadLocal/ThreadLocal.swift b/Sources/ThreadLocal/ThreadLocal.swift index 672d564..a669f22 100644 --- a/Sources/ThreadLocal/ThreadLocal.swift +++ b/Sources/ThreadLocal/ThreadLocal.swift @@ -1,7 +1,7 @@ // // This source file is part of the ThreadLocal open-source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // diff --git a/Sources/ThreadLocalMacros/Diagnostic.swift b/Sources/ThreadLocalMacros/Diagnostic.swift index ff0452e..980db14 100644 --- a/Sources/ThreadLocalMacros/Diagnostic.swift +++ b/Sources/ThreadLocalMacros/Diagnostic.swift @@ -1,7 +1,7 @@ // // This source file is part of the ThreadLocal open-source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // diff --git a/Sources/ThreadLocalMacros/ThreadLocalMacro.swift b/Sources/ThreadLocalMacros/ThreadLocalMacro.swift index 75bd15e..eef345c 100644 --- a/Sources/ThreadLocalMacros/ThreadLocalMacro.swift +++ b/Sources/ThreadLocalMacros/ThreadLocalMacro.swift @@ -1,7 +1,7 @@ // // This source file is part of the ThreadLocal open-source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // diff --git a/Sources/ThreadLocalMacros/ThreadLocalMacros.swift b/Sources/ThreadLocalMacros/ThreadLocalMacros.swift index ad284c7..afd0963 100644 --- a/Sources/ThreadLocalMacros/ThreadLocalMacros.swift +++ b/Sources/ThreadLocalMacros/ThreadLocalMacros.swift @@ -1,7 +1,7 @@ // // This source file is part of the ThreadLocal open-source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // diff --git a/Tests/ThreadLocalTests/ThreadLocalMacroTests.swift b/Tests/ThreadLocalTests/ThreadLocalMacroTests.swift index a164ba1..1fee28e 100644 --- a/Tests/ThreadLocalTests/ThreadLocalMacroTests.swift +++ b/Tests/ThreadLocalTests/ThreadLocalMacroTests.swift @@ -1,7 +1,7 @@ // // This source file is part of the ThreadLocal open source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // diff --git a/Tests/ThreadLocalTests/ThreadLocalTests.swift b/Tests/ThreadLocalTests/ThreadLocalTests.swift index 776f842..b490a6c 100644 --- a/Tests/ThreadLocalTests/ThreadLocalTests.swift +++ b/Tests/ThreadLocalTests/ThreadLocalTests.swift @@ -1,7 +1,7 @@ // // This source file is part of the ThreadLocal open source project // -// SPDX-FileCopyrightText: 2025 Lukas Kollmer and the project authors (see CONTRIBUTORS.md) +// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md) // // SPDX-License-Identifier: MIT // From 8f9394018718d72058a0c28ce3ba5cc8e02b116d Mon Sep 17 00:00:00 2001 From: Lukas Kollmer Date: Tue, 2 Dec 2025 19:08:12 +0100 Subject: [PATCH 2/4] x --- Sources/ThreadLocal/ThreadLocal.docc/ThreadLocal.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/ThreadLocal/ThreadLocal.docc/ThreadLocal.md b/Sources/ThreadLocal/ThreadLocal.docc/ThreadLocal.md index 99b9d9c..9d16ef6 100644 --- a/Sources/ThreadLocal/ThreadLocal.docc/ThreadLocal.md +++ b/Sources/ThreadLocal/ThreadLocal.docc/ThreadLocal.md @@ -1,5 +1,15 @@ # ``ThreadLocal`` + + Thread-local variables for Swift. ## Overview From d8f0fd37c4f014d39cc7deb228f086cb795d14e6 Mon Sep 17 00:00:00 2001 From: Lukas Kollmer Date: Tue, 2 Dec 2025 19:10:12 +0100 Subject: [PATCH 3/4] x --- LICENSES/MIT.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 LICENSES/MIT.txt diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..6998b5f --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2022 Stanford University and the project authors (see CONTRIBUTORS.md) + +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. \ No newline at end of file From 8a4bc75de1ae09d3f4f93b1a56e707fea4df866d Mon Sep 17 00:00:00 2001 From: Lukas Kollmer Date: Tue, 2 Dec 2025 19:10:26 +0100 Subject: [PATCH 4/4] x --- LICENSES/MIT.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt index 6998b5f..0ac3219 100644 --- a/LICENSES/MIT.txt +++ b/LICENSES/MIT.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Stanford University and the project authors (see CONTRIBUTORS.md) +Copyright (c) 2025 Stanford University and the project authors (see CONTRIBUTORS.md) 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: