Skip to content

Commit 6386061

Browse files
committed
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 open-source-parsers#234
1 parent 9cb88d2 commit 6386061

14 files changed

+76
-4
lines changed

devtools/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
# module
1+
# Copyright 2010 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
6+
# module

devtools/antglob.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
# encoding: utf-8
3-
# Baptiste Lepilleur, 2009
3+
# Copyright 2009 Baptiste Lepilleur
4+
# Distributed under MIT license, or public domain if desired and
5+
# recognized in your jurisdiction.
6+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
47

58
from __future__ import print_function
69
from dircache import listdir

devtools/fixeol.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2010 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
from __future__ import print_function
27
import os.path
38

devtools/tarball.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2010 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
from contextlib import closing
27
import os
38
import tarfile

makerelease.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2010 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
"""Tag the sandbox for release, make source and doc tarballs.
27
38
Requires Python 2.6
@@ -14,6 +19,7 @@
1419
Note: This was for Subversion. Now that we are in GitHub, we do not
1520
need to build versioned tarballs anymore, so makerelease.py is defunct.
1621
"""
22+
1723
from __future__ import print_function
1824
import os.path
1925
import subprocess

scons-tools/globtool.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2009 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
import fnmatch
27
import os
38

scons-tools/srcdist.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2007 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
import os
27
import os.path
38
from fnmatch import fnmatch

scons-tools/substinfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2010 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
import re
27
from SCons.Script import * # the usual scons stuff you get in a SConscript
38
import collections

scons-tools/targz.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2007 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
"""tarball
27
38
Tool-specific initialization for tarball.

test/cleantests.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# removes all files created during testing
1+
# Copyright 2007 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
6+
"""Removes all files created during testing."""
7+
28
import glob
39
import os
410

test/generate_expected.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2007 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
from __future__ import print_function
27
import glob
38
import os.path

test/pyjsontestrunner.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# Simple implementation of a json test runner to run the test against json-py.
1+
# Copyright 2007 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
6+
"""Simple implementation of a json test runner to run the test against
7+
json-py."""
8+
29
from __future__ import print_function
310
import sys
411
import os.path

test/runjsontests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2007 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
from __future__ import print_function
27
from __future__ import unicode_literals
38
from io import open

test/rununittests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright 2009 Baptiste Lepilleur
2+
# Distributed under MIT license, or public domain if desired and
3+
# recognized in your jurisdiction.
4+
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5+
16
from __future__ import print_function
27
from __future__ import unicode_literals
38
from io import open

0 commit comments

Comments
 (0)