changeset 323:48430941c18c

Adopt copyright and license wordings from https://reuse.software/faq/. While there normalize copyright years for every file to start with the file's addition to the project (i.e. with the year of file creation).
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 26 Mar 2025 18:42:23 +0100
parents 0cabc5439505
children 285ee01dbb39
files LICENSE.txt README.txt cutils/__init__.py cutils/dos2unix.py cutils/genpwd.py cutils/shasum.py cutils/treesum.py cutils/util/__init__.py cutils/util/cm.py cutils/util/constants.py cutils/util/crc32.py cutils/util/digest.py cutils/util/fnmatch.py cutils/util/glob.py cutils/util/walk.py dos2unix.py genpwd.py shasum.py treesum.py
diffstat 19 files changed, 45 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- a/LICENSE.txt	Wed Mar 26 13:00:40 2025 +0100
+++ b/LICENSE.txt	Wed Mar 26 18:42:23 2025 +0100
@@ -1,4 +1,5 @@
-Copyright (c) 2020-2025 Franz Glasner
+BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)
+======================================================
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are
@@ -35,10 +36,6 @@
 crcmod/crcmod2 -- vendored in cutils.crcmod -- MIT License
 ----------------------------------------------------------
 
-Copyright (c) 2010  Raymond L. Buvel
-Copyright (c) 2010  Craig McQueen
-Copyright (c) 2025  Franz Glasner
-
 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
--- a/README.txt	Wed Mar 26 13:00:40 2025 +0100
+++ b/README.txt	Wed Mar 26 18:42:23 2025 +0100
@@ -5,8 +5,10 @@
 :Author:    Franz Glasner
 :Version:   0.7
 :Date:      2025-03-10
-:Copyright: (c) 2020-2025 Franz Glasner
-:License:   BSD 3-Clause "New" or "Revised" License
+:Copyright: © 2020-2025 Franz Glasner.
+:License:   BSD 3-Clause "New" or "Revised" License.
+            See LICENSE.txt for details. If you cannot find LICENSE.txt
+	    see <https://opensource.org/licenses/BSD-3-Clause>.
 :ID:        @(#) $HGid$
 
 Pure Python implementations of some (Unix) coreutils and some additional
--- a/cutils/__init__.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/__init__.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,11 +1,15 @@
 # -*- coding: utf-8 -*-
+# :-
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
+# :-
 r"""
 :Author:    Franz Glasner
-:Copyright: (c) 2020-2025 Franz Glasner
+:Copyright: © 2020-2025 Franz Glasner
 :License:   BSD 3-Clause "New" or "Revised" License.
             See :ref:`LICENSE.txt <license>` for details.
             If you cannot find LICENSE.txt see
-            <https://opensource.org/licenses/BSD-3-Clause>
+            <https://opensource.org/licenses/BSD-3-Clause>.
 :ID:        @(#) $HGid$
 
 """
--- a/cutils/dos2unix.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/dos2unix.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Pure Python implementation of `dos2unix`.
 
--- a/cutils/genpwd.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/genpwd.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,8 +1,8 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2018 Franz Glasner
-# :Copyright: (c) 2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2018 Franz Glasner
+# SPDX-FileCopyrightText: © 2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""A simple password generator to generate random passwords from selected
 character repertoires.
--- a/cutils/shasum.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/shasum.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Pure Python implementation of `shasum`.
 
--- a/cutils/treesum.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/treesum.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Generate and verify checksums for directory trees.
 
--- a/cutils/util/__init__.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/__init__.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Utility package.
 
--- a/cutils/util/cm.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/cm.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2024-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Context manager extensions and compatibility.
 
--- a/cutils/util/constants.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/constants.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2024-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Common constants and compatibility definitions.
 
--- a/cutils/util/crc32.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/crc32.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Wrap :func:`zlib.crc32` into a :mod:`hashlib` compatible interface.
 
--- a/cutils/util/digest.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/digest.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Utility sub-module to implement a file and stream digest computations.
 
--- a/cutils/util/fnmatch.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/fnmatch.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""File name matching.
 
--- a/cutils/util/glob.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/glob.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Glob handling.
 
--- a/cutils/util/walk.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/cutils/util/walk.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Utility sub-module to implement a heavily customized :func:`os.walk`.
 
--- a/dos2unix.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/dos2unix.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Pure Python implementation of `dos2unix`.
 
--- a/genpwd.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/genpwd.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Pure Python implementation of a directory tree checksum.
 
--- a/shasum.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/shasum.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2020-2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Pure Python implementation of `shasum`.
 
--- a/treesum.py	Wed Mar 26 13:00:40 2025 +0100
+++ b/treesum.py	Wed Mar 26 18:42:23 2025 +0100
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 # :-
-# :Copyright: (c) 2020-2025 Franz Glasner
-# :License:   BSD-3-Clause
+# SPDX-FileCopyrightText: © 2025 Franz Glasner
+# SPDX-License-Identifier: BSD-3-Clause
 # :-
 r"""Pure Python implementation of a directory tree checksum.