From 6072a5e13dc2a8b2ecf234902f6e68869f4b1f3d Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Wed, 4 Apr 2018 20:45:31 +0100 Subject: [PATCH] Add Apache copyright to all Python files This is a trivial fix that adds the Apache copyright to all Python files as this is an open source project. Change-Id: I712b34809dce99fc52385f236f5c10d5c805937a --- src/bin/pegleg/pegleg/cli.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/config.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/__init__.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/errorcodes.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/lint.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/site.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/stub.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/util/__init__.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/util/deckhand.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/util/definition.py | 14 ++++++++++++++ src/bin/pegleg/pegleg/engine/util/files.py | 14 ++++++++++++++ src/bin/pegleg/setup.py | 14 ++++++++++++++ 12 files changed, 168 insertions(+) diff --git a/src/bin/pegleg/pegleg/cli.py b/src/bin/pegleg/pegleg/cli.py index edb7a4e5..c09ceab4 100644 --- a/src/bin/pegleg/pegleg/cli.py +++ b/src/bin/pegleg/pegleg/cli.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 . import engine from pegleg import config diff --git a/src/bin/pegleg/pegleg/config.py b/src/bin/pegleg/pegleg/config.py index ae039e4f..0cf1effd 100644 --- a/src/bin/pegleg/pegleg/config.py +++ b/src/bin/pegleg/pegleg/config.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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. + try: if GLOBAL_CONTEXT: pass diff --git a/src/bin/pegleg/pegleg/engine/__init__.py b/src/bin/pegleg/pegleg/engine/__init__.py index fa17aad3..c64a4ecd 100644 --- a/src/bin/pegleg/pegleg/engine/__init__.py +++ b/src/bin/pegleg/pegleg/engine/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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. + # flake8: noqa from . import lint from . import site diff --git a/src/bin/pegleg/pegleg/engine/errorcodes.py b/src/bin/pegleg/pegleg/engine/errorcodes.py index c86a3640..e66d658c 100644 --- a/src/bin/pegleg/pegleg/engine/errorcodes.py +++ b/src/bin/pegleg/pegleg/engine/errorcodes.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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. + SCHEMA_STORAGE_POLICY_MISMATCH_FLAG = 'P001' DECKHAND_RENDERING_INCOMPLETE_FLAG = 'P002' REPOS_MISSING_DIRECTORIES_FLAG = 'P003' diff --git a/src/bin/pegleg/pegleg/engine/lint.py b/src/bin/pegleg/pegleg/engine/lint.py index 007faf41..7e299a23 100644 --- a/src/bin/pegleg/pegleg/engine/lint.py +++ b/src/bin/pegleg/pegleg/engine/lint.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 click import logging import os diff --git a/src/bin/pegleg/pegleg/engine/site.py b/src/bin/pegleg/pegleg/engine/site.py index 9a12369f..d96dbdae 100644 --- a/src/bin/pegleg/pegleg/engine/site.py +++ b/src/bin/pegleg/pegleg/engine/site.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 click import collections diff --git a/src/bin/pegleg/pegleg/engine/stub.py b/src/bin/pegleg/pegleg/engine/stub.py index 4598de89..63b8fd79 100644 --- a/src/bin/pegleg/pegleg/engine/stub.py +++ b/src/bin/pegleg/pegleg/engine/stub.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 pegleg.engine import util __all__ = ['global_', 'site', 'site_type'] diff --git a/src/bin/pegleg/pegleg/engine/util/__init__.py b/src/bin/pegleg/pegleg/engine/util/__init__.py index 0597af0e..71db05b7 100644 --- a/src/bin/pegleg/pegleg/engine/util/__init__.py +++ b/src/bin/pegleg/pegleg/engine/util/__init__.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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. + # flake8: noqa from . import definition from . import files diff --git a/src/bin/pegleg/pegleg/engine/util/deckhand.py b/src/bin/pegleg/pegleg/engine/util/deckhand.py index 4aa5079b..0c96c1fb 100644 --- a/src/bin/pegleg/pegleg/engine/util/deckhand.py +++ b/src/bin/pegleg/pegleg/engine/util/deckhand.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 pegleg.engine.errorcodes import DECKHAND_DUPLICATE_SCHEMA from pegleg.engine.errorcodes import DECKHAND_RENDER_EXCEPTION from deckhand.engine import layering diff --git a/src/bin/pegleg/pegleg/engine/util/definition.py b/src/bin/pegleg/pegleg/engine/util/definition.py index b89d15fb..601e9f19 100644 --- a/src/bin/pegleg/pegleg/engine/util/definition.py +++ b/src/bin/pegleg/pegleg/engine/util/definition.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 click from pegleg import config diff --git a/src/bin/pegleg/pegleg/engine/util/files.py b/src/bin/pegleg/pegleg/engine/util/files.py index 68286434..fa51fb36 100644 --- a/src/bin/pegleg/pegleg/engine/util/files.py +++ b/src/bin/pegleg/pegleg/engine/util/files.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 click import os import yaml diff --git a/src/bin/pegleg/setup.py b/src/bin/pegleg/setup.py index b44da422..bdbec08f 100644 --- a/src/bin/pegleg/setup.py +++ b/src/bin/pegleg/setup.py @@ -1,3 +1,17 @@ +# Copyright 2018 AT&T Intellectual Property. All other rights reserved. +# +# Licensed 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 setuptools import setup setup(