]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Remove duplicate per-module definitions.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 20 Apr 2024 06:42:24 +0000 (23:42 -0700)
committerBruno Haible <bruno@clisp.org>
Sat, 20 Apr 2024 21:59:29 +0000 (23:59 +0200)
* pygnulib/constants.py: Remove duplicate __authors__, __license__, and
__copyright__ definitions.
* pygnulib/GLInfo.py: Use the value of __authors__ and __copyright__
from __init__.py for output.
* pygnulib/*.py: Remove unused references to the constant.py
definitions.

ChangeLog
pygnulib/GLConfig.py
pygnulib/GLEmiter.py
pygnulib/GLError.py
pygnulib/GLFileSystem.py
pygnulib/GLImport.py
pygnulib/GLInfo.py
pygnulib/GLMakefileTable.py
pygnulib/GLModuleSystem.py
pygnulib/GLTestDir.py
pygnulib/constants.py

index da5c3833a28e29c38642a3fd73ea9384431d2e02..cbc2a83f75884496294e6e274d013b20a71c0404 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-04-20  Collin Funk  <collin.funk1@gmail.com>
+
+       gnulib-tool.py: Remove duplicate per-module definitions.
+       * pygnulib/constants.py: Remove duplicate __authors__, __license__, and
+       __copyright__ definitions.
+       * pygnulib/GLInfo.py: Use the value of __authors__ and __copyright__
+       from __init__.py for output.
+       * pygnulib/*.py: Remove unused references to the constant.py
+       definitions.
+
 2024-04-20  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool.py: Fix a bug in removed / added files handling.
index 9a4f4bfe6803d8d99de23d8be65e757a7534b36c..19611b823c830ffd11deaaef844c5c7cbe1b5133 100644 (file)
@@ -27,14 +27,6 @@ from .GLError import GLError
 from pygnulib.enums import CopyAction
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index ff4e3027d6e263c91527d43f801163867af3bff8..91077a03253f3cd50d8881b17e186ed349edac20 100644 (file)
@@ -30,14 +30,6 @@ from .GLModuleSystem import GLModuleTable
 from .GLMakefileTable import GLMakefileTable
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index a990c382b12e1d80fc4cb9c8ce98e7578c5dc255..47d1e97fdc68065735c6ef7f2e60756e3a23c315 100644 (file)
@@ -22,14 +22,6 @@ import os
 from . import constants
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index 4bd8b1f386783d34e051c0de4af5920a616dcaa2..1cad7f5badab2845a1282b70731590bbd54ffb6a 100644 (file)
@@ -28,14 +28,6 @@ from .GLError import GLError
 from .GLConfig import GLConfig
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index 59c7295cbc7f2e19e1faeaec107d761067a3f0ad..0863ba530eeaa781bd3256a573595a01a12cc9e9 100644 (file)
@@ -32,14 +32,6 @@ from .GLMakefileTable import GLMakefileTable
 from .GLEmiter import GLEmiter
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index c7de90376a1637fa398576ac4f0e4aa5da7f6d18..37d8560af01a15a4c817795493050f8f396924ea 100644 (file)
@@ -21,17 +21,10 @@ from __future__ import annotations
 import os
 import re
 import subprocess as sp
+from pygnulib import __author__, __copyright__
 from . import constants
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
@@ -125,7 +118,7 @@ class GLInfo:
 
     def copyright_range(self) -> str:
         '''Returns a formatted copyright string showing a year range.'''
-        return f'Copyright (C) {constants.__copyright__}'
+        return f'Copyright (C) {__copyright__}'
 
     def usage(self) -> str:
         '''Show help message.'''
index 8df0822f00fcb33e21a278b17241390bd18ff42c..a38276c6656640887e8e5b3f3a43821a1b0bf5e6 100644 (file)
@@ -23,14 +23,6 @@ from . import constants
 from .GLConfig import GLConfig
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index 6d5e87437550b3f48c74f76ba559f6db7092d0ad..301592a79d22c005474951f1bce5f4540af251ae 100644 (file)
@@ -30,14 +30,6 @@ from .GLConfig import GLConfig
 from .GLFileSystem import GLFileSystem
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index 6f74453f29a3b3531bb9fbc900eb4ef8a99ef947..8bbef2a311558c12a212dfeb112fa95f7bce3124 100644 (file)
@@ -35,14 +35,6 @@ from .GLMakefileTable import GLMakefileTable
 from .GLEmiter import GLEmiter
 
 
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
 #===============================================================================
 # Define global constants
 #===============================================================================
index 0b6a606a012adb37f2d54eefcb28fab239013b7a..4890e2129f3df84168c5ee1391dbf87a40266990 100644 (file)
@@ -34,16 +34,6 @@ import __main__ as interpreter
 # Define module information
 #===============================================================================
 __all__ = []
-__author__ = \
-    [
-        'Bruno Haible',
-        'Paul Eggert',
-        'Simon Josefsson',
-        'Dmitry Selyutin',
-        'Collin Funk',
-    ]
-__license__ = 'GNU GPLv3+'
-__copyright__ = '2002-2024 Free Software Foundation, Inc.'
 
 
 #===============================================================================