From a4ba636215a850fb793d4ed53155bb9bd9b0c57f Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 11 Feb 2025 17:57:31 -0500 Subject: [PATCH 1/3] Do specify our copyright line (with years range) in LICENSE file Apparently we had a template and never bothered to adjust it --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 261eeb9e9..160df58e7 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright 2019-2024 The DANDI Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From 114d2f00a069be89f74de90a56edaebc465e7641 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 11 Feb 2025 18:29:10 -0500 Subject: [PATCH 2/3] Add workflow which should trigger update of copyright year Ideally we should restrict it to only "useful" changes, e.g. under dandi/ folder. Filed - https://github.com/FantasticFiasco/action-update-license-year/issues/626 --- .github/workflows/update-year.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/update-year.yml diff --git a/.github/workflows/update-year.yml b/.github/workflows/update-year.yml new file mode 100644 index 000000000..15caa1237 --- /dev/null +++ b/.github/workflows/update-year.yml @@ -0,0 +1,21 @@ +name: Update year + +on: + # We would not trigger update until actual changes are done + # to our code, or we explicitly request + push: + branches: + - 'master' + workflow_dispatch: + + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: FantasticFiasco/action-update-license-year@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} From 39221c18d968bc23e588e6cf81e00ae58a0ca310 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 11 Feb 2025 18:30:48 -0500 Subject: [PATCH 3/3] Make year in sphinx auto-update on build, unify name to how on dandiarchive.org --- docs/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 668d523b0..7d9ad8788 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -20,8 +20,8 @@ import dandi project = "dandi" -copyright = "2021-2024, DANDI Team" -author = "DANDI Team" +copyright = "2021-%Y The DANDI Team" +author = "The DANDI Team" # The full version, including alpha/beta/rc tags version = dandi.__version__