|
17 | 17 |
|
18 | 18 | base_path = os.path.abspath(os.path.split(__file__)[0])
|
19 | 19 |
|
| 20 | +bsd_license = """W3C 3-clause BSD License |
| 21 | +
|
| 22 | +Redistribution and use in source and binary forms, with or without |
| 23 | +modification, are permitted provided that the following conditions are |
| 24 | +met: |
| 25 | +
|
| 26 | +* Redistributions of works must retain the original copyright notice, this |
| 27 | + list of conditions and the following disclaimer. |
| 28 | +
|
| 29 | +* Redistributions in binary form must reproduce the original copyright |
| 30 | + notice, this list of conditions and the following disclaimer in the |
| 31 | + documentation and/or other materials provided with the distribution. |
| 32 | +
|
| 33 | +* Neither the name of the W3C nor the names of its contributors may be |
| 34 | + used to endorse or promote products derived from this work without |
| 35 | + specific prior written permission. |
| 36 | +
|
| 37 | +
|
| 38 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
| 39 | +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 40 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 41 | +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 42 | +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 43 | +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 44 | +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 45 | +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 46 | +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 47 | +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 48 | +POSSIBILITY OF SUCH DAMAGE. |
| 49 | +""" |
20 | 50 |
|
21 | 51 | def do_test_relative_imports(test_root):
|
22 | 52 | global manifest
|
@@ -119,6 +149,12 @@ def copy_work_tree(self, dest):
|
119 | 149 | dest_path = os.path.join(dest, destination, os.path.split(source)[1])
|
120 | 150 | shutil.copy2(source_path, dest_path)
|
121 | 151 |
|
| 152 | + self.add_license(dest) |
| 153 | + |
| 154 | + def add_license(self, dest): |
| 155 | + with open(os.path.join(dest, "LICENSE"), "w") as f: |
| 156 | + f.write(bsd_license) |
| 157 | + |
122 | 158 |
|
123 | 159 | class NoVCSTree(object):
|
124 | 160 | name = "non-vcs"
|
|
0 commit comments