diff options
Diffstat (limited to 'python-altunityrunner.spec')
| -rw-r--r-- | python-altunityrunner.spec | 225 |
1 files changed, 225 insertions, 0 deletions
diff --git a/python-altunityrunner.spec b/python-altunityrunner.spec new file mode 100644 index 0000000..2da15e5 --- /dev/null +++ b/python-altunityrunner.spec @@ -0,0 +1,225 @@ +%global _empty_manifest_terminate_build 0 +Name: python-altunityrunner +Version: 1.7.2 +Release: 1 +Summary: Python bindings for the AltUnity Tester framework. AltUnity Tester is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them. +License: GNU GPLv3 +URL: https://gitlab.com/altom/altunity/altunitytester +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/49/90/43d55e5bc79058a313096ae26f2419969dd1e65f24907db2883558e8b571/altunityrunner-1.7.2.tar.gz +BuildArch: noarch + + +%description +# AltUnityTester Python Bindings + +This package contains an library for adding Python language binding to the AltUnity Tester framework. + +AltUnity Tester is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them using tests written in C#, Python or Java. + +You can run your tests on real devices (mobile, PCs, etc.) or inside the Unity Editor. + +Read the documentation on https://altom.com/altunity/docs/altunitytester/ + +## Get Started + +Check out the [Get Started](https://altom.com/altunity/docs/altunitytester/pages/get-started.html) guide from the documentation. + +## Development + +* Code Style: [PEP-0008](https://www.python.org/dev/peps/pep-0008/) +* Docstring style: [Google Style Docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html). + +### Running Tests + +Run the following command to install the dev dependencies: + +``` +$ pip install -r requirements-dev.txt +``` + +#### Unit Tests + +``` +$ pytest tests/unit/ +``` + +#### Integration Tests + +``` +$ pytest tests/integration/ +``` + +## Contributing + +Check out the full contributing guide [contributing](https://altom.com/altunity/docs/altunitytester/pages/contributing.html). + +## Support + +Join our Google Group for questions and discussions: https://groups.google.com/a/altom.com/forum/#!forum/altunityforum + +Join our Discord Server to chat with other members of the community: https://discord.gg/Ag9RSuS + +## License + +Distributed under the **GNU General Public License v3.0**. See [LICENSE](https://gitlab.com/altom/altunity/altunitytester/-/blob/master/LICENSE) for more information. + +%package -n python3-altunityrunner +Summary: Python bindings for the AltUnity Tester framework. AltUnity Tester is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them. +Provides: python-altunityrunner +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-altunityrunner +# AltUnityTester Python Bindings + +This package contains an library for adding Python language binding to the AltUnity Tester framework. + +AltUnity Tester is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them using tests written in C#, Python or Java. + +You can run your tests on real devices (mobile, PCs, etc.) or inside the Unity Editor. + +Read the documentation on https://altom.com/altunity/docs/altunitytester/ + +## Get Started + +Check out the [Get Started](https://altom.com/altunity/docs/altunitytester/pages/get-started.html) guide from the documentation. + +## Development + +* Code Style: [PEP-0008](https://www.python.org/dev/peps/pep-0008/) +* Docstring style: [Google Style Docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html). + +### Running Tests + +Run the following command to install the dev dependencies: + +``` +$ pip install -r requirements-dev.txt +``` + +#### Unit Tests + +``` +$ pytest tests/unit/ +``` + +#### Integration Tests + +``` +$ pytest tests/integration/ +``` + +## Contributing + +Check out the full contributing guide [contributing](https://altom.com/altunity/docs/altunitytester/pages/contributing.html). + +## Support + +Join our Google Group for questions and discussions: https://groups.google.com/a/altom.com/forum/#!forum/altunityforum + +Join our Discord Server to chat with other members of the community: https://discord.gg/Ag9RSuS + +## License + +Distributed under the **GNU General Public License v3.0**. See [LICENSE](https://gitlab.com/altom/altunity/altunitytester/-/blob/master/LICENSE) for more information. + +%package help +Summary: Development documents and examples for altunityrunner +Provides: python3-altunityrunner-doc +%description help +# AltUnityTester Python Bindings + +This package contains an library for adding Python language binding to the AltUnity Tester framework. + +AltUnity Tester is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them using tests written in C#, Python or Java. + +You can run your tests on real devices (mobile, PCs, etc.) or inside the Unity Editor. + +Read the documentation on https://altom.com/altunity/docs/altunitytester/ + +## Get Started + +Check out the [Get Started](https://altom.com/altunity/docs/altunitytester/pages/get-started.html) guide from the documentation. + +## Development + +* Code Style: [PEP-0008](https://www.python.org/dev/peps/pep-0008/) +* Docstring style: [Google Style Docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html). + +### Running Tests + +Run the following command to install the dev dependencies: + +``` +$ pip install -r requirements-dev.txt +``` + +#### Unit Tests + +``` +$ pytest tests/unit/ +``` + +#### Integration Tests + +``` +$ pytest tests/integration/ +``` + +## Contributing + +Check out the full contributing guide [contributing](https://altom.com/altunity/docs/altunitytester/pages/contributing.html). + +## Support + +Join our Google Group for questions and discussions: https://groups.google.com/a/altom.com/forum/#!forum/altunityforum + +Join our Discord Server to chat with other members of the community: https://discord.gg/Ag9RSuS + +## License + +Distributed under the **GNU General Public License v3.0**. See [LICENSE](https://gitlab.com/altom/altunity/altunitytester/-/blob/master/LICENSE) for more information. + +%prep +%autosetup -n altunityrunner-1.7.2 + +%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-altunityrunner -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.2-1 +- Package Spec generated |
