From: Christian Herdtweck Date: Thu, 14 Jan 2016 14:32:44 +0000 (+0100) Subject: add license to every source file and replaced codeauthor with Intra2net X-Git-Tag: v1.2~58 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=3237d2a6e1cf5da363938df4df54c79d24ba5ca5;p=pyi2ncommon add license to every source file and replaced codeauthor with Intra2net --- diff --git a/arnied.py b/arnied.py index 7bd6d34..38132f0 100644 --- a/arnied.py +++ b/arnied.py @@ -1,6 +1,26 @@ +# 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. + """ Interface to arnied only a stub; should at least contain a set_cnf and get_cnf + +.. codeauthor:: Intra2net """ def set_cnf(var_name, value): diff --git a/buffers.py b/buffers.py index d801555..8e461ca 100644 --- a/buffers.py +++ b/buffers.py @@ -25,7 +25,7 @@ Featuring:: * LogarithmicBuffer: saves only last N items, and after that less and less so * very few old items are kept -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ class CircularBuffer: diff --git a/call_helpers.py b/call_helpers.py index 6356d4e..1739d5f 100644 --- a/call_helpers.py +++ b/call_helpers.py @@ -1,10 +1,28 @@ +# 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. + """ 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:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from subprocess import Popen, PIPE diff --git a/check.sh b/check.sh index 4bd7204..b3fe595 100755 --- a/check.sh +++ b/check.sh @@ -1,5 +1,23 @@ #!/bin/bash +# 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. + # check.sh # check a python file using pylint and pep8 diff --git a/file_helpers.py b/file_helpers.py index 11974f4..2035a77 100644 --- a/file_helpers.py +++ b/file_helpers.py @@ -1,3 +1,21 @@ +# 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. + """ Helper functions and classes to deal with files and dirs and stuff Featuring:: @@ -8,7 +26,7 @@ Featuring:: .. todo:: change get_filesystem_fill_states to not fork -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from __future__ import print_function diff --git a/follow.py b/follow.py index 3b8e7ce..3cf8bcb 100644 --- a/follow.py +++ b/follow.py @@ -92,7 +92,7 @@ NOT possible:: len(my_follower) Follower(my_file, my_file) # (twice the same) -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from __future__ import print_function diff --git a/follow_unittest.py b/follow_unittest.py index 9a0921a..0febfce 100644 --- a/follow_unittest.py +++ b/follow_unittest.py @@ -1,3 +1,21 @@ +# 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. + """ Unittest for follow.py This is a little more involved since in order to test properly, need a second @@ -8,7 +26,7 @@ thread that writes to file/socket/stdout DEPRECATED (at least for files see log_read; may still be usefull for pipes/sockets) -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ diff --git a/iter_helpers.py b/iter_helpers.py index a5aaab3..624ede5 100644 --- a/iter_helpers.py +++ b/iter_helpers.py @@ -1,9 +1,27 @@ +# 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. + """ Helper functions with iterators -- functional program is great! Currently, recipes from python itertools docu (:py:mod:`itertools`) that have been deemed useful -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from itertools import * diff --git a/log_helpers.py b/log_helpers.py index a2830f6..d51e641 100644 --- a/log_helpers.py +++ b/log_helpers.py @@ -38,7 +38,7 @@ Further ideas: :: ..todo:: do not limit logs by line numbers but by disc size? Warn when at 50%, 75%, 90%, 99% of limit? -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ import logging diff --git a/log_read.py b/log_read.py index 13c944f..0c30e88 100644 --- a/log_read.py +++ b/log_read.py @@ -1,3 +1,21 @@ +# 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. + """ Iterative reading of log files Basic Functionality (class :py:class:`IterativeReader`:) @@ -15,7 +33,7 @@ like date, time, module name, urgency and message. ..todo:: auto-detect log line layout -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ import os diff --git a/log_read_unittest.py b/log_read_unittest.py index ca86951..7505ad8 100644 --- a/log_read_unittest.py +++ b/log_read_unittest.py @@ -1,8 +1,26 @@ +# 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. + """ Unittests for log_read Creates own thread to write data to a log file -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ import unittest diff --git a/template.py b/template.py index c89af30..0e01357 100644 --- a/template.py +++ b/template.py @@ -1,5 +1,3 @@ -#!/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). # @@ -31,7 +29,7 @@ in this docstring, but please keep it brief! .. note:: You should note this .. warning:: This is a warning -.. codeauthor:: John Doe, john.doe@intra2net.com +.. codeauthor:: Intra2net """ from __future__ import print_function @@ -100,16 +98,3 @@ def send_message(sender, recipient, message_body, priority=1): """ raise NotImplementedError() - - -def main(): - """ Main function, called when running file as script - - currently raises a NotImplementedError - """ - raise NotImplementedError -# end: function main - - -if __name__ == '__main__': - main() diff --git a/test/buffer_unittest.py b/test/buffer_unittest.py index 3c16ed0..96d02c7 100644 --- a/test/buffer_unittest.py +++ b/test/buffer_unittest.py @@ -1,3 +1,21 @@ +# 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. + """ buffer_unittest.py: unit tests for buffers.py Tests classes and functions in buffers.py @@ -6,7 +24,7 @@ Should be able run from python2 and python3! For help see :py:mod:`unittest` -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ import unittest diff --git a/test/call_helper_unittest.py b/test/call_helper_unittest.py index c9057fd..e21b011 100644 --- a/test/call_helper_unittest.py +++ b/test/call_helper_unittest.py @@ -1,8 +1,26 @@ +# 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. + """ call_helper_unittest.py: unit tests for call_helpers Should be run from python2 and python3! -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ import unittest diff --git a/test/disc_filler_test.py b/test/disc_filler_test.py index 4db468d..a0bb4c5 100755 --- a/test/disc_filler_test.py +++ b/test/disc_filler_test.py @@ -1,10 +1,28 @@ #!/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. + """ Test test_helpers.DiscFillChecker by actually writing lots of data to disc Indulge in the luxury of assuming we have python3 here ;-) -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from sys import stderr, argv as cmd_line_args diff --git a/test/file_helper_unittest.py b/test/file_helper_unittest.py index 804d829..7277db4 100644 --- a/test/file_helper_unittest.py +++ b/test/file_helper_unittest.py @@ -1,3 +1,21 @@ +# 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. + """ file_helper_unittest.py: unit tests for file_helpers Tests classes and functions in file_helpers @@ -6,7 +24,7 @@ Should be able to run from python2 and python3! For help see :py:mod:`unittest` -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ import unittest diff --git a/test/template.py b/test/template.py index 3d80afa..408557f 100644 --- a/test/template.py +++ b/test/template.py @@ -1,3 +1,21 @@ +# 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. + """ module_name_unittest.py: unit tests for module_name Tests classes and functions in module_name @@ -6,7 +24,7 @@ Should be able run from python2 and python3! For help see :py:mod:`unittest` -.. codeauthor:: your name, your.name@intra2net.com +.. codeauthor:: Intra2net """ from __future__ import print_function diff --git a/test/test_helper_unittest.py b/test/test_helper_unittest.py index 6c0eb65..3f37d92 100644 --- a/test/test_helper_unittest.py +++ b/test/test_helper_unittest.py @@ -1,3 +1,21 @@ +# 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. + """ test_helper_unittest.py: unit tests for test_helpers Tests classes and functions in test_helpers @@ -6,7 +24,7 @@ Should be able run from python2 and python3! For help see :py:mod:`unittest` -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from __future__ import print_function diff --git a/test/type_helper_unittest.py b/test/type_helper_unittest.py index af89fdf..82ccfed 100644 --- a/test/type_helper_unittest.py +++ b/test/type_helper_unittest.py @@ -1,3 +1,21 @@ +# 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. + """ type_helper_unittest.py: unit tests for type_helpers Tests classes and functions in type_helpers @@ -6,7 +24,7 @@ Should be run from python2 and python3! For help see :py:mod:`unittest` -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ import unittest diff --git a/test_helpers.py b/test_helpers.py index 69a0982..eebebc6 100644 --- a/test_helpers.py +++ b/test_helpers.py @@ -1,9 +1,27 @@ +# 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. + """ Helpers for developping quick test scripts Creation motivated by fear of filling disc space during long-running stress tests -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from __future__ import print_function diff --git a/type_helpers.py b/type_helpers.py index 18fbec9..2972536 100644 --- a/type_helpers.py +++ b/type_helpers.py @@ -21,7 +21,7 @@ Helpers for type checking and conversion, like isstr(x), is_file_obj(x) Provides abstraction from difference between PY2 and PY3 -.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com +.. codeauthor:: Intra2net """ from __future__ import print_function