diff options
33 files changed, 103 insertions, 30 deletions
diff --git a/pyagl/conftest.py b/pyagl/conftest.py index 6002de7..ae28e79 100644 --- a/pyagl/conftest.py +++ b/pyagl/conftest.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pytest diff --git a/pyagl/services/audiomixer.py b/pyagl/services/audiomixer.py index 6e447b7..8a7743f 100644 --- a/pyagl/services/audiomixer.py +++ b/pyagl/services/audiomixer.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/base.py b/pyagl/services/base.py index b7f76d0..a7dd7aa 100644 --- a/pyagl/services/base.py +++ b/pyagl/services/base.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 subprocess import check_output from json import JSONDecodeError diff --git a/pyagl/services/bluetooth.py b/pyagl/services/bluetooth.py index e5412cf..a5785df 100644 --- a/pyagl/services/bluetooth.py +++ b/pyagl/services/bluetooth.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,6 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/bluetooth_map.py b/pyagl/services/bluetooth_map.py index 8968842..1050fc7 100644 --- a/pyagl/services/bluetooth_map.py +++ b/pyagl/services/bluetooth_map.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/bluetooth_pbap.py b/pyagl/services/bluetooth_pbap.py index c437148..aa7fabf 100644 --- a/pyagl/services/bluetooth_pbap.py +++ b/pyagl/services/bluetooth_pbap.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import json diff --git a/pyagl/services/can.py b/pyagl/services/can.py index e22b840..a95327b 100644 --- a/pyagl/services/can.py +++ b/pyagl/services/can.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/geoclue.py b/pyagl/services/geoclue.py index a0a26dc..9dc3555 100644 --- a/pyagl/services/geoclue.py +++ b/pyagl/services/geoclue.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/gps.py b/pyagl/services/gps.py index e4cd923..4dab4fc 100644 --- a/pyagl/services/gps.py +++ b/pyagl/services/gps.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/homescreen.py b/pyagl/services/homescreen.py index 13275a0..d364ec7 100644 --- a/pyagl/services/homescreen.py +++ b/pyagl/services/homescreen.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/mediaplayer.py b/pyagl/services/mediaplayer.py index d1e9137..2774300 100644 --- a/pyagl/services/mediaplayer.py +++ b/pyagl/services/mediaplayer.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse from typing import Union diff --git a/pyagl/services/mediascanner.py b/pyagl/services/mediascanner.py index 3a6e876..6281834 100644 --- a/pyagl/services/mediascanner.py +++ b/pyagl/services/mediascanner.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/network.py b/pyagl/services/network.py index 1c953b3..d56873f 100644 --- a/pyagl/services/network.py +++ b/pyagl/services/network.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/nfc.py b/pyagl/services/nfc.py index 4617afc..b8a17a7 100644 --- a/pyagl/services/nfc.py +++ b/pyagl/services/nfc.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/signal_composer.py b/pyagl/services/signal_composer.py index 3d0fa71..7f3ac0a 100644 --- a/pyagl/services/signal_composer.py +++ b/pyagl/services/signal_composer.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/taskmanager.py b/pyagl/services/taskmanager.py index bdeb86d..e4bd810 100644 --- a/pyagl/services/taskmanager.py +++ b/pyagl/services/taskmanager.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/services/weather.py b/pyagl/services/weather.py index e5be8c0..f53ed79 100644 --- a/pyagl/services/weather.py +++ b/pyagl/services/weather.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio diff --git a/pyagl/tests/test_audiomixer.py b/pyagl/tests/test_audiomixer.py index ce13530..6895fe3 100644 --- a/pyagl/tests/test_audiomixer.py +++ b/pyagl/tests/test_audiomixer.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_bluetooth.py b/pyagl/tests/test_bluetooth.py index 1af2dda..95d2888 100644 --- a/pyagl/tests/test_bluetooth.py +++ b/pyagl/tests/test_bluetooth.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_bluetooth_map.py b/pyagl/tests/test_bluetooth_map.py index d7bc3d9..09a9860 100644 --- a/pyagl/tests/test_bluetooth_map.py +++ b/pyagl/tests/test_bluetooth_map.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_bluetooth_pbap.py b/pyagl/tests/test_bluetooth_pbap.py index bd91258..af1d0e4 100644 --- a/pyagl/tests/test_bluetooth_pbap.py +++ b/pyagl/tests/test_bluetooth_pbap.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_can.py b/pyagl/tests/test_can.py index ef66f2c..a8ef8b3 100644 --- a/pyagl/tests/test_can.py +++ b/pyagl/tests/test_can.py @@ -1,3 +1,18 @@ +# Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan +# +# 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 asyncio import os import pytest diff --git a/pyagl/tests/test_geoclue.py b/pyagl/tests/test_geoclue.py index 50210d8..6d9d025 100644 --- a/pyagl/tests/test_geoclue.py +++ b/pyagl/tests/test_geoclue.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_gps.py b/pyagl/tests/test_gps.py index 3f47684..aeac5cc 100644 --- a/pyagl/tests/test_gps.py +++ b/pyagl/tests/test_gps.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_homescreen.py b/pyagl/tests/test_homescreen.py index 521fcc3..57e562f 100644 --- a/pyagl/tests/test_homescreen.py +++ b/pyagl/tests/test_homescreen.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_mediascanner.py b/pyagl/tests/test_mediascanner.py index a4d57ee..e908d6e 100644 --- a/pyagl/tests/test_mediascanner.py +++ b/pyagl/tests/test_mediascanner.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_network.py b/pyagl/tests/test_network.py index c0f24fc..5a86a2d 100644 --- a/pyagl/tests/test_network.py +++ b/pyagl/tests/test_network.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_nfc.py b/pyagl/tests/test_nfc.py index d7b3334..e1df2fe 100644 --- a/pyagl/tests/test_nfc.py +++ b/pyagl/tests/test_nfc.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_signal_composer.py b/pyagl/tests/test_signal_composer.py index a306fdf..0609072 100644 --- a/pyagl/tests/test_signal_composer.py +++ b/pyagl/tests/test_signal_composer.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os diff --git a/pyagl/tests/test_weather.py b/pyagl/tests/test_weather.py index 0b2ff9e..c106492 100644 --- a/pyagl/tests/test_weather.py +++ b/pyagl/tests/test_weather.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 asyncio import os @@ -1,4 +1,5 @@ # Copyright (C) 2020 Konsulko Group +# Author: Edi Feschiyan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -11,7 +12,7 @@ # 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 setuptools diff --git a/templates/{{cookiecutter.services_dir}}/{{cookiecutter.service_slug}}.py b/templates/{{cookiecutter.services_dir}}/{{cookiecutter.service_slug}}.py index 0d79e53..2eb99e7 100644 --- a/templates/{{cookiecutter.services_dir}}/{{cookiecutter.service_slug}}.py +++ b/templates/{{cookiecutter.services_dir}}/{{cookiecutter.service_slug}}.py @@ -1,3 +1,18 @@ +# Copyright (C) 2020 Konsulko Group +# Author: +# +# 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 pyagl.services.base import AGLBaseService, AFBResponse import asyncio import os diff --git a/templates/{{cookiecutter.tests_dir}}/test_{{cookiecutter.service_slug}}.py b/templates/{{cookiecutter.tests_dir}}/test_{{cookiecutter.service_slug}}.py index 0a93ec0..6c04dd4 100644 --- a/templates/{{cookiecutter.tests_dir}}/test_{{cookiecutter.service_slug}}.py +++ b/templates/{{cookiecutter.tests_dir}}/test_{{cookiecutter.service_slug}}.py @@ -1,3 +1,18 @@ +# Copyright (C) 2020 Konsulko Group +# Author: +# +# 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 asyncio import os import pytest |