+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.
from pygnulib.enums import CopyAction
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
from .GLMakefileTable import GLMakefileTable
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
from . import constants
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
from .GLConfig import GLConfig
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
from .GLEmiter import GLEmiter
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
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
#===============================================================================
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.'''
from .GLConfig import GLConfig
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
from .GLFileSystem import GLFileSystem
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
from .GLEmiter import GLEmiter
-#===============================================================================
-# Define module information
-#===============================================================================
-__author__ = constants.__author__
-__license__ = constants.__license__
-__copyright__ = constants.__copyright__
-
-
#===============================================================================
# Define global constants
#===============================================================================
# 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.'
#===============================================================================