diff --git a/bin/dul-receive-pack b/bin/dul-receive-pack index 655f17555..206877eaf 100755 --- a/bin/dul-receive-pack +++ b/bin/dul-receive-pack @@ -2,6 +2,7 @@ # dul-receive-pack - git-receive-pack in python # Copyright (C) 2008 John Carr # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/bin/dul-upload-pack b/bin/dul-upload-pack index 547779266..7254d0543 100755 --- a/bin/dul-upload-pack +++ b/bin/dul-upload-pack @@ -2,6 +2,7 @@ # dul-upload-pack - git-upload-pack in python # Copyright (C) 2008 John Carr # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/bin/dulwich b/bin/dulwich index 523887ae6..02be5f902 100755 --- a/bin/dulwich +++ b/bin/dulwich @@ -2,6 +2,7 @@ # command-line interface for Dulwich # Copyright (C) 2020 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/devscripts/PREAMBLE.py b/devscripts/PREAMBLE.py index f7027871d..16b903b22 100644 --- a/devscripts/PREAMBLE.py +++ b/devscripts/PREAMBLE.py @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/devscripts/replace-preamble.sh b/devscripts/replace-preamble.sh index 72a759437..03b22cb09 100755 --- a/devscripts/replace-preamble.sh +++ b/devscripts/replace-preamble.sh @@ -1,3 +1,5 @@ #!/usr/bin/zsh +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + perl -i -p0e "s{\Q$(cat PREAMBLE.py.old)\E}{$(cat devscripts/PREAMBLE.py)}g" dulwich/**/*.py bin/dul* perl -i -p0e "s{\Q$(cat PREAMBLE.c.old)\E}{$(cat devscripts/PREAMBLE.c)}g" dulwich/*.c diff --git a/dulwich/__init__.py b/dulwich/__init__.py index d3e3cf11b..b33ab1820 100644 --- a/dulwich/__init__.py +++ b/dulwich/__init__.py @@ -2,6 +2,7 @@ # Copyright (C) 2007 James Westby # Copyright (C) 2008 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/archive.py b/dulwich/archive.py index 03dcad2fb..9622b4822 100644 --- a/dulwich/archive.py +++ b/dulwich/archive.py @@ -2,6 +2,7 @@ # Copyright (C) 2015 Jonas Haag # Copyright (C) 2015 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/bundle.py b/dulwich/bundle.py index 18f10eb08..fef7f4a34 100644 --- a/dulwich/bundle.py +++ b/dulwich/bundle.py @@ -1,6 +1,7 @@ # bundle.py -- Bundle format support # Copyright (C) 2020 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/cli.py b/dulwich/cli.py index 6711da7e4..1dc907064 100755 --- a/dulwich/cli.py +++ b/dulwich/cli.py @@ -3,6 +3,7 @@ # Copyright (C) 2008-2011 Jelmer Vernooij # vim: expandtab # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/client.py b/dulwich/client.py index 55cd97fba..5fb4b8b2e 100644 --- a/dulwich/client.py +++ b/dulwich/client.py @@ -1,6 +1,7 @@ # client.py -- Implementation of the client side git protocols # Copyright (C) 2008-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/cloud/gcs.py b/dulwich/cloud/gcs.py index aa4d0ffbd..49b3d4dd5 100644 --- a/dulwich/cloud/gcs.py +++ b/dulwich/cloud/gcs.py @@ -1,6 +1,7 @@ # object_store.py -- Object store for git objects # Copyright (C) 2021 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/config.py b/dulwich/config.py index a5a357541..4898a2f69 100644 --- a/dulwich/config.py +++ b/dulwich/config.py @@ -1,6 +1,7 @@ # config.py - Reading and writing Git config files # Copyright (C) 2011-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/contrib/__init__.py b/dulwich/contrib/__init__.py index 4a083036d..4d7f2f222 100644 --- a/dulwich/contrib/__init__.py +++ b/dulwich/contrib/__init__.py @@ -1,6 +1,7 @@ # __init__.py -- Contrib module for Dulwich # Copyright (C) 2014 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/contrib/paramiko_vendor.py b/dulwich/contrib/paramiko_vendor.py index c622e6197..95ccd780f 100644 --- a/dulwich/contrib/paramiko_vendor.py +++ b/dulwich/contrib/paramiko_vendor.py @@ -1,6 +1,7 @@ # paramiko_vendor.py -- paramiko implementation of the SSHVendor interface # Copyright (C) 2013 Aaron O'Mullan # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/contrib/release_robot.py b/dulwich/contrib/release_robot.py index fc3eefdc8..4e74d0146 100644 --- a/dulwich/contrib/release_robot.py +++ b/dulwich/contrib/release_robot.py @@ -1,5 +1,6 @@ # release_robot.py # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/contrib/requests_vendor.py b/dulwich/contrib/requests_vendor.py index b556f3148..5b89a12b3 100644 --- a/dulwich/contrib/requests_vendor.py +++ b/dulwich/contrib/requests_vendor.py @@ -1,6 +1,7 @@ # requests_vendor.py -- requests implementation of the AbstractHttpGitClient interface # Copyright (C) 2022 Eden Shalit # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/contrib/swift.py b/dulwich/contrib/swift.py index ca3314a52..065f9c4b5 100644 --- a/dulwich/contrib/swift.py +++ b/dulwich/contrib/swift.py @@ -3,6 +3,7 @@ # # Author: Fabien Boucher # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/credentials.py b/dulwich/credentials.py index a0c92205b..3347cc725 100644 --- a/dulwich/credentials.py +++ b/dulwich/credentials.py @@ -2,6 +2,7 @@ # Copyright (C) 2022 Daniele Trifirò # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/diff_tree.py b/dulwich/diff_tree.py index 9bf986893..3516d6e8b 100644 --- a/dulwich/diff_tree.py +++ b/dulwich/diff_tree.py @@ -1,6 +1,7 @@ # diff_tree.py -- Utilities for diffing files and trees. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/errors.py b/dulwich/errors.py index 0e270b7ec..247d743ad 100644 --- a/dulwich/errors.py +++ b/dulwich/errors.py @@ -2,6 +2,7 @@ # Copyright (C) 2007 James Westby # Copyright (C) 2009-2012 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/fastexport.py b/dulwich/fastexport.py index 6e591953c..f0dfc95a6 100644 --- a/dulwich/fastexport.py +++ b/dulwich/fastexport.py @@ -1,6 +1,7 @@ # __init__.py -- Fast export/import functionality # Copyright (C) 2010-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/file.py b/dulwich/file.py index 9930918c7..03aed2c9c 100644 --- a/dulwich/file.py +++ b/dulwich/file.py @@ -1,6 +1,7 @@ # file.py -- Safe access to git files # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/graph.py b/dulwich/graph.py index 60200b327..88d23b90e 100644 --- a/dulwich/graph.py +++ b/dulwich/graph.py @@ -1,6 +1,7 @@ # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/greenthreads.py b/dulwich/greenthreads.py index 314e5f271..37153668a 100644 --- a/dulwich/greenthreads.py +++ b/dulwich/greenthreads.py @@ -3,6 +3,7 @@ # # Author: Fabien Boucher # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/hooks.py b/dulwich/hooks.py index b1f56fc57..415ae79d1 100644 --- a/dulwich/hooks.py +++ b/dulwich/hooks.py @@ -1,6 +1,7 @@ # hooks.py -- for dealing with git hooks # Copyright (C) 2012-2013 Jelmer Vernooij and others. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/ignore.py b/dulwich/ignore.py index cafa18572..58dc1131b 100644 --- a/dulwich/ignore.py +++ b/dulwich/ignore.py @@ -1,5 +1,6 @@ # Copyright (C) 2017 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/index.py b/dulwich/index.py index f9845c220..8e6f4aa89 100644 --- a/dulwich/index.py +++ b/dulwich/index.py @@ -1,6 +1,7 @@ # index.py -- File parser/writer for the git index file # Copyright (C) 2008-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/lfs.py b/dulwich/lfs.py index 979336476..8271a2423 100644 --- a/dulwich/lfs.py +++ b/dulwich/lfs.py @@ -1,6 +1,7 @@ # lfs.py -- Implementation of the LFS # Copyright (C) 2020 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/line_ending.py b/dulwich/line_ending.py index adfa91bbb..666290113 100644 --- a/dulwich/line_ending.py +++ b/dulwich/line_ending.py @@ -1,6 +1,7 @@ # line_ending.py -- Line ending conversion functions # Copyright (C) 2018-2018 Boris Feld # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/log_utils.py b/dulwich/log_utils.py index 27201963e..25442e186 100644 --- a/dulwich/log_utils.py +++ b/dulwich/log_utils.py @@ -1,6 +1,7 @@ # log_utils.py -- Logging utilities for Dulwich # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/lru_cache.py b/dulwich/lru_cache.py index 6c2c55b07..eb7702935 100644 --- a/dulwich/lru_cache.py +++ b/dulwich/lru_cache.py @@ -2,6 +2,7 @@ # Copyright (C) 2006, 2008 Canonical Ltd # Copyright (C) 2022 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/mailmap.py b/dulwich/mailmap.py index 951e52476..bf5427b60 100644 --- a/dulwich/mailmap.py +++ b/dulwich/mailmap.py @@ -1,6 +1,7 @@ # mailmap.py -- Mailmap reader # Copyright (C) 2018 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/object_store.py b/dulwich/object_store.py index 6d427e020..805e84a7a 100644 --- a/dulwich/object_store.py +++ b/dulwich/object_store.py @@ -2,6 +2,7 @@ # Copyright (C) 2008-2013 Jelmer Vernooij # and others # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/objects.py b/dulwich/objects.py index 31ffe1e2a..6b54fff0f 100644 --- a/dulwich/objects.py +++ b/dulwich/objects.py @@ -2,6 +2,7 @@ # Copyright (C) 2007 James Westby # Copyright (C) 2008-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/objectspec.py b/dulwich/objectspec.py index 4b19367ca..2430f96e5 100644 --- a/dulwich/objectspec.py +++ b/dulwich/objectspec.py @@ -1,6 +1,7 @@ # objectspec.py -- Object specification # Copyright (C) 2014 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/pack.py b/dulwich/pack.py index fc810250a..423945982 100644 --- a/dulwich/pack.py +++ b/dulwich/pack.py @@ -2,6 +2,7 @@ # Copyright (C) 2007 James Westby # Copyright (C) 2008-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/patch.py b/dulwich/patch.py index 07ef8e0ea..c7975b4c0 100644 --- a/dulwich/patch.py +++ b/dulwich/patch.py @@ -1,6 +1,7 @@ # patch.py -- For dealing with packed-style patches. # Copyright (C) 2009-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/porcelain.py b/dulwich/porcelain.py index 44a817ff8..0cb4099e2 100644 --- a/dulwich/porcelain.py +++ b/dulwich/porcelain.py @@ -1,6 +1,7 @@ # porcelain.py -- Porcelain-like layer on top of Dulwich # Copyright (C) 2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/protocol.py b/dulwich/protocol.py index 4fc1fc612..29839115f 100644 --- a/dulwich/protocol.py +++ b/dulwich/protocol.py @@ -2,6 +2,7 @@ # Copyright (C) 2008 John Carr # Copyright (C) 2008-2012 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/reflog.py b/dulwich/reflog.py index 973da34aa..9346f28d8 100644 --- a/dulwich/reflog.py +++ b/dulwich/reflog.py @@ -1,6 +1,7 @@ # reflog.py -- Parsing and writing reflog files # Copyright (C) 2015 Jelmer Vernooij and others. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/refs.py b/dulwich/refs.py index 97ce4e8a7..0ba605071 100644 --- a/dulwich/refs.py +++ b/dulwich/refs.py @@ -1,6 +1,7 @@ # refs.py -- For dealing with git refs # Copyright (C) 2008-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/repo.py b/dulwich/repo.py index f856db320..46285399f 100644 --- a/dulwich/repo.py +++ b/dulwich/repo.py @@ -2,6 +2,7 @@ # Copyright (C) 2007 James Westby # Copyright (C) 2008-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/server.py b/dulwich/server.py index 1cab956ce..a0d06dd5f 100644 --- a/dulwich/server.py +++ b/dulwich/server.py @@ -2,6 +2,7 @@ # Copyright (C) 2008 John Carr # Copyright(C) 2011-2012 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/stash.py b/dulwich/stash.py index aeda4bf20..3bc688fa8 100644 --- a/dulwich/stash.py +++ b/dulwich/stash.py @@ -1,6 +1,7 @@ # stash.py # Copyright (C) 2018 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/submodule.py b/dulwich/submodule.py index 161d516f1..6004357a2 100644 --- a/dulwich/submodule.py +++ b/dulwich/submodule.py @@ -1,6 +1,7 @@ # config.py - Reading and writing Git config files # Copyright (C) 2011-2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/tests/__init__.py b/dulwich/tests/__init__.py index 99da26a53..a1f6b7006 100644 --- a/dulwich/tests/__init__.py +++ b/dulwich/tests/__init__.py @@ -1,6 +1,7 @@ # __init__.py -- The tests for dulwich # Copyright (C) 2024 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/tests/test_object_store.py b/dulwich/tests/test_object_store.py index 7d1ebed2d..b1209e45c 100644 --- a/dulwich/tests/test_object_store.py +++ b/dulwich/tests/test_object_store.py @@ -1,6 +1,7 @@ # test_object_store.py -- tests for object_store.py # Copyright (C) 2008 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/tests/utils.py b/dulwich/tests/utils.py index b590577d6..4228b8e9b 100644 --- a/dulwich/tests/utils.py +++ b/dulwich/tests/utils.py @@ -1,6 +1,7 @@ # utils.py -- Test utilities for Dulwich. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/walk.py b/dulwich/walk.py index 9725e598f..1ddae353d 100644 --- a/dulwich/walk.py +++ b/dulwich/walk.py @@ -1,6 +1,7 @@ # walk.py -- General implementation of walking commits and their contents. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/dulwich/web.py b/dulwich/web.py index 77a7d45bc..0db84557f 100644 --- a/dulwich/web.py +++ b/dulwich/web.py @@ -2,6 +2,7 @@ # Copyright (C) 2010 Google, Inc. # Copyright (C) 2012 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/examples/clone.py b/examples/clone.py index 33e8531ff..33085af62 100644 --- a/examples/clone.py +++ b/examples/clone.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + """Clone. This trivial script demonstrates how to clone or lock a remote repository. diff --git a/examples/config.py b/examples/config.py index 8bc859f68..4414b8f38 100644 --- a/examples/config.py +++ b/examples/config.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + # Read the config file for a git repository. # # Example usage: diff --git a/examples/diff.py b/examples/diff.py index 681bb39fb..31cd867cd 100644 --- a/examples/diff.py +++ b/examples/diff.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + # This trivial script demonstrates how to extract the unified diff for a single # commit in a local repository. # diff --git a/examples/gcs.py b/examples/gcs.py index beb3a9a73..ec70607f5 100644 --- a/examples/gcs.py +++ b/examples/gcs.py @@ -1,4 +1,5 @@ #!/usr/bin/python3 +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later import tempfile diff --git a/examples/latest_change.py b/examples/latest_change.py index 55051109c..fdf96c5f3 100644 --- a/examples/latest_change.py +++ b/examples/latest_change.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + # Example printing the last author of a specified file import sys diff --git a/examples/memoryrepo.py b/examples/memoryrepo.py index ca44bb5b3..0a4657f48 100755 --- a/examples/memoryrepo.py +++ b/examples/memoryrepo.py @@ -1,4 +1,6 @@ #!/usr/bin/python +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + # This script creates a clone of a remote repository in local memory, # then adds a single file and pushes the result back. # diff --git a/examples/rename-branch.py b/examples/rename-branch.py index 2e3000b90..6d6872b20 100644 --- a/examples/rename-branch.py +++ b/examples/rename-branch.py @@ -1,4 +1,5 @@ #!/usr/bin/python3 +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later import argparse diff --git a/fuzzing/fuzz-targets/fuzz_bundle.py b/fuzzing/fuzz-targets/fuzz_bundle.py index fa0dcd8bf..55407ecaf 100644 --- a/fuzzing/fuzz-targets/fuzz_bundle.py +++ b/fuzzing/fuzz-targets/fuzz_bundle.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + import sys from io import BytesIO from typing import Optional diff --git a/fuzzing/fuzz-targets/fuzz_configfile.py b/fuzzing/fuzz-targets/fuzz_configfile.py index 1460aa57c..af675f7d6 100644 --- a/fuzzing/fuzz-targets/fuzz_configfile.py +++ b/fuzzing/fuzz-targets/fuzz_configfile.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + import sys from io import BytesIO from typing import Optional diff --git a/fuzzing/fuzz-targets/fuzz_object_store.py b/fuzzing/fuzz-targets/fuzz_object_store.py index 8fcbe8907..67400775a 100644 --- a/fuzzing/fuzz-targets/fuzz_object_store.py +++ b/fuzzing/fuzz-targets/fuzz_object_store.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + import stat import sys from io import BytesIO diff --git a/fuzzing/fuzz-targets/fuzz_repo.py b/fuzzing/fuzz-targets/fuzz_repo.py index 4c0a52ea4..47ab79c76 100644 --- a/fuzzing/fuzz-targets/fuzz_repo.py +++ b/fuzzing/fuzz-targets/fuzz_repo.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + import os import sys import tempfile diff --git a/fuzzing/fuzz-targets/test_utils.py b/fuzzing/fuzz-targets/test_utils.py index 841450fde..d0162204b 100644 --- a/fuzzing/fuzz-targets/test_utils.py +++ b/fuzzing/fuzz-targets/test_utils.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + import atheris # pragma: no cover diff --git a/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh b/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh index 177c6ff0b..72e86ac62 100755 --- a/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh +++ b/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later set -euo pipefail diff --git a/setup.py b/setup.py index 07381eee8..41eda944e 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/python3 # Setup file for dulwich # Copyright (C) 2008-2022 Jelmer Vernooij +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later import os import sys diff --git a/tests/__init__.py b/tests/__init__.py index d4bd669bb..0c50e5555 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,7 @@ # __init__.py -- The tests for dulwich # Copyright (C) 2007 James Westby # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/__init__.py b/tests/compat/__init__.py index 588937d5b..41eb0a1df 100644 --- a/tests/compat/__init__.py +++ b/tests/compat/__init__.py @@ -1,6 +1,7 @@ # __init__.py -- Compatibility tests for dulwich # Copyright (C) 2010 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/server_utils.py b/tests/compat/server_utils.py index 40ecb1c2f..e50e6c431 100644 --- a/tests/compat/server_utils.py +++ b/tests/compat/server_utils.py @@ -1,6 +1,7 @@ # server_utils.py -- Git server compatibility utilities # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_client.py b/tests/compat/test_client.py index 788a4232c..f8416df02 100644 --- a/tests/compat/test_client.py +++ b/tests/compat/test_client.py @@ -1,6 +1,7 @@ # test_client.py -- Compatibility tests for git client. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_pack.py b/tests/compat/test_pack.py index 7cf25add7..092fe939e 100644 --- a/tests/compat/test_pack.py +++ b/tests/compat/test_pack.py @@ -1,6 +1,7 @@ # test_pack.py -- Compatibility tests for git packs. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_patch.py b/tests/compat/test_patch.py index 77e9f58a5..1fc1a60e3 100644 --- a/tests/compat/test_patch.py +++ b/tests/compat/test_patch.py @@ -1,6 +1,7 @@ # test_patch.py -- test patch compatibility with CGit # Copyright (C) 2019 Boris Feld # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_porcelain.py b/tests/compat/test_porcelain.py index a357642f7..976c43399 100644 --- a/tests/compat/test_porcelain.py +++ b/tests/compat/test_porcelain.py @@ -1,6 +1,7 @@ # test_porcelain .py -- Tests for dulwich.porcelain/CGit compatibility # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_repository.py b/tests/compat/test_repository.py index a7d5238dd..d71017413 100644 --- a/tests/compat/test_repository.py +++ b/tests/compat/test_repository.py @@ -1,6 +1,7 @@ # test_repo.py -- Git repo compatibility tests # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_server.py b/tests/compat/test_server.py index 4f8582c49..155067c68 100644 --- a/tests/compat/test_server.py +++ b/tests/compat/test_server.py @@ -1,6 +1,7 @@ # test_server.py -- Compatibility tests for git server. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_utils.py b/tests/compat/test_utils.py index 320cbe5e6..04758597a 100644 --- a/tests/compat/test_utils.py +++ b/tests/compat/test_utils.py @@ -1,6 +1,7 @@ # test_utils.py -- Tests for git compatibility utilities # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/test_web.py b/tests/compat/test_web.py index 97fc82c87..757cf87bb 100644 --- a/tests/compat/test_web.py +++ b/tests/compat/test_web.py @@ -1,6 +1,7 @@ # test_web.py -- Compatibility tests for the git web server. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/compat/utils.py b/tests/compat/utils.py index bb430fce4..de913093e 100644 --- a/tests/compat/utils.py +++ b/tests/compat/utils.py @@ -1,6 +1,7 @@ # utils.py -- Git compatibility utilities # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/contrib/__init__.py b/tests/contrib/__init__.py index a67c44cb1..0b00ea9e5 100644 --- a/tests/contrib/__init__.py +++ b/tests/contrib/__init__.py @@ -1,6 +1,7 @@ # __init__.py -- Contrib module for Dulwich # Copyright (C) 2014 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/contrib/test_paramiko_vendor.py b/tests/contrib/test_paramiko_vendor.py index d552a874f..96403846d 100644 --- a/tests/contrib/test_paramiko_vendor.py +++ b/tests/contrib/test_paramiko_vendor.py @@ -1,5 +1,6 @@ # test_paramiko_vendor.py # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/contrib/test_release_robot.py b/tests/contrib/test_release_robot.py index 4a97249d3..da3a3a0af 100644 --- a/tests/contrib/test_release_robot.py +++ b/tests/contrib/test_release_robot.py @@ -1,5 +1,6 @@ # release_robot.py # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/contrib/test_swift.py b/tests/contrib/test_swift.py index 1b2555380..d5ec654a5 100644 --- a/tests/contrib/test_swift.py +++ b/tests/contrib/test_swift.py @@ -3,6 +3,7 @@ # # Author: Fabien Boucher # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/contrib/test_swift_smoke.py b/tests/contrib/test_swift_smoke.py index 130f4ba33..95203ae99 100644 --- a/tests/contrib/test_swift_smoke.py +++ b/tests/contrib/test_swift_smoke.py @@ -3,6 +3,7 @@ # # Author: Fabien Boucher # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_archive.py b/tests/test_archive.py index 5cc277d39..9abc93d74 100644 --- a/tests/test_archive.py +++ b/tests/test_archive.py @@ -1,6 +1,7 @@ # test_archive.py -- tests for archive # Copyright (C) 2015 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_blackbox.py b/tests/test_blackbox.py index 484c65186..c068e04dc 100644 --- a/tests/test_blackbox.py +++ b/tests/test_blackbox.py @@ -1,6 +1,7 @@ # test_blackbox.py -- blackbox tests # Copyright (C) 2010 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_bundle.py b/tests/test_bundle.py index 5dcf4a92d..c40a4a74a 100644 --- a/tests/test_bundle.py +++ b/tests/test_bundle.py @@ -1,6 +1,7 @@ # test_bundle.py -- tests for bundle # Copyright (C) 2020 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_client.py b/tests/test_client.py index 12ce451c1..015545908 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,6 +1,7 @@ # test_client.py -- Tests for the git protocol, client side # Copyright (C) 2009 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_config.py b/tests/test_config.py index 1fc4de872..c0cf49e4e 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,6 +1,7 @@ # test_config.py -- Tests for reading and writing configuration files # Copyright (C) 2011 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_credentials.py b/tests/test_credentials.py index 5afa0b014..5673aec74 100644 --- a/tests/test_credentials.py +++ b/tests/test_credentials.py @@ -2,6 +2,7 @@ # Copyright (C) 2022 Daniele Trifirò # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_diff_tree.py b/tests/test_diff_tree.py index f099f499f..b02bb1e2f 100644 --- a/tests/test_diff_tree.py +++ b/tests/test_diff_tree.py @@ -1,6 +1,7 @@ # test_diff_tree.py -- Tests for file and tree diff utilities. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_fastexport.py b/tests/test_fastexport.py index 5e1a40941..eedd6f772 100644 --- a/tests/test_fastexport.py +++ b/tests/test_fastexport.py @@ -1,6 +1,7 @@ # test_fastexport.py -- Fast export/import functionality # Copyright (C) 2010 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_file.py b/tests/test_file.py index 435b807f1..bb02253a9 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -1,6 +1,7 @@ # test_file.py -- Test for git files # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_grafts.py b/tests/test_grafts.py index ce2fcdf7e..7862b5f45 100644 --- a/tests/test_grafts.py +++ b/tests/test_grafts.py @@ -1,5 +1,6 @@ # test_grafts.py -- Tests for graftpoints # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_graph.py b/tests/test_graph.py index 906f96ef1..0cffe46ca 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -1,6 +1,7 @@ # test_graph.py -- Tests for merge base # Copyright (c) 2020 Kevin B. Hendricks, Stratford Ontario Canada # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_greenthreads.py b/tests/test_greenthreads.py index 120fda07d..fbd1cb845 100644 --- a/tests/test_greenthreads.py +++ b/tests/test_greenthreads.py @@ -3,6 +3,7 @@ # # Author: Fabien Boucher # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_hooks.py b/tests/test_hooks.py index 8d0c8843f..d00ade01f 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -1,5 +1,6 @@ # test_hooks.py -- Tests for executing hooks # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_ignore.py b/tests/test_ignore.py index d5165a990..d3d245e22 100644 --- a/tests/test_ignore.py +++ b/tests/test_ignore.py @@ -1,6 +1,7 @@ # test_ignore.py -- Tests for ignore files. # Copyright (C) 2017 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_index.py b/tests/test_index.py index cffa1a58d..e8684ca9b 100644 --- a/tests/test_index.py +++ b/tests/test_index.py @@ -1,6 +1,7 @@ # test_index.py -- Tests for the git index # Copyright (C) 2008-2009 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_lfs.py b/tests/test_lfs.py index 1a045488d..13c50b1fe 100644 --- a/tests/test_lfs.py +++ b/tests/test_lfs.py @@ -1,6 +1,7 @@ # test_lfs.py -- tests for LFS # Copyright (C) 2020 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_line_ending.py b/tests/test_line_ending.py index d3ad44382..a40da76d0 100644 --- a/tests/test_line_ending.py +++ b/tests/test_line_ending.py @@ -1,6 +1,7 @@ # test_line_ending.py -- Tests for the line ending functions # Copyright (C) 2018-2019 Boris Feld # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_lru_cache.py b/tests/test_lru_cache.py index dc2f8df52..cb7004a1b 100644 --- a/tests/test_lru_cache.py +++ b/tests/test_lru_cache.py @@ -1,5 +1,6 @@ # Copyright (C) 2006, 2008 Canonical Ltd # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_mailmap.py b/tests/test_mailmap.py index c032d1d9d..8b2ad2948 100644 --- a/tests/test_mailmap.py +++ b/tests/test_mailmap.py @@ -1,6 +1,7 @@ # test_mailmap.py -- Tests for dulwich.mailmap # Copyright (C) 2018 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_missing_obj_finder.py b/tests/test_missing_obj_finder.py index 6faee7901..e11f76935 100644 --- a/tests/test_missing_obj_finder.py +++ b/tests/test_missing_obj_finder.py @@ -1,6 +1,7 @@ # test_missing_obj_finder.py -- tests for MissingObjectFinder # Copyright (C) 2012 syntevo GmbH # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_object_store.py b/tests/test_object_store.py index a97c206aa..978d07af8 100644 --- a/tests/test_object_store.py +++ b/tests/test_object_store.py @@ -1,6 +1,7 @@ # test_object_store.py -- tests for object_store.py # Copyright (C) 2008 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_objects.py b/tests/test_objects.py index 14d6bbb3e..a9c4a5565 100644 --- a/tests/test_objects.py +++ b/tests/test_objects.py @@ -1,6 +1,7 @@ # test_objects.py -- tests for objects.py # Copyright (C) 2007 James Westby # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_objectspec.py b/tests/test_objectspec.py index b51c613de..2495f4865 100644 --- a/tests/test_objectspec.py +++ b/tests/test_objectspec.py @@ -1,6 +1,7 @@ # test_objectspec.py -- tests for objectspec.py # Copyright (C) 2014 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_pack.py b/tests/test_pack.py index 6fefc5ebe..dee62d7f8 100644 --- a/tests/test_pack.py +++ b/tests/test_pack.py @@ -2,6 +2,7 @@ # Copyright (C) 2007 James Westby # Copyright (C) 2008 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_patch.py b/tests/test_patch.py index 65db9505e..ad2c38790 100644 --- a/tests/test_patch.py +++ b/tests/test_patch.py @@ -1,6 +1,7 @@ # test_patch.py -- tests for patch.py # Copyright (C) 2010 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_porcelain.py b/tests/test_porcelain.py index 5b7db0c8d..008b03612 100644 --- a/tests/test_porcelain.py +++ b/tests/test_porcelain.py @@ -1,6 +1,7 @@ # test_porcelain.py -- porcelain tests # Copyright (C) 2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_protocol.py b/tests/test_protocol.py index c76a4be3a..c38a52fa5 100644 --- a/tests/test_protocol.py +++ b/tests/test_protocol.py @@ -1,6 +1,7 @@ # test_protocol.py -- Tests for the git protocol # Copyright (C) 2009 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_reflog.py b/tests/test_reflog.py index 9aa48dee0..246e9a8c8 100644 --- a/tests/test_reflog.py +++ b/tests/test_reflog.py @@ -1,6 +1,7 @@ # test_reflog.py -- tests for reflog.py # Copyright (C) 2015 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_refs.py b/tests/test_refs.py index c30740187..e9e0ef5cb 100644 --- a/tests/test_refs.py +++ b/tests/test_refs.py @@ -1,6 +1,7 @@ # test_refs.py -- tests for refs.py # Copyright (C) 2013 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_repository.py b/tests/test_repository.py index d2c520773..f5bc3c3f2 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -1,6 +1,7 @@ # test_repository.py -- tests for repository.py # Copyright (C) 2007 James Westby # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_server.py b/tests/test_server.py index c11b9b746..b6d138b40 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -1,6 +1,7 @@ # test_server.py -- Tests for the git server # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_stash.py b/tests/test_stash.py index 04de27bc9..a7601118d 100644 --- a/tests/test_stash.py +++ b/tests/test_stash.py @@ -1,6 +1,7 @@ # test_stash.py -- tests for stash # Copyright (C) 2018 Jelmer Vernooij # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_utils.py b/tests/test_utils.py index 32b45e2d2..c1d0e3114 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,6 +1,7 @@ # test_utils.py -- Tests for git test utilities. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_walk.py b/tests/test_walk.py index 891c29294..00de02120 100644 --- a/tests/test_walk.py +++ b/tests/test_walk.py @@ -1,6 +1,7 @@ # test_walk.py -- Tests for commit walking functionality. # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or diff --git a/tests/test_web.py b/tests/test_web.py index e2a6c9702..9603aee4d 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -1,6 +1,7 @@ # test_web.py -- Tests for the git HTTP server # Copyright (C) 2010 Google, Inc. # +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or