summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:18:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:18:57 +0000
commit2170a267d9e7db14c08e9164a18d30ec5f6413b4 (patch)
treef8ba81adaccb27b705cbfa93624e21eed2def0f9
parentdbf52ff1fa25107a9da30f34df21a48dd2f17f6e (diff)
automatic import of python-pyskyqhub
-rw-r--r--.gitignore1
-rw-r--r--python-pyskyqhub.spec226
-rw-r--r--sources1
3 files changed, 228 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..43fc751 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyskyqhub-0.1.9.tar.gz
diff --git a/python-pyskyqhub.spec b/python-pyskyqhub.spec
new file mode 100644
index 0000000..252473b
--- /dev/null
+++ b/python-pyskyqhub.spec
@@ -0,0 +1,226 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyskyqhub
+Version: 0.1.9
+Release: 1
+Summary: Library for Sky Q hub
+License: MIT
+URL: https://github.com/RogerSelwyn/skyq_hub
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/74/e1369bfdc4b15a47c6e306f830a77976741dedd61973a60a4dca09ee803c/pyskyqhub-0.1.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-aiohttp
+
+%description
+[![CodeFactor](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub/badge)](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub)
+
+[![maintained](https://img.shields.io/maintenance/yes/2022.svg)](#)
+[![maintainer](https://img.shields.io/badge/maintainer-%20%40RogerSelwyn-blue.svg)](https://github.com/RogerSelwyn)
+
+# pyskyqhub
+Python module for accessing Sky Q hub and retrieving connected devices
+
+## Introduction
+
+This library enables access to SkyQ hub to pull back a list of devices connected to the hub, and their names/
+
+## Installing
+
+To install:
+
+```
+pip install pyskyqhub
+```
+
+## Usage
+
+### Base
+```
+from pyskyqremote import SkyQhub
+
+hub = SkyQHub('192.168.1.254')
+await hub.async_connect()
+```
+hub.success_init will indicate for connection was succesful or not
+
+### Get connected devices
+
+```
+devices = await skyhub.async_get_skyhub_data()
+```
+
+Will return an object such as below:
+
+```
+[
+ {'mac': '68:xx:7b:cc:xx:5c', 'name': 'UNKNOWN', 'connection': 'Wireless'},
+ {'mac': '70:xx:57:a3:xx:f0', 'name': 'UNKNOWN', 'connection': 'Cabled'},
+ {'mac': 'e4:xx:6e:44:xx:7d', 'name': 'Laptop', 'connection': 'Wireless'},
+ {'mac': '20:xx:ed:c5:xx:72', 'name': 'SKY+HD', 'connection': 'UnKnown'},
+ {'mac': '18:xx:30:bf:xx:e6', 'name': '09AA0xxxxxx02WV', 'connection': 'Wireless'},
+ ...
+]
+```
+
+
+
+
+%package -n python3-pyskyqhub
+Summary: Library for Sky Q hub
+Provides: python-pyskyqhub
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyskyqhub
+[![CodeFactor](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub/badge)](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub)
+
+[![maintained](https://img.shields.io/maintenance/yes/2022.svg)](#)
+[![maintainer](https://img.shields.io/badge/maintainer-%20%40RogerSelwyn-blue.svg)](https://github.com/RogerSelwyn)
+
+# pyskyqhub
+Python module for accessing Sky Q hub and retrieving connected devices
+
+## Introduction
+
+This library enables access to SkyQ hub to pull back a list of devices connected to the hub, and their names/
+
+## Installing
+
+To install:
+
+```
+pip install pyskyqhub
+```
+
+## Usage
+
+### Base
+```
+from pyskyqremote import SkyQhub
+
+hub = SkyQHub('192.168.1.254')
+await hub.async_connect()
+```
+hub.success_init will indicate for connection was succesful or not
+
+### Get connected devices
+
+```
+devices = await skyhub.async_get_skyhub_data()
+```
+
+Will return an object such as below:
+
+```
+[
+ {'mac': '68:xx:7b:cc:xx:5c', 'name': 'UNKNOWN', 'connection': 'Wireless'},
+ {'mac': '70:xx:57:a3:xx:f0', 'name': 'UNKNOWN', 'connection': 'Cabled'},
+ {'mac': 'e4:xx:6e:44:xx:7d', 'name': 'Laptop', 'connection': 'Wireless'},
+ {'mac': '20:xx:ed:c5:xx:72', 'name': 'SKY+HD', 'connection': 'UnKnown'},
+ {'mac': '18:xx:30:bf:xx:e6', 'name': '09AA0xxxxxx02WV', 'connection': 'Wireless'},
+ ...
+]
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for pyskyqhub
+Provides: python3-pyskyqhub-doc
+%description help
+[![CodeFactor](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub/badge)](https://www.codefactor.io/repository/github/rogerselwyn/skyq_hub)
+
+[![maintained](https://img.shields.io/maintenance/yes/2022.svg)](#)
+[![maintainer](https://img.shields.io/badge/maintainer-%20%40RogerSelwyn-blue.svg)](https://github.com/RogerSelwyn)
+
+# pyskyqhub
+Python module for accessing Sky Q hub and retrieving connected devices
+
+## Introduction
+
+This library enables access to SkyQ hub to pull back a list of devices connected to the hub, and their names/
+
+## Installing
+
+To install:
+
+```
+pip install pyskyqhub
+```
+
+## Usage
+
+### Base
+```
+from pyskyqremote import SkyQhub
+
+hub = SkyQHub('192.168.1.254')
+await hub.async_connect()
+```
+hub.success_init will indicate for connection was succesful or not
+
+### Get connected devices
+
+```
+devices = await skyhub.async_get_skyhub_data()
+```
+
+Will return an object such as below:
+
+```
+[
+ {'mac': '68:xx:7b:cc:xx:5c', 'name': 'UNKNOWN', 'connection': 'Wireless'},
+ {'mac': '70:xx:57:a3:xx:f0', 'name': 'UNKNOWN', 'connection': 'Cabled'},
+ {'mac': 'e4:xx:6e:44:xx:7d', 'name': 'Laptop', 'connection': 'Wireless'},
+ {'mac': '20:xx:ed:c5:xx:72', 'name': 'SKY+HD', 'connection': 'UnKnown'},
+ {'mac': '18:xx:30:bf:xx:e6', 'name': '09AA0xxxxxx02WV', 'connection': 'Wireless'},
+ ...
+]
+```
+
+
+
+
+%prep
+%autosetup -n pyskyqhub-0.1.9
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pyskyqhub -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c4e804b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c3d489d2bc606d75d52fc6837b30008c pyskyqhub-0.1.9.tar.gz