diff options
author | Cao Xuan Hoang <hoangcx@vn.fujitsu.com> | 2016-11-28 13:31:59 +0700 |
---|---|---|
committer | Cao Xuan Hoang <hoangcx@vn.fujitsu.com> | 2016-11-28 13:32:32 +0700 |
commit | b43ac31d0e23111a5671fded793a1bd1ff251a2c (patch) | |
tree | 930c59076ead8ed778f4593ec37eb990994038e8 | |
parent | b30ca0583ad7d9eac1f162677ac540afdd98e3bf (diff) | |
download | stevedore-b43ac31d0e23111a5671fded793a1bd1ff251a2c.tar.gz |
Add Apache 2.0 license to source file1.19.0
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[1] http://docs.openstack.org/developer/hacking/#openstack-licensing
Change-Id: I81aa361c3a50bc76dd360002712a3a7b786621c4
-rw-r--r-- | stevedore/dispatch.py | 12 | ||||
-rw-r--r-- | stevedore/driver.py | 12 | ||||
-rw-r--r-- | stevedore/enabled.py | 12 | ||||
-rw-r--r-- | stevedore/exception.py | 13 | ||||
-rw-r--r-- | stevedore/extension.py | 12 | ||||
-rw-r--r-- | stevedore/hook.py | 12 | ||||
-rw-r--r-- | stevedore/named.py | 12 | ||||
-rw-r--r-- | stevedore/tests/manager.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_callback.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_dispatch.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_driver.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_enabled.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_example_fields.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_example_simple.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_extension.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_hook.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_named.py | 12 | ||||
-rw-r--r-- | stevedore/tests/test_test_manager.py | 12 | ||||
-rw-r--r-- | stevedore/tests/utils.py | 12 |
19 files changed, 229 insertions, 0 deletions
diff --git a/stevedore/dispatch.py b/stevedore/dispatch.py index 424d39b..a158967 100644 --- a/stevedore/dispatch.py +++ b/stevedore/dispatch.py @@ -1,3 +1,15 @@ +# 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 logging from .enabled import EnabledExtensionManager diff --git a/stevedore/driver.py b/stevedore/driver.py index a2825aa..a4b33b2 100644 --- a/stevedore/driver.py +++ b/stevedore/driver.py @@ -1,3 +1,15 @@ +# 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 .exception import NoMatches, MultipleMatches from .named import NamedExtensionManager diff --git a/stevedore/enabled.py b/stevedore/enabled.py index d02c748..c2e0c03 100644 --- a/stevedore/enabled.py +++ b/stevedore/enabled.py @@ -1,3 +1,15 @@ +# 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 logging from .extension import ExtensionManager diff --git a/stevedore/exception.py b/stevedore/exception.py index 3f41f43..aa7f145 100644 --- a/stevedore/exception.py +++ b/stevedore/exception.py @@ -1,3 +1,16 @@ +# 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. + + class NoUniqueMatch(RuntimeError): """There was more than one extension, or none, that matched the query.""" diff --git a/stevedore/extension.py b/stevedore/extension.py index aa14e0a..4029b65 100644 --- a/stevedore/extension.py +++ b/stevedore/extension.py @@ -1,3 +1,15 @@ +# 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. + """ExtensionManager """ diff --git a/stevedore/hook.py b/stevedore/hook.py index ed9deab..014b7c3 100644 --- a/stevedore/hook.py +++ b/stevedore/hook.py @@ -1,3 +1,15 @@ +# 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 .named import NamedExtensionManager diff --git a/stevedore/named.py b/stevedore/named.py index c2377e8..3b47dfd 100644 --- a/stevedore/named.py +++ b/stevedore/named.py @@ -1,3 +1,15 @@ +# 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 logging from .extension import ExtensionManager diff --git a/stevedore/tests/manager.py b/stevedore/tests/manager.py index df13af0..8c97a68 100644 --- a/stevedore/tests/manager.py +++ b/stevedore/tests/manager.py @@ -1,3 +1,15 @@ +# 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. + """TestExtensionManager Extension manager used only for testing. diff --git a/stevedore/tests/test_callback.py b/stevedore/tests/test_callback.py index 8dc9692..877b31e 100644 --- a/stevedore/tests/test_callback.py +++ b/stevedore/tests/test_callback.py @@ -1,3 +1,15 @@ +# 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. + """Tests for failure loading callback """ from testtools.matchers import GreaterThan diff --git a/stevedore/tests/test_dispatch.py b/stevedore/tests/test_dispatch.py index 1cd3bd4..f1c305a 100644 --- a/stevedore/tests/test_dispatch.py +++ b/stevedore/tests/test_dispatch.py @@ -1,3 +1,15 @@ +# 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 stevedore.tests import utils from stevedore import dispatch diff --git a/stevedore/tests/test_driver.py b/stevedore/tests/test_driver.py index 42b22d4..c568a3a 100644 --- a/stevedore/tests/test_driver.py +++ b/stevedore/tests/test_driver.py @@ -1,3 +1,15 @@ +# 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. + """Tests for stevedore.extension """ diff --git a/stevedore/tests/test_enabled.py b/stevedore/tests/test_enabled.py index 7040d03..32cd199 100644 --- a/stevedore/tests/test_enabled.py +++ b/stevedore/tests/test_enabled.py @@ -1,3 +1,15 @@ +# 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 stevedore import enabled from stevedore.tests import utils diff --git a/stevedore/tests/test_example_fields.py b/stevedore/tests/test_example_fields.py index 86aebf9..757917c 100644 --- a/stevedore/tests/test_example_fields.py +++ b/stevedore/tests/test_example_fields.py @@ -1,3 +1,15 @@ +# 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. + """Tests for stevedore.example2.fields """ diff --git a/stevedore/tests/test_example_simple.py b/stevedore/tests/test_example_simple.py index 2558fb7..382ed89 100644 --- a/stevedore/tests/test_example_simple.py +++ b/stevedore/tests/test_example_simple.py @@ -1,3 +1,15 @@ +# 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. + """Tests for stevedore.example.simple """ diff --git a/stevedore/tests/test_extension.py b/stevedore/tests/test_extension.py index 1fe0242..7d695ef 100644 --- a/stevedore/tests/test_extension.py +++ b/stevedore/tests/test_extension.py @@ -1,3 +1,15 @@ +# 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. + """Tests for stevedore.extension """ diff --git a/stevedore/tests/test_hook.py b/stevedore/tests/test_hook.py index b95f4b8..5741bb9 100644 --- a/stevedore/tests/test_hook.py +++ b/stevedore/tests/test_hook.py @@ -1,3 +1,15 @@ +# 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 stevedore import hook from stevedore.tests import utils diff --git a/stevedore/tests/test_named.py b/stevedore/tests/test_named.py index 07535ae..757d0aa 100644 --- a/stevedore/tests/test_named.py +++ b/stevedore/tests/test_named.py @@ -1,3 +1,15 @@ +# 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 stevedore import named from stevedore.tests import utils diff --git a/stevedore/tests/test_test_manager.py b/stevedore/tests/test_test_manager.py index 70aa100..df056cf 100644 --- a/stevedore/tests/test_test_manager.py +++ b/stevedore/tests/test_test_manager.py @@ -1,3 +1,15 @@ +# 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 mock import Mock, sentinel from stevedore import (ExtensionManager, NamedExtensionManager, HookManager, DriverManager, EnabledExtensionManager) diff --git a/stevedore/tests/utils.py b/stevedore/tests/utils.py index 01e2a46..0a6cc0a 100644 --- a/stevedore/tests/utils.py +++ b/stevedore/tests/utils.py @@ -1,3 +1,15 @@ +# 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 oslotest import base as test_base |