From 6a238f6bbe9ce63411732abac7df9e372928d186 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 07:12:25 +0000 Subject: automatic import of python-testflows --- python-testflows.spec | 327 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 327 insertions(+) create mode 100644 python-testflows.spec (limited to 'python-testflows.spec') diff --git a/python-testflows.spec b/python-testflows.spec new file mode 100644 index 0000000..70a9056 --- /dev/null +++ b/python-testflows.spec @@ -0,0 +1,327 @@ +%global _empty_manifest_terminate_build 0 +Name: python-testflows +Version: 1.9.60 +Release: 1 +Summary: TestFlows.com Open-Source Software Testing Framework +License: Apache-2.0 +URL: https://github.com/testflows/testflows +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/3e/2db88d52f390b07bfdb48c97279ec87e6270480d7ecfec46dfc0a8dd57c7/testflows-1.9.60.tar.gz +BuildArch: noarch + + +%description +# TestFlows.com Open-Source Software Testing Framework + +![TestFlows.com Open-Source Software Testing Framework](https://raw.githubusercontent.com/testflows/TestFlows-ArtWork/master/images/logo.png) + +## Introduction + +[TestFlows.com Open-Source Software Testing Framework] is a **flow** oriented test framework that can be used for functional, +integration, acceptance and unit testing. It uses **everything is a test** approach +with the focus on providing test designers flexibility in writing and running their tests. + +## Documentation + +You can find [TestFlows.com Open-Source Software Testing Framework]'s documentation at https://testflows.com. + +## Supported environment + +* [Ubuntu] 20.04 +* [Python 3] >= 3.8 + +## Installation + +You can install [TestFlows.com Open-Source Software Testing Framework] using [pip3] + +```bash +$ pip3 install testflows +``` + +or from sources + +```bash +$ git clone https://github.com/testflows/TestFlows.git +$ cd TestFlows +$ ./build && ./install +``` + +## Styles + +[TestFlows.com Open-Source Software Testing Framework] supports defining tests using either the traditional keywords + +* **Module**, **Suite**, **Test**, and **Step** + +or using keywords such as + +* **Module**, **Feature**, **Scenario**, **Given**, **When**, **Then**, **But**, **And**, **By** and **Finally** + +## Hello TestFlows + +An inline test scenario can be defined as follows + +```python +from testflows.core import Scenario + +with Scenario("Hello TestFlows!"): + pass +``` + +then just run it using `python3` command + +```bash +$ python3 ./test.py +Jul 12,2020 14:30:20 ⟥ Scenario Hello TestFlows! + 1ms ⟥⟤ OK Hello TestFlows!, /Hello TestFlows! + +Passing + +✔ [ OK ] /Hello TestFlows! + +1 scenario (1 ok) + +Total time 2ms + +Executed on Jul 12,2020 14:30 +TestFlows.com Open-Source Software Testing Framework v1.6.200712.1132037 +``` + +## Want to know more? + +Find more information about [TestFlows.com Open-Source Software Testing Framework] at https://testflows.com. +Join our channel on [Telegram]. + +[TestFlows.com Open-Source Software Testing Framework]: https://testflows.com +[Telegram]: https://telegram.me/testflows +[pip3]: https://github.com/pypa/pip +[Python 3]: https://www.python.org/ +[Ubuntu]: https://ubuntu.com/ + + +%package -n python3-testflows +Summary: TestFlows.com Open-Source Software Testing Framework +Provides: python-testflows +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-testflows +# TestFlows.com Open-Source Software Testing Framework + +![TestFlows.com Open-Source Software Testing Framework](https://raw.githubusercontent.com/testflows/TestFlows-ArtWork/master/images/logo.png) + +## Introduction + +[TestFlows.com Open-Source Software Testing Framework] is a **flow** oriented test framework that can be used for functional, +integration, acceptance and unit testing. It uses **everything is a test** approach +with the focus on providing test designers flexibility in writing and running their tests. + +## Documentation + +You can find [TestFlows.com Open-Source Software Testing Framework]'s documentation at https://testflows.com. + +## Supported environment + +* [Ubuntu] 20.04 +* [Python 3] >= 3.8 + +## Installation + +You can install [TestFlows.com Open-Source Software Testing Framework] using [pip3] + +```bash +$ pip3 install testflows +``` + +or from sources + +```bash +$ git clone https://github.com/testflows/TestFlows.git +$ cd TestFlows +$ ./build && ./install +``` + +## Styles + +[TestFlows.com Open-Source Software Testing Framework] supports defining tests using either the traditional keywords + +* **Module**, **Suite**, **Test**, and **Step** + +or using keywords such as + +* **Module**, **Feature**, **Scenario**, **Given**, **When**, **Then**, **But**, **And**, **By** and **Finally** + +## Hello TestFlows + +An inline test scenario can be defined as follows + +```python +from testflows.core import Scenario + +with Scenario("Hello TestFlows!"): + pass +``` + +then just run it using `python3` command + +```bash +$ python3 ./test.py +Jul 12,2020 14:30:20 ⟥ Scenario Hello TestFlows! + 1ms ⟥⟤ OK Hello TestFlows!, /Hello TestFlows! + +Passing + +✔ [ OK ] /Hello TestFlows! + +1 scenario (1 ok) + +Total time 2ms + +Executed on Jul 12,2020 14:30 +TestFlows.com Open-Source Software Testing Framework v1.6.200712.1132037 +``` + +## Want to know more? + +Find more information about [TestFlows.com Open-Source Software Testing Framework] at https://testflows.com. +Join our channel on [Telegram]. + +[TestFlows.com Open-Source Software Testing Framework]: https://testflows.com +[Telegram]: https://telegram.me/testflows +[pip3]: https://github.com/pypa/pip +[Python 3]: https://www.python.org/ +[Ubuntu]: https://ubuntu.com/ + + +%package help +Summary: Development documents and examples for testflows +Provides: python3-testflows-doc +%description help +# TestFlows.com Open-Source Software Testing Framework + +![TestFlows.com Open-Source Software Testing Framework](https://raw.githubusercontent.com/testflows/TestFlows-ArtWork/master/images/logo.png) + +## Introduction + +[TestFlows.com Open-Source Software Testing Framework] is a **flow** oriented test framework that can be used for functional, +integration, acceptance and unit testing. It uses **everything is a test** approach +with the focus on providing test designers flexibility in writing and running their tests. + +## Documentation + +You can find [TestFlows.com Open-Source Software Testing Framework]'s documentation at https://testflows.com. + +## Supported environment + +* [Ubuntu] 20.04 +* [Python 3] >= 3.8 + +## Installation + +You can install [TestFlows.com Open-Source Software Testing Framework] using [pip3] + +```bash +$ pip3 install testflows +``` + +or from sources + +```bash +$ git clone https://github.com/testflows/TestFlows.git +$ cd TestFlows +$ ./build && ./install +``` + +## Styles + +[TestFlows.com Open-Source Software Testing Framework] supports defining tests using either the traditional keywords + +* **Module**, **Suite**, **Test**, and **Step** + +or using keywords such as + +* **Module**, **Feature**, **Scenario**, **Given**, **When**, **Then**, **But**, **And**, **By** and **Finally** + +## Hello TestFlows + +An inline test scenario can be defined as follows + +```python +from testflows.core import Scenario + +with Scenario("Hello TestFlows!"): + pass +``` + +then just run it using `python3` command + +```bash +$ python3 ./test.py +Jul 12,2020 14:30:20 ⟥ Scenario Hello TestFlows! + 1ms ⟥⟤ OK Hello TestFlows!, /Hello TestFlows! + +Passing + +✔ [ OK ] /Hello TestFlows! + +1 scenario (1 ok) + +Total time 2ms + +Executed on Jul 12,2020 14:30 +TestFlows.com Open-Source Software Testing Framework v1.6.200712.1132037 +``` + +## Want to know more? + +Find more information about [TestFlows.com Open-Source Software Testing Framework] at https://testflows.com. +Join our channel on [Telegram]. + +[TestFlows.com Open-Source Software Testing Framework]: https://testflows.com +[Telegram]: https://telegram.me/testflows +[pip3]: https://github.com/pypa/pip +[Python 3]: https://www.python.org/ +[Ubuntu]: https://ubuntu.com/ + + +%prep +%autosetup -n testflows-1.9.60 + +%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-testflows -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 1.9.60-1 +- Package Spec generated -- cgit v1.2.3