From 93b77925a9c402d19dd1eb212d31df9c90fd120c Mon Sep 17 00:00:00 2001 From: Tomasz Michalak Date: Thu, 16 Apr 2020 10:31:33 +0200 Subject: [PATCH] Add licensing header to rest of python scripts Signed-off-by: Tomasz Michalak Signed-off-by: Tim 'mithro' Ansell --- .github/kokoro/kokoro-cfg.py | 9 +++++++++ .github/update-contributing.py | 9 +++++++++ docs/conf.py | 7 +++++++ experiments/clbpips/generate.py | 9 +++++++++ experiments/example/segdata.py | 9 +++++++++ experiments/gndvcc/generate.py | 9 +++++++++ experiments/gndvcc/maketodo.py | 9 +++++++++ experiments/pipsroute/generate.py | 9 +++++++++ experiments/pipsroute/maketodo.py | 9 +++++++++ gridinfo/gridinfo-txt2json.py | 9 +++++++++ htmlgen/htmlgen.py | 10 ++++++++++ tests/test_util.py | 9 +++++++++ 12 files changed, 107 insertions(+) diff --git a/.github/kokoro/kokoro-cfg.py b/.github/kokoro/kokoro-cfg.py index 1390bf03..62cfa988 100755 --- a/.github/kokoro/kokoro-cfg.py +++ b/.github/kokoro/kokoro-cfg.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC db_full = """\ # Format: //devtools/kokoro/config/proto/build.proto diff --git a/.github/update-contributing.py b/.github/update-contributing.py index 7f6ff44e..e395fd9b 100755 --- a/.github/update-contributing.py +++ b/.github/update-contributing.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC # Header contrib = ["""\ diff --git a/docs/conf.py b/docs/conf.py index 795c4ef4..d7cbee0f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,11 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC # # Project X-Ray documentation build configuration file, created by # sphinx-quickstart on Mon Feb 5 11:04:37 2018. diff --git a/experiments/clbpips/generate.py b/experiments/clbpips/generate.py index b2fe2a2c..8a5c3a54 100644 --- a/experiments/clbpips/generate.py +++ b/experiments/clbpips/generate.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC from prjxray.segmaker import Segmaker diff --git a/experiments/example/segdata.py b/experiments/example/segdata.py index ea776dca..d9720575 100644 --- a/experiments/example/segdata.py +++ b/experiments/example/segdata.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import os, json, re diff --git a/experiments/gndvcc/generate.py b/experiments/gndvcc/generate.py index 366db065..a5392307 100644 --- a/experiments/gndvcc/generate.py +++ b/experiments/gndvcc/generate.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import re diff --git a/experiments/gndvcc/maketodo.py b/experiments/gndvcc/maketodo.py index 07be79f6..b0a3133b 100644 --- a/experiments/gndvcc/maketodo.py +++ b/experiments/gndvcc/maketodo.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import os, re diff --git a/experiments/pipsroute/generate.py b/experiments/pipsroute/generate.py index aa131cae..b7d5beb2 100644 --- a/experiments/pipsroute/generate.py +++ b/experiments/pipsroute/generate.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import sys, re diff --git a/experiments/pipsroute/maketodo.py b/experiments/pipsroute/maketodo.py index dea2ff24..7e11a3e1 100644 --- a/experiments/pipsroute/maketodo.py +++ b/experiments/pipsroute/maketodo.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import os, re diff --git a/gridinfo/gridinfo-txt2json.py b/gridinfo/gridinfo-txt2json.py index 8d845483..6394f359 100644 --- a/gridinfo/gridinfo-txt2json.py +++ b/gridinfo/gridinfo-txt2json.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC import sys import json diff --git a/htmlgen/htmlgen.py b/htmlgen/htmlgen.py index 6cb3e7c5..c8b1ff41 100755 --- a/htmlgen/htmlgen.py +++ b/htmlgen/htmlgen.py @@ -1,6 +1,16 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# # https://symbiflow.github.io/prjxray-db/ # https://symbiflow.github.io/prjxray-db/artix7/ +# +# SPDX-License-Identifier: ISC import os, sys, json, re from io import StringIO diff --git a/tests/test_util.py b/tests/test_util.py index a561b209..8ea851ed 100755 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2017-2020 The Project X-Ray Authors. +# +# Use of this source code is governed by a ISC-style +# license that can be found in the LICENSE file or at +# https://opensource.org/licenses/ISC +# +# SPDX-License-Identifier: ISC from os import environ, getcwd, chdir import json