You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by mr...@apache.org on 2019/06/25 16:56:31 UTC

[incubator-openwhisk-runtime-go] branch master updated: ASF full header added to remaining files (#95)

This is an automated email from the ASF dual-hosted git repository.

mrutkowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-go.git


The following commit(s) were added to refs/heads/master by this push:
     new ebd6f43  ASF full header added to remaining files (#95)
ebd6f43 is described below

commit ebd6f439650f1bf92f7bf488f4eaedb88b9d1ea8
Author: Matt Rutkowski <mr...@us.ibm.com>
AuthorDate: Tue Jun 25 11:56:26 2019 -0500

    ASF full header added to remaining files (#95)
---
 .travis.yml                                     | 18 +++++++++--
 gradle/wrapper/gradle-wrapper.properties        | 18 +++++++++--
 openwhisk/_test/compile.py                      | 28 +++++++++++++---
 openwhisk/_test/pysample/lib/action/__init__.py | 18 +++++++++--
 openwhisk/_test/pysample/lib/action/main.py     | 23 +++++++++++--
 openwhisk/_test/pysample/lib/exec.py            | 43 +++++++++++++++++--------
 6 files changed, 121 insertions(+), 27 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 3a1a5a3..114504f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,19 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more contributor
-# license agreements; and to You under the Apache License, Version 2.0.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
 
 sudo: required
 language: go
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index edeff3b..75abc52 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,19 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more contributor
-# license agreements; and to You under the Apache License, Version 2.0.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
diff --git a/openwhisk/_test/compile.py b/openwhisk/_test/compile.py
index e52486a..ebe8353 100755
--- a/openwhisk/_test/compile.py
+++ b/openwhisk/_test/compile.py
@@ -1,9 +1,27 @@
 #!/usr/bin/env python
-# Licensed to the Apache Software Foundation (ASF) under one or more contributor
-# license agreements; and to You under the Apache License, Version 2.0.
-import os, sys
-os.rename(sys.argv[2], sys.argv[3]+"/action")
-with open(sys.argv[3]+"/exec", "w") as f:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+import os
+import sys
+
+os.rename(sys.argv[2], sys.argv[3] + "/action")
+
+with open(sys.argv[3] + "/exec", "w") as f:
     f.write("""#!/bin/bash
 cd "$(dirname $0)"
 export PYTHONPATH=$PWD/action
diff --git a/openwhisk/_test/pysample/lib/action/__init__.py b/openwhisk/_test/pysample/lib/action/__init__.py
index e4e2475..b1312a0 100644
--- a/openwhisk/_test/pysample/lib/action/__init__.py
+++ b/openwhisk/_test/pysample/lib/action/__init__.py
@@ -1,2 +1,16 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more contributor
-# license agreements; and to You under the Apache License, Version 2.0.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
diff --git a/openwhisk/_test/pysample/lib/action/main.py b/openwhisk/_test/pysample/lib/action/main.py
index 1796dbf..1be2d21 100644
--- a/openwhisk/_test/pysample/lib/action/main.py
+++ b/openwhisk/_test/pysample/lib/action/main.py
@@ -1,7 +1,24 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more contributor
-# license agreements; and to You under the Apache License, Version 2.0.
+#!/usr/bin/env python
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
 def main(args):
     name = "world"
     if "name" in args:
         name = args["name"]
-    return {"python": "Hello, %s" % name }
+    return {"python": "Hello, %s" % name}
diff --git a/openwhisk/_test/pysample/lib/exec.py b/openwhisk/_test/pysample/lib/exec.py
index 4bd6ac1..3bf305e 100644
--- a/openwhisk/_test/pysample/lib/exec.py
+++ b/openwhisk/_test/pysample/lib/exec.py
@@ -1,20 +1,37 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more contributor
-# license agreements; and to You under the Apache License, Version 2.0.
+#!/usr/bin/env python
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
 
 from __future__ import print_function
-import os, json
+
+import os
+import json
+
 from action.main import main
 inp = os.fdopen(0, "rb")
 out = os.fdopen(3, "wb")
 while True:
     while True:
-       line = inp.readline()
-       args = json.loads(line)
-       payload = {}
-       if "value" in args:
-           payload = args["value"]
-       res = main(payload)
-       out.write(json.dumps(res, ensure_ascii=False).encode('utf-8'))
-       out.write("\n")
-       out.flush()
-
+        line = inp.readline()
+        args = json.loads(line)
+        payload = {}
+        if "value" in args:
+            payload = args["value"]
+        res = main(payload)
+        out.write(json.dumps(res, ensure_ascii=False).encode('utf-8'))
+        out.write("\n")
+        out.flush()