Skip to content

Commit

Permalink
Add copyright information to .py files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbc100 committed Apr 10, 2015
1 parent 9cb88d2 commit 6386061
Show file tree
Hide file tree
Showing 14 changed files with 76 additions and 4 deletions.
7 changes: 6 additions & 1 deletion devtools/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# module
# 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
5 changes: 4 additions & 1 deletion devtools/antglob.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions devtools/fixeol.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 5 additions & 0 deletions devtools/tarball.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions makerelease.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,6 +19,7 @@
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
Expand Down
5 changes: 5 additions & 0 deletions scons-tools/globtool.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 5 additions & 0 deletions scons-tools/srcdist.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions scons-tools/substinfile.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions scons-tools/targz.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 7 additions & 1 deletion test/cleantests.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 5 additions & 0 deletions test/generate_expected.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 8 additions & 1 deletion test/pyjsontestrunner.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions test/runjsontests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions test/rununittests.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6386061

Please sign in to comment.