# HG changeset patch # User Franz Glasner # Date 1743010943 -3600 # Node ID 48430941c18cdb0f37fd9d75744491ee0fd52a1f # Parent 0cabc543950573fc60055d17c7ed319028905ef9 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). diff -r 0cabc5439505 -r 48430941c18c LICENSE.txt --- 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 diff -r 0cabc5439505 -r 48430941c18c README.txt --- 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 . :ID: @(#) $HGid$ Pure Python implementations of some (Unix) coreutils and some additional diff -r 0cabc5439505 -r 48430941c18c cutils/__init__.py --- 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 ` for details. If you cannot find LICENSE.txt see - + . :ID: @(#) $HGid$ """ diff -r 0cabc5439505 -r 48430941c18c cutils/dos2unix.py --- 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`. diff -r 0cabc5439505 -r 48430941c18c cutils/genpwd.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/shasum.py --- 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`. diff -r 0cabc5439505 -r 48430941c18c cutils/treesum.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/__init__.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/cm.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/constants.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/crc32.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/digest.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/fnmatch.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/glob.py --- 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. diff -r 0cabc5439505 -r 48430941c18c cutils/util/walk.py --- 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`. diff -r 0cabc5439505 -r 48430941c18c dos2unix.py --- 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`. diff -r 0cabc5439505 -r 48430941c18c genpwd.py --- 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. diff -r 0cabc5439505 -r 48430941c18c shasum.py --- 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`. diff -r 0cabc5439505 -r 48430941c18c treesum.py --- 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.