diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:39:38 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:39:38 +0000 |
| commit | 9923ad1be8f9eb37a043eee0f0ed0292a3aa2dd2 (patch) | |
| tree | 50521612ea4554acf44066d3760e09dd84a838e2 /python-arcor2-execution.spec | |
| parent | e0b89420c75f7e47d7f5f32a60939223bea6cccb (diff) | |
automatic import of python-arcor2-execution
Diffstat (limited to 'python-arcor2-execution.spec')
| -rw-r--r-- | python-arcor2-execution.spec | 602 |
1 files changed, 602 insertions, 0 deletions
diff --git a/python-arcor2-execution.spec b/python-arcor2-execution.spec new file mode 100644 index 0000000..e720bb4 --- /dev/null +++ b/python-arcor2-execution.spec @@ -0,0 +1,602 @@ +%global _empty_manifest_terminate_build 0 +Name: python-arcor2-execution +Version: 1.0.0 +Release: 1 +Summary: ARCOR2 Execution service +License: LGPL +URL: https://pypi.org/project/arcor2-execution/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ca/5e/339fc28240d07242344fa9822548290bde0db15db78ba54a2741ffc84c7b/arcor2_execution-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-aiofiles +Requires: python3-aiologger +Requires: python3-aiorun +Requires: python3-arcor2-execution-data +Requires: python3-arcor2-runtime +Requires: python3-arcor2 +Requires: python3-dataclasses-jsonschema[apispec,fast-dateparsing,fast-uuid,fast-validation] +Requires: python3-websockets + +%description +# arcor2_execution + +## Environment variables + +- `ARCOR2_EXECUTION_URL=ws://0.0.0.0:6790` - by default, the service listens on port 6790. +- `ARCOR2_MAX_RPC_DURATION=0.1` - by default, a warning is emitted when any RPC call takes longer than 0.1 second. +- `ARCOR2_EXECUTION_DEBUG=1` - switches logger to the `DEBUG` level. +- `ARCOR2_ARSERVER_ASYNCIO_DEBUG=1` - turns on `asyncio` debug output (helpful to debug problems related to concurrency). +# Changelog + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), + +## [1.0.0] - 2023-02-14 + +### Changed + +- Marked as a stable version. + +## [0.22.0] - 2022-12-12 + +### Changed + +- Dependency on `arcor2~=0.26.0`. + +## [0.21.0] - 2022-10-28 + +### Changed + +- Switched to Python 3.10, updated dependencies. + +## [0.20.1] - 2022-08-07 + +### Changed + +- Update of scene client. + +## [0.20.0] - 2022-01-25 + +### Changed + +- Breaking change of WebSockets API (`ActionStateBefore` event). +- Switched to Python 3.9, updated dependencies. + +## [0.19.3] - 2021-11-15 + +## Fixed + +- Improved handling of script/objects initialization failures (`arcor2_runtime`). + +## [0.19.2] - 2021-11-08 + +## Fixed + +- Fixed mutual dependency between `arcor2_execution_data` and `arcor2_runtime` (`package.py` moved to `arcor2_runtime`). + +## [0.19.1] - 2021-11-01 + +## Changed + +- Updated dependency on arcor2_runtime + +## [0.19.0] - 2021-10-25 + +### Changed + +- Make RPCs less blocking. +- New environment variables `ARCOR2_EXECUTION_DEBUG` and `ARCOR2_EXECUTION_ASYNCIO_DEBUG` (see README for details). +- Added dependency on `3rdparty:websocket-client` to make `LoggingMixin` work. +- Support for debugging. + - The script can now be started in paused state. + - Breakpoints can be set on action points. + - The paused script can be stepped to the following action. +- Better handling of exceptions in asyncio tasks. + - More useful traceback is printed out. + - In development mode, an unhandled exception leads to shutdown of a service. + - In production mode, traceback is printed out and the service tries to continue. +- Relaying events with EEF poses/joints from the main script to the clients. + - The script streams those by default for all robots. For mode details, please see README of `arcor2_runtime`. + +## [0.18.1] - 2021-09-02 + +### Changed +- Added EXPOSE to dockerfile + + +## [0.18.0] - 2021-08-05 + +### Changed + +- Dependency on `arcor2==0.20.0` where `Robot` API changed. + + +## [0.17.0] - 2021-07-29 + +### Changed + +- More stuff is now done asynchronously. +- Listing packages is now done in parallel. +- Improved logging (more events are logged). + +### Fixed + +- Exceptions were sometimes not reported. + +## [0.16.0] - 2021-06-14 + +### Changed +- Dependency on `arcor2` 0.18.0. +- Dependency on `arcor2_execution_data` 0.11.0. + +## [0.15.0] - 2021-06-14 + +### Changed +- Dependency on `arcor2` 0.17.0 (`constants` renamed to `parameters` in the `Project` model). + +## [0.14.0] - 2021-05-21 + +### Changed +- Dependency on arcor2 0.16.0 (updated `Resources` class). + +## [0.13.0] - 2021-04-20 + +### Changed +- Dependency on arcor2 0.15.0 with updated REST client. + +## [0.12.0] - 2021-03-30 + +### Changed +- Dependency on arcor2 0.14.0. +- Reporting `paussing` before `paused` and `stopping` before `stopped`. + +### Fixed +- Script was stopped using a wrong signal. + - Execution used SIGTERM instead of SIGINT. + - Because of this, the script was not stopped gracefully. + +## [0.11.1] - 2021-03-15 + +### Fixed +- Script was stopped using wrong signal (SIGTERM instead of SIGINT). + - Because of this, the script was not stopped gracefully and `cleanup` methods of objects were not executed. + +## [0.11.0] - 2021-02-08 + +### Changed +- Execution state reporting was improved + - 'CurrentAction' and 'ActionState' events -> 'ActionStateBefore' and 'ActionStateAfter'. + - 'ActionStateBefore' contains action id and its parameters. + - 'ActionStateAfter' contains action id and its results. + - 'PackageState' RPC removed. + +## [0.10.0] - 2020-12-14 + +### Changed +- ARCOR2 dependency updated. + +## [0.9.0] - 2020-10-22 + +### Changed +- Sets `project_meta` property of `PackageSummary` if the execution package contains `project.json` file. + + +## [0.8.1] - 2020-10-19 + +### Changed +- ARCOR2 dependency updated + +## [0.8.0] - 2020-09-24 +### Changed +- Initial release of the separated package. +- Execution service is now ok with packages that do not contain scene/project/package.json. +- Execution service now sends PackageChanged events (on: new, rename, delete). +- New environment variable: ARCOR2_EXECUTION_URL (defaults to 'ws://0.0.0.0:6790'). +- Main script now don't have to be executable and contain shebang. + + +%package -n python3-arcor2-execution +Summary: ARCOR2 Execution service +Provides: python-arcor2-execution +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-arcor2-execution +# arcor2_execution + +## Environment variables + +- `ARCOR2_EXECUTION_URL=ws://0.0.0.0:6790` - by default, the service listens on port 6790. +- `ARCOR2_MAX_RPC_DURATION=0.1` - by default, a warning is emitted when any RPC call takes longer than 0.1 second. +- `ARCOR2_EXECUTION_DEBUG=1` - switches logger to the `DEBUG` level. +- `ARCOR2_ARSERVER_ASYNCIO_DEBUG=1` - turns on `asyncio` debug output (helpful to debug problems related to concurrency). +# Changelog + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), + +## [1.0.0] - 2023-02-14 + +### Changed + +- Marked as a stable version. + +## [0.22.0] - 2022-12-12 + +### Changed + +- Dependency on `arcor2~=0.26.0`. + +## [0.21.0] - 2022-10-28 + +### Changed + +- Switched to Python 3.10, updated dependencies. + +## [0.20.1] - 2022-08-07 + +### Changed + +- Update of scene client. + +## [0.20.0] - 2022-01-25 + +### Changed + +- Breaking change of WebSockets API (`ActionStateBefore` event). +- Switched to Python 3.9, updated dependencies. + +## [0.19.3] - 2021-11-15 + +## Fixed + +- Improved handling of script/objects initialization failures (`arcor2_runtime`). + +## [0.19.2] - 2021-11-08 + +## Fixed + +- Fixed mutual dependency between `arcor2_execution_data` and `arcor2_runtime` (`package.py` moved to `arcor2_runtime`). + +## [0.19.1] - 2021-11-01 + +## Changed + +- Updated dependency on arcor2_runtime + +## [0.19.0] - 2021-10-25 + +### Changed + +- Make RPCs less blocking. +- New environment variables `ARCOR2_EXECUTION_DEBUG` and `ARCOR2_EXECUTION_ASYNCIO_DEBUG` (see README for details). +- Added dependency on `3rdparty:websocket-client` to make `LoggingMixin` work. +- Support for debugging. + - The script can now be started in paused state. + - Breakpoints can be set on action points. + - The paused script can be stepped to the following action. +- Better handling of exceptions in asyncio tasks. + - More useful traceback is printed out. + - In development mode, an unhandled exception leads to shutdown of a service. + - In production mode, traceback is printed out and the service tries to continue. +- Relaying events with EEF poses/joints from the main script to the clients. + - The script streams those by default for all robots. For mode details, please see README of `arcor2_runtime`. + +## [0.18.1] - 2021-09-02 + +### Changed +- Added EXPOSE to dockerfile + + +## [0.18.0] - 2021-08-05 + +### Changed + +- Dependency on `arcor2==0.20.0` where `Robot` API changed. + + +## [0.17.0] - 2021-07-29 + +### Changed + +- More stuff is now done asynchronously. +- Listing packages is now done in parallel. +- Improved logging (more events are logged). + +### Fixed + +- Exceptions were sometimes not reported. + +## [0.16.0] - 2021-06-14 + +### Changed +- Dependency on `arcor2` 0.18.0. +- Dependency on `arcor2_execution_data` 0.11.0. + +## [0.15.0] - 2021-06-14 + +### Changed +- Dependency on `arcor2` 0.17.0 (`constants` renamed to `parameters` in the `Project` model). + +## [0.14.0] - 2021-05-21 + +### Changed +- Dependency on arcor2 0.16.0 (updated `Resources` class). + +## [0.13.0] - 2021-04-20 + +### Changed +- Dependency on arcor2 0.15.0 with updated REST client. + +## [0.12.0] - 2021-03-30 + +### Changed +- Dependency on arcor2 0.14.0. +- Reporting `paussing` before `paused` and `stopping` before `stopped`. + +### Fixed +- Script was stopped using a wrong signal. + - Execution used SIGTERM instead of SIGINT. + - Because of this, the script was not stopped gracefully. + +## [0.11.1] - 2021-03-15 + +### Fixed +- Script was stopped using wrong signal (SIGTERM instead of SIGINT). + - Because of this, the script was not stopped gracefully and `cleanup` methods of objects were not executed. + +## [0.11.0] - 2021-02-08 + +### Changed +- Execution state reporting was improved + - 'CurrentAction' and 'ActionState' events -> 'ActionStateBefore' and 'ActionStateAfter'. + - 'ActionStateBefore' contains action id and its parameters. + - 'ActionStateAfter' contains action id and its results. + - 'PackageState' RPC removed. + +## [0.10.0] - 2020-12-14 + +### Changed +- ARCOR2 dependency updated. + +## [0.9.0] - 2020-10-22 + +### Changed +- Sets `project_meta` property of `PackageSummary` if the execution package contains `project.json` file. + + +## [0.8.1] - 2020-10-19 + +### Changed +- ARCOR2 dependency updated + +## [0.8.0] - 2020-09-24 +### Changed +- Initial release of the separated package. +- Execution service is now ok with packages that do not contain scene/project/package.json. +- Execution service now sends PackageChanged events (on: new, rename, delete). +- New environment variable: ARCOR2_EXECUTION_URL (defaults to 'ws://0.0.0.0:6790'). +- Main script now don't have to be executable and contain shebang. + + +%package help +Summary: Development documents and examples for arcor2-execution +Provides: python3-arcor2-execution-doc +%description help +# arcor2_execution + +## Environment variables + +- `ARCOR2_EXECUTION_URL=ws://0.0.0.0:6790` - by default, the service listens on port 6790. +- `ARCOR2_MAX_RPC_DURATION=0.1` - by default, a warning is emitted when any RPC call takes longer than 0.1 second. +- `ARCOR2_EXECUTION_DEBUG=1` - switches logger to the `DEBUG` level. +- `ARCOR2_ARSERVER_ASYNCIO_DEBUG=1` - turns on `asyncio` debug output (helpful to debug problems related to concurrency). +# Changelog + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), + +## [1.0.0] - 2023-02-14 + +### Changed + +- Marked as a stable version. + +## [0.22.0] - 2022-12-12 + +### Changed + +- Dependency on `arcor2~=0.26.0`. + +## [0.21.0] - 2022-10-28 + +### Changed + +- Switched to Python 3.10, updated dependencies. + +## [0.20.1] - 2022-08-07 + +### Changed + +- Update of scene client. + +## [0.20.0] - 2022-01-25 + +### Changed + +- Breaking change of WebSockets API (`ActionStateBefore` event). +- Switched to Python 3.9, updated dependencies. + +## [0.19.3] - 2021-11-15 + +## Fixed + +- Improved handling of script/objects initialization failures (`arcor2_runtime`). + +## [0.19.2] - 2021-11-08 + +## Fixed + +- Fixed mutual dependency between `arcor2_execution_data` and `arcor2_runtime` (`package.py` moved to `arcor2_runtime`). + +## [0.19.1] - 2021-11-01 + +## Changed + +- Updated dependency on arcor2_runtime + +## [0.19.0] - 2021-10-25 + +### Changed + +- Make RPCs less blocking. +- New environment variables `ARCOR2_EXECUTION_DEBUG` and `ARCOR2_EXECUTION_ASYNCIO_DEBUG` (see README for details). +- Added dependency on `3rdparty:websocket-client` to make `LoggingMixin` work. +- Support for debugging. + - The script can now be started in paused state. + - Breakpoints can be set on action points. + - The paused script can be stepped to the following action. +- Better handling of exceptions in asyncio tasks. + - More useful traceback is printed out. + - In development mode, an unhandled exception leads to shutdown of a service. + - In production mode, traceback is printed out and the service tries to continue. +- Relaying events with EEF poses/joints from the main script to the clients. + - The script streams those by default for all robots. For mode details, please see README of `arcor2_runtime`. + +## [0.18.1] - 2021-09-02 + +### Changed +- Added EXPOSE to dockerfile + + +## [0.18.0] - 2021-08-05 + +### Changed + +- Dependency on `arcor2==0.20.0` where `Robot` API changed. + + +## [0.17.0] - 2021-07-29 + +### Changed + +- More stuff is now done asynchronously. +- Listing packages is now done in parallel. +- Improved logging (more events are logged). + +### Fixed + +- Exceptions were sometimes not reported. + +## [0.16.0] - 2021-06-14 + +### Changed +- Dependency on `arcor2` 0.18.0. +- Dependency on `arcor2_execution_data` 0.11.0. + +## [0.15.0] - 2021-06-14 + +### Changed +- Dependency on `arcor2` 0.17.0 (`constants` renamed to `parameters` in the `Project` model). + +## [0.14.0] - 2021-05-21 + +### Changed +- Dependency on arcor2 0.16.0 (updated `Resources` class). + +## [0.13.0] - 2021-04-20 + +### Changed +- Dependency on arcor2 0.15.0 with updated REST client. + +## [0.12.0] - 2021-03-30 + +### Changed +- Dependency on arcor2 0.14.0. +- Reporting `paussing` before `paused` and `stopping` before `stopped`. + +### Fixed +- Script was stopped using a wrong signal. + - Execution used SIGTERM instead of SIGINT. + - Because of this, the script was not stopped gracefully. + +## [0.11.1] - 2021-03-15 + +### Fixed +- Script was stopped using wrong signal (SIGTERM instead of SIGINT). + - Because of this, the script was not stopped gracefully and `cleanup` methods of objects were not executed. + +## [0.11.0] - 2021-02-08 + +### Changed +- Execution state reporting was improved + - 'CurrentAction' and 'ActionState' events -> 'ActionStateBefore' and 'ActionStateAfter'. + - 'ActionStateBefore' contains action id and its parameters. + - 'ActionStateAfter' contains action id and its results. + - 'PackageState' RPC removed. + +## [0.10.0] - 2020-12-14 + +### Changed +- ARCOR2 dependency updated. + +## [0.9.0] - 2020-10-22 + +### Changed +- Sets `project_meta` property of `PackageSummary` if the execution package contains `project.json` file. + + +## [0.8.1] - 2020-10-19 + +### Changed +- ARCOR2 dependency updated + +## [0.8.0] - 2020-09-24 +### Changed +- Initial release of the separated package. +- Execution service is now ok with packages that do not contain scene/project/package.json. +- Execution service now sends PackageChanged events (on: new, rename, delete). +- New environment variable: ARCOR2_EXECUTION_URL (defaults to 'ws://0.0.0.0:6790'). +- Main script now don't have to be executable and contain shebang. + + +%prep +%autosetup -n arcor2-execution-1.0.0 + +%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-arcor2-execution -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated |
