Unify license, copyright and author information
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 3 Aug 2018 13:27:44 +0000 (15:27 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 3 Aug 2018 13:27:44 +0000 (15:27 +0200)
29 files changed:
check.sh
make_dist.sh
run_unittests.sh
setup.py
src/arnied.py
src/buffers.py
src/call_helpers.py
src/cnfvar.py
src/file_helpers.py
src/follow.py
src/iter_helpers.py
src/log_helpers.py
src/log_read.py
src/test_helpers.py
src/text_helpers.py
src/type_helpers.py
src/zip_stream.py
templates/template.py
templates/test_template.py
test/disc_filler_test.py
test/test_buffer.py
test/test_call_helpers.py
test/test_cnfvar.py
test/test_file_helpers.py
test/test_follow.py
test/test_log_read.py
test/test_test_helper.py
test/test_text_helpers.py
test/test_type_helpers.py

index b3fe595..6bf106b 100755 (executable)
--- a/check.sh
+++ b/check.sh
@@ -17,6 +17,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 # check.sh
 # check a python file using pylint and pep8
index ce87167..9cbc60e 100755 (executable)
@@ -1,5 +1,25 @@
 #!/bin/sh
 
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
+
 echo create rpm
 python3 setup.py bdist_rpm --packager=Intra2net --group=Intra2net --vendor="Intra2net AG"
 
index 10d6501..5d54a24 100755 (executable)
@@ -2,4 +2,24 @@
 
 # run unittest suite using python2 and python3
 
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
+
 python2 -m unittest discover test && python3 -m unittest discover test
index 367306c..79c2766 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,25 @@
 #!/usr/bin/env python
 
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
+
 from distutils.core import setup
 
 setup(name='pyi2ncommon',
index 38132f0..32c0f03 100644 (file)
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Interface to arnied
 
 only a stub; should at least contain a set_cnf and get_cnf
-
-.. codeauthor:: Intra2net
 """
 
 def set_cnf(var_name, value):
index 8e461ca..d0588d2 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """
 buffers.py: buffers of various shapes, sizes and functionalities
@@ -24,8 +26,6 @@ Featuring::
 * CircularBuffer
 * LogarithmicBuffer: saves only last N items, and after that less and less so
 *                    very few old items are kept
-
-.. codeauthor:: Intra2net
 """
 
 class CircularBuffer:
index 1739d5f..4e945e1 100644 (file)
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Helpers for calling commands, capture their output, return result code
 
 Subprocess library just does not provide all the simplicity we would like
 
 Stay python2 compatible --> no timeouts
-
-.. codeauthor:: Intra2net
 """
 
 from subprocess import Popen, PIPE
index d804fd9..af95c04 100644 (file)
@@ -17,6 +17,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """
 
index 12449f0..65a8352 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Helper functions and classes to deal with files and dirs and stuff
 
@@ -45,8 +47,6 @@ What I found out on the way about filesystems:
           have full mount point info -> remove NOT_REAL_FILESYSTEMS_SPEC
 
 .. todo:: check what can be replaced by module psutil
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index 167ba0f..314dcf3 100644 (file)
@@ -17,6 +17,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """
 follow process output, log files and pipes using select and poll
@@ -91,8 +93,6 @@ NOT possible::
 
   len(my_follower)
   Follower(my_file, my_file) #  (twice the same)
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index e24b68a..f02bef7 100644 (file)
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Helper functions with iterators -- functional program is great!
 
 Currently, recipes from python itertools docu (:py:mod:`itertools`) that have
 been deemed useful
-
-.. codeauthor:: Intra2net
 """
 
 import itertools as it
index b3b76d5..3163971 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Helpers for logging; featuring:
 
@@ -37,8 +39,6 @@ Further ideas: ::
 .. todo:: think about how to allow different levels per handler
 .. todo:: do not limit logs by line numbers but by disc size? Warn when at 50%,
          75%, 90%, 99% of limit?
-
-.. codeauthor:: Intra2net
 """
 
 import logging
index b0bb872..02bf1c2 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Iterative reading of log files
 
@@ -32,8 +34,6 @@ it line-wise as is normal for log files
 like date, time, module name, urgency and message.
 
 .. todo:: auto-detect log line layout
-
-.. codeauthor:: Intra2net
 """
 
 import os
index 58bef0e..4bc4b48 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Helpers for developing quick test scripts
 
@@ -23,8 +25,6 @@ tests
 
 .. todo:: Find out why fs not in REAL_FILESYSTEMS generate warnings so quickly
           even if they are still empty
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index 36de9e7..987e56f 100644 (file)
@@ -1,4 +1,22 @@
-#!/usr/bin/env python3
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Functions for printing colored text using ANSI escape sequences
 
@@ -15,8 +33,6 @@ end-of-color or end-of-style escape sequences instead of 0 (reset-everything).
 References:
 * http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
 * https://en.wikipedia.org/wiki/ANSI_escape_code
-
-.. codeauthor:: Intra2net AG <info@intra2net>
 """
 
 from __future__ import print_function
index ae4e0ce..123f5a4 100644 (file)
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """
 Helpers for type checking and conversion, like isstr(x), is_file_obj(x)
 
 Provides abstraction from difference between PY2 and PY3
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index b5032e2..6952e2f 100644 (file)
@@ -1,3 +1,23 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
+
 """ Streamable version of zipfile
 
 Python's :py:class:`zipfile.ZipFile` can only write to seekable streams
@@ -12,8 +32,6 @@ Use as follows::
         info = zip.create_zipinfo(big_file)
         with open(big_file, 'rb') as input_stream:
             zip.write_stream(input_stream, info)
-
-.. codeauthor:: Intra2net AG <info@intra2net>
 """
 
 import sys
index 0e01357..c139b7d 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """
 Module name: Summary of this module
index fb85c91..cf9bb63 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ test_module_name.py: unit tests for module_name
 
@@ -23,8 +25,6 @@ Tests classes and functions in module_name
 Should be able run from python2 and python3!
 
 For help see :py:mod:`unittest`
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index 74f012f..11783e9 100755 (executable)
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Test test_helpers.DiscFillChecker by actually writing lots of data to disc
 
 Indulge in the luxury of assuming we have python3 here ;-)
 
 *NOT* a unittest (unittest discover only finds tests in files test_*.py).
-
-.. codeauthor:: Intra2net
 """
 
 from sys import stderr, argv as cmd_line_args
index 0f58129..82a8ad6 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ buffer_unittest.py: unit tests for buffers.py
 
@@ -23,8 +25,6 @@ Tests classes and functions in buffers.py
 Should be able run from python2 and python3!
 
 For help see :py:mod:`unittest`
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import absolute_import
index 225755f..83924db 100644 (file)
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ call_helper_unittest.py: unit tests for call_helpers
 
 Should be run from python2 and python3!
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import absolute_import
index a242691..408a051 100755 (executable)
@@ -18,6 +18,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 import unittest
 from src import cnfvar
index adf6ebd..e25ea4e 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ file_helper_unittest.py: unit tests for file_helpers
 
@@ -23,8 +25,6 @@ Tests classes and functions in file_helpers
 Should be able to run from python2 and python3!
 
 For help see :py:mod:`unittest`
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import absolute_import
index cadb616..bcbd168 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Unittest for follow.py
 
@@ -25,8 +27,6 @@ thread that writes to file/socket/stdout
 
 .. warn:: DEPRECATED (at least for files see log_read; may still be useful for
           pipes/sockets)
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import absolute_import
index c36de76..6dab9d2 100644 (file)
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ Unittests for log_read
 
 Creates own thread to write data to a log file
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import absolute_import
index 9d5f7ab..38fa26b 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ test_helper_unittest.py: unit tests for test_helpers
 
@@ -23,8 +25,6 @@ Tests classes and functions in test_helpers
 Should be able run from python2 and python3!
 
 For help see :py:mod:`unittest`
-
-.. codeauthor:: Intra2net
 """
 
 # TODO: remove print, use logging instead
index 5bf81e3..ef03c7c 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ test_text_helpers.py: unit tests for text_helpers
 
@@ -23,8 +25,6 @@ Tests classes and functions in text_helpers
 Should be able run from python2 and python3!
 
 For help see :py:mod:`unittest`
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import absolute_import
index 97785dd..731a3ab 100644 (file)
@@ -15,6 +15,8 @@
 #
 # This exception does not invalidate any other reasons why a work based
 # on this file might be covered by the GNU General Public License.
+#
+# Copyright (c) 2016-2018 Intra2net AG <info@intra2net.com>
 
 """ type_helper_unittest.py: unit tests for type_helpers
 
@@ -23,8 +25,6 @@ Tests classes and functions in type_helpers
 Should be run from python2 and python3!
 
 For help see :py:mod:`unittest`
-
-.. codeauthor:: Intra2net
 """
 
 from __future__ import absolute_import