diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-rokuecp.spec | 272 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 274 insertions, 0 deletions
@@ -0,0 +1 @@ +/rokuecp-0.17.1.tar.gz diff --git a/python-rokuecp.spec b/python-rokuecp.spec new file mode 100644 index 0000000..db9132a --- /dev/null +++ b/python-rokuecp.spec @@ -0,0 +1,272 @@ +%global _empty_manifest_terminate_build 0 +Name: python-rokuecp +Version: 0.17.1 +Release: 1 +Summary: Asynchronous Python client for Roku (ECP) +License: MIT +URL: https://github.com/ctalkington/python-rokuecp +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/72/6276a4956990097a86e8957ca14256744cf0233b181449a814322822841d/rokuecp-0.17.1.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-awesomeversion +Requires: python3-backoff +Requires: python3-xmltodict +Requires: python3-yarl + +%description +# Python: Roku (ECP) Client + +Asynchronous Python client for Roku devices using the [External Control Protocol](https://developer.roku.com/docs/developer-program/debugging/external-control-api.md). + +## About + +This package allows you to monitor and control Roku devices. + +## Installation + +```bash +pip install rokuecp +``` + +## Usage + +```python +import asyncio + +from rokuecp import Roku + + +async def main(): + """Show example of connecting to your Roku device.""" + async with Roku("192.168.1.100") as roku: + print(roku) + + +if __name__ == "__main__": + loop = asyncio.get_event_loop() + loop.run_until_complete(main()) +``` + +## Setting up development environment + +This Python project is fully managed using the [Poetry](https://python-poetry.org) dependency +manager. But also relies on the use of NodeJS for certain checks during +development. + +You need at least: + +- Python 3.9+ +- [Poetry](https://python-poetry.org/docs/#installation) +- NodeJS 14+ (including NPM) + +To install all packages, including all development requirements: + +```bash +npm install +poetry install +``` + +As this repository uses the [pre-commit](https://pre-commit.com/) framework, all changes +are linted and tested with each commit. You can run all checks and tests +manually, using the following command: + +```bash +poetry run pre-commit run --all-files +``` + +To run just the Python tests: + +```bash +poetry run pytest +``` + + +%package -n python3-rokuecp +Summary: Asynchronous Python client for Roku (ECP) +Provides: python-rokuecp +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-rokuecp +# Python: Roku (ECP) Client + +Asynchronous Python client for Roku devices using the [External Control Protocol](https://developer.roku.com/docs/developer-program/debugging/external-control-api.md). + +## About + +This package allows you to monitor and control Roku devices. + +## Installation + +```bash +pip install rokuecp +``` + +## Usage + +```python +import asyncio + +from rokuecp import Roku + + +async def main(): + """Show example of connecting to your Roku device.""" + async with Roku("192.168.1.100") as roku: + print(roku) + + +if __name__ == "__main__": + loop = asyncio.get_event_loop() + loop.run_until_complete(main()) +``` + +## Setting up development environment + +This Python project is fully managed using the [Poetry](https://python-poetry.org) dependency +manager. But also relies on the use of NodeJS for certain checks during +development. + +You need at least: + +- Python 3.9+ +- [Poetry](https://python-poetry.org/docs/#installation) +- NodeJS 14+ (including NPM) + +To install all packages, including all development requirements: + +```bash +npm install +poetry install +``` + +As this repository uses the [pre-commit](https://pre-commit.com/) framework, all changes +are linted and tested with each commit. You can run all checks and tests +manually, using the following command: + +```bash +poetry run pre-commit run --all-files +``` + +To run just the Python tests: + +```bash +poetry run pytest +``` + + +%package help +Summary: Development documents and examples for rokuecp +Provides: python3-rokuecp-doc +%description help +# Python: Roku (ECP) Client + +Asynchronous Python client for Roku devices using the [External Control Protocol](https://developer.roku.com/docs/developer-program/debugging/external-control-api.md). + +## About + +This package allows you to monitor and control Roku devices. + +## Installation + +```bash +pip install rokuecp +``` + +## Usage + +```python +import asyncio + +from rokuecp import Roku + + +async def main(): + """Show example of connecting to your Roku device.""" + async with Roku("192.168.1.100") as roku: + print(roku) + + +if __name__ == "__main__": + loop = asyncio.get_event_loop() + loop.run_until_complete(main()) +``` + +## Setting up development environment + +This Python project is fully managed using the [Poetry](https://python-poetry.org) dependency +manager. But also relies on the use of NodeJS for certain checks during +development. + +You need at least: + +- Python 3.9+ +- [Poetry](https://python-poetry.org/docs/#installation) +- NodeJS 14+ (including NPM) + +To install all packages, including all development requirements: + +```bash +npm install +poetry install +``` + +As this repository uses the [pre-commit](https://pre-commit.com/) framework, all changes +are linted and tested with each commit. You can run all checks and tests +manually, using the following command: + +```bash +poetry run pre-commit run --all-files +``` + +To run just the Python tests: + +```bash +poetry run pytest +``` + + +%prep +%autosetup -n rokuecp-0.17.1 + +%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-rokuecp -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.17.1-1 +- Package Spec generated @@ -0,0 +1 @@ +fc01e9bf9ac08ba3008344518377d928 rokuecp-0.17.1.tar.gz |