summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 09:41:09 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 09:41:09 +0000
commite7da281b14980db8c1484d26a9beb96bb5e1433f (patch)
treefc73c26a827ba05d155043630d2c11f5e348845c
parent10786db91362f935da7f319100b65fb5ed2bacbe (diff)
automatic import of python-udi-interface
-rw-r--r--.gitignore1
-rw-r--r--python-udi-interface.spec213
-rw-r--r--sources1
3 files changed, 215 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..85df492 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/udi_interface-3.0.59.tar.gz
diff --git a/python-udi-interface.spec b/python-udi-interface.spec
new file mode 100644
index 0000000..51a0c34
--- /dev/null
+++ b/python-udi-interface.spec
@@ -0,0 +1,213 @@
+%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: <level> 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: <level> 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: <level> 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 <Python_Bot@openeuler.org> - 3.0.59-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..744e8cb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ef855a90379e171bc9e3a2bca0b33300 udi_interface-3.0.59.tar.gz