From 63860617b399ddf285ceb319bd1af5ccac67842f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 9 Apr 2015 18:01:33 -0700 Subject: [PATCH] Add copyright information to .py files This change adds explicit copyright information too python files files. The copyright year used in each case is the date of the first git commit of each file. The goal is to allow jsoncpp to be integrated into the chromium source tree which requires license information in each source file. fixes #234 --- devtools/__init__.py | 7 ++++++- devtools/antglob.py | 5 ++++- devtools/fixeol.py | 5 +++++ devtools/tarball.py | 5 +++++ makerelease.py | 6 ++++++ scons-tools/globtool.py | 5 +++++ scons-tools/srcdist.py | 5 +++++ scons-tools/substinfile.py | 5 +++++ scons-tools/targz.py | 5 +++++ test/cleantests.py | 8 +++++++- test/generate_expected.py | 5 +++++ test/pyjsontestrunner.py | 9 ++++++++- test/runjsontests.py | 5 +++++ test/rununittests.py | 5 +++++ 14 files changed, 76 insertions(+), 4 deletions(-) diff --git a/devtools/__init__.py b/devtools/__init__.py index c944e7c..d18a521 100644 --- a/devtools/__init__.py +++ b/devtools/__init__.py @@ -1 +1,6 @@ -# module \ No newline at end of file +# Copyright 2010 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + +# module diff --git a/devtools/antglob.py b/devtools/antglob.py index afd4c48..c272f66 100644 --- a/devtools/antglob.py +++ b/devtools/antglob.py @@ -1,6 +1,9 @@ #!/usr/bin/env python # encoding: utf-8 -# Baptiste Lepilleur, 2009 +# Copyright 2009 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE from __future__ import print_function from dircache import listdir diff --git a/devtools/fixeol.py b/devtools/fixeol.py index a76880f..054eb9b 100644 --- a/devtools/fixeol.py +++ b/devtools/fixeol.py @@ -1,3 +1,8 @@ +# Copyright 2010 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + from __future__ import print_function import os.path diff --git a/devtools/tarball.py b/devtools/tarball.py index b2030fb..2e72717 100644 --- a/devtools/tarball.py +++ b/devtools/tarball.py @@ -1,3 +1,8 @@ +# Copyright 2010 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + from contextlib import closing import os import tarfile diff --git a/makerelease.py b/makerelease.py index b7235db..ea3722d 100644 --- a/makerelease.py +++ b/makerelease.py @@ -1,3 +1,8 @@ +# Copyright 2010 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + """Tag the sandbox for release, make source and doc tarballs. Requires Python 2.6 @@ -14,6 +19,7 @@ python makerelease.py 0.5.0 0.6.0-dev Note: This was for Subversion. Now that we are in GitHub, we do not need to build versioned tarballs anymore, so makerelease.py is defunct. """ + from __future__ import print_function import os.path import subprocess diff --git a/scons-tools/globtool.py b/scons-tools/globtool.py index ea7db2d..890f1b7 100644 --- a/scons-tools/globtool.py +++ b/scons-tools/globtool.py @@ -1,3 +1,8 @@ +# Copyright 2009 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + import fnmatch import os diff --git a/scons-tools/srcdist.py b/scons-tools/srcdist.py index 663a234..fe1d746 100644 --- a/scons-tools/srcdist.py +++ b/scons-tools/srcdist.py @@ -1,3 +1,8 @@ +# Copyright 2007 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + import os import os.path from fnmatch import fnmatch diff --git a/scons-tools/substinfile.py b/scons-tools/substinfile.py index 33e5de0..c620442 100644 --- a/scons-tools/substinfile.py +++ b/scons-tools/substinfile.py @@ -1,3 +1,8 @@ +# Copyright 2010 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + import re from SCons.Script import * # the usual scons stuff you get in a SConscript import collections diff --git a/scons-tools/targz.py b/scons-tools/targz.py index 6a4f3fa..8e5ba83 100644 --- a/scons-tools/targz.py +++ b/scons-tools/targz.py @@ -1,3 +1,8 @@ +# Copyright 2007 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + """tarball Tool-specific initialization for tarball. diff --git a/test/cleantests.py b/test/cleantests.py index 1a4f1f1..9772d54 100644 --- a/test/cleantests.py +++ b/test/cleantests.py @@ -1,4 +1,10 @@ -# removes all files created during testing +# Copyright 2007 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + +"""Removes all files created during testing.""" + import glob import os diff --git a/test/generate_expected.py b/test/generate_expected.py index 2bbf569..0b74f51 100644 --- a/test/generate_expected.py +++ b/test/generate_expected.py @@ -1,3 +1,8 @@ +# Copyright 2007 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + from __future__ import print_function import glob import os.path diff --git a/test/pyjsontestrunner.py b/test/pyjsontestrunner.py index afaabd9..7f38356 100644 --- a/test/pyjsontestrunner.py +++ b/test/pyjsontestrunner.py @@ -1,4 +1,11 @@ -# Simple implementation of a json test runner to run the test against json-py. +# Copyright 2007 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + +"""Simple implementation of a json test runner to run the test against +json-py.""" + from __future__ import print_function import sys import os.path diff --git a/test/runjsontests.py b/test/runjsontests.py index 597bf2f..d21c02f 100644 --- a/test/runjsontests.py +++ b/test/runjsontests.py @@ -1,3 +1,8 @@ +# Copyright 2007 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + from __future__ import print_function from __future__ import unicode_literals from io import open diff --git a/test/rununittests.py b/test/rununittests.py index dd1c9a3..08850ec 100644 --- a/test/rununittests.py +++ b/test/rununittests.py @@ -1,3 +1,8 @@ +# Copyright 2009 Baptiste Lepilleur +# Distributed under MIT license, or public domain if desired and +# recognized in your jurisdiction. +# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + from __future__ import print_function from __future__ import unicode_literals from io import open