%global _empty_manifest_terminate_build 0 Name: python-udi-interface Version: 3.0.59 Release: 1 Summary: UDI Python Interface for Polyglot version 3 License: MIT URL: https://github.com/UniversalDevicesInc/udi_python_interface Source0: https://mirrors.nju.edu.cn/pypi/web/packages/67/ba/4b8ff4ac787bfe30289a00a2dcd0052790536217ba8814f6eaa65f40bacb/udi_interface-3.0.59.tar.gz BuildArch: noarch Requires: python3-paho-mqtt Requires: python3-dotenv Requires: python3-markdown2 Requires: python3-netifaces Requires: python3-requests Requires: python3-pyisy %description ![Test And Publish](https://github.com/UniversalDevicesInc/udi-python-interface/workflows/Publish%20PyPI%20and%20TestPyPI/badge.svg "Test and Publish") # UDI Python Interface Module for Polyglot version 3 This is the PG3 interface API module that is portable to be imported into your Python 3.4+ based NodeServers. ### Installation Pip > 9 should be installed. This typically isn't the case, so you will have to upgrade Pip first. ``` # Check your pip version pip -V pip 9.0.1 from /home/e42/.local/lib/python2.7/site-packages (python 2.7) pip3 -V pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5) # If Pip is < Version 9 sudo pip install -U pip ``` The module is updated in Pypi (Python's package interface Pip) on a regular basis. So simply install the module like you would any Python module: ``` # Install the UDI interface pip install udi_interface --user ``` ### Starting your NodeServer build When you start building a NodeServer you are helping build the free and open Internet of Things. Thank you! If you run in to any issues please ask your questions on the [UDI Polyglot Forums](http://forum.universal-devices.com/forum/111-polyglot/). To get started, [use the python template.](https://github.com/UniversalDevicesInc/udi-poly-template-python) From there just read the code itself, it is fully explained step by step. ### How to Enable your NodeServer in the Cloud [Link to PGC Interface](https://github.com/UniversalDevicesInc/pgc-python-interface/blob/master/README.md) ### Controlling logging By default when the Polyglot Python Interface is started up the logging is in WARNING mode. If you want to change the level set logLevel: in your server.json file. Valid levels are: `CRITICAL` `ERROR` `WARNING` `INFO` `DEBUG` %package -n python3-udi-interface Summary: UDI Python Interface for Polyglot version 3 Provides: python-udi-interface BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-udi-interface ![Test And Publish](https://github.com/UniversalDevicesInc/udi-python-interface/workflows/Publish%20PyPI%20and%20TestPyPI/badge.svg "Test and Publish") # UDI Python Interface Module for Polyglot version 3 This is the PG3 interface API module that is portable to be imported into your Python 3.4+ based NodeServers. ### Installation Pip > 9 should be installed. This typically isn't the case, so you will have to upgrade Pip first. ``` # Check your pip version pip -V pip 9.0.1 from /home/e42/.local/lib/python2.7/site-packages (python 2.7) pip3 -V pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5) # If Pip is < Version 9 sudo pip install -U pip ``` The module is updated in Pypi (Python's package interface Pip) on a regular basis. So simply install the module like you would any Python module: ``` # Install the UDI interface pip install udi_interface --user ``` ### Starting your NodeServer build When you start building a NodeServer you are helping build the free and open Internet of Things. Thank you! If you run in to any issues please ask your questions on the [UDI Polyglot Forums](http://forum.universal-devices.com/forum/111-polyglot/). To get started, [use the python template.](https://github.com/UniversalDevicesInc/udi-poly-template-python) From there just read the code itself, it is fully explained step by step. ### How to Enable your NodeServer in the Cloud [Link to PGC Interface](https://github.com/UniversalDevicesInc/pgc-python-interface/blob/master/README.md) ### Controlling logging By default when the Polyglot Python Interface is started up the logging is in WARNING mode. If you want to change the level set logLevel: in your server.json file. Valid levels are: `CRITICAL` `ERROR` `WARNING` `INFO` `DEBUG` %package help Summary: Development documents and examples for udi-interface Provides: python3-udi-interface-doc %description help ![Test And Publish](https://github.com/UniversalDevicesInc/udi-python-interface/workflows/Publish%20PyPI%20and%20TestPyPI/badge.svg "Test and Publish") # UDI Python Interface Module for Polyglot version 3 This is the PG3 interface API module that is portable to be imported into your Python 3.4+ based NodeServers. ### Installation Pip > 9 should be installed. This typically isn't the case, so you will have to upgrade Pip first. ``` # Check your pip version pip -V pip 9.0.1 from /home/e42/.local/lib/python2.7/site-packages (python 2.7) pip3 -V pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5) # If Pip is < Version 9 sudo pip install -U pip ``` The module is updated in Pypi (Python's package interface Pip) on a regular basis. So simply install the module like you would any Python module: ``` # Install the UDI interface pip install udi_interface --user ``` ### Starting your NodeServer build When you start building a NodeServer you are helping build the free and open Internet of Things. Thank you! If you run in to any issues please ask your questions on the [UDI Polyglot Forums](http://forum.universal-devices.com/forum/111-polyglot/). To get started, [use the python template.](https://github.com/UniversalDevicesInc/udi-poly-template-python) From there just read the code itself, it is fully explained step by step. ### How to Enable your NodeServer in the Cloud [Link to PGC Interface](https://github.com/UniversalDevicesInc/pgc-python-interface/blob/master/README.md) ### Controlling logging By default when the Polyglot Python Interface is started up the logging is in WARNING mode. If you want to change the level set logLevel: in your server.json file. Valid levels are: `CRITICAL` `ERROR` `WARNING` `INFO` `DEBUG` %prep %autosetup -n udi-interface-3.0.59 %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-udi-interface -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon May 15 2023 Python_Bot - 3.0.59-1 - Package Spec generated