summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 05:18:09 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 05:18:09 +0000
commitb905a547433c4c31def7c7f57aa291a424737ec9 (patch)
tree17e04c36163eaaf1c99d076534da30181eea6557
parentd9d30b7345a9e13fc6b6a1385fed62924a0cbc36 (diff)
automatic import of python-preacher
-rw-r--r--.gitignore1
-rw-r--r--python-preacher.spec367
-rw-r--r--sources1
3 files changed, 369 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..360ab30 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/preacher-0.15.11.tar.gz
diff --git a/python-preacher.spec b/python-preacher.spec
new file mode 100644
index 0000000..fe15939
--- /dev/null
+++ b/python-preacher.spec
@@ -0,0 +1,367 @@
+%global _empty_manifest_terminate_build 0
+Name: python-preacher
+Version: 0.15.11
+Release: 1
+Summary: Web API Verification without Coding.
+License: MIT
+URL: https://preacher.readthedocs.io/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/59/79/93c060114be1e5d1c77255131f6606ad0db3ec3f3c8ab6008389d792c7c8/preacher-0.15.11.tar.gz
+BuildArch: noarch
+
+Requires: python3-pluggy
+Requires: python3-dateutil
+Requires: python3-pyhamcrest
+Requires: python3-requests
+Requires: python3-jq
+Requires: python3-lxml
+Requires: python3-yamlen
+Requires: python3-click
+Requires: python3-colorama
+Requires: python3-Jinja2
+
+%description
+# Preacher: Web API Verification without Coding
+
+[![PyPI version](https://badge.fury.io/py/preacher.svg)][PyPI]
+[![Documentation Status](https://readthedocs.org/projects/preacher/badge/?version=latest)][Read the Docs]
+[![CircleCI](https://circleci.com/gh/ymoch/preacher.svg?style=svg)][Circle CI]
+[![Codecov](https://codecov.io/gh/ymoch/preacher/branch/master/graph/badge.svg)][Codecov]
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/ymoch/preacher.svg?logo=lgtm&logoWidth=18)][LGTM]
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)][Black]
+
+Preacher verifies API servers,
+which requests to the servers and verify the responses along to given scenarios.
+
+Test scenarios are written only in [YAML][] declaratively, without coding.
+In spite of that, Preacher can validate your web API flexibly,
+which enables you to test using real (neither mocks nor sandboxes) backends.
+
+- Responses are analyzed [jq][] or [XPath][] queries
+- Validation rules are based on [Hamcrest][] (implemented by [PyHamcrest][]).
+
+The full documentation is available at [preacher.readthedocs.io][Read the Docs].
+
+## Targets
+
+- Flexible validation to test with real backends: neither mocks nor sandboxes.
+ - Matcher-based validation.
+- CI Friendly to automate easily.
+ - A CLI application and YAML-based scenarios.
+
+## Usage
+
+First, install Preacher.
+
+The most basic way to install Preacher is using `pip`. Supports only Python 3.7+.
+
+```sh
+$ pip install preacher
+$ preacher-cli --version
+```
+
+Instead of `pip`, Docker images are also available on
+[Docker Hub](https://hub.docker.com/r/ymoch/preacher)
+as `ymoch/preacher`.
+By default, the container working directory is `/work`,
+and the host directory may be mounted here.
+
+```sh
+$ docker pull ymock/preacher
+$ docker run -v $PWD:/work ymoch/preacher preacher-cli --version
+```
+
+Second, write your own scenario.
+
+```yaml
+# scenario.yml
+label: An example of a scenario
+cases:
+ - label: An example of a case
+ request: /path/to/foo
+ response:
+ status_code: 200
+ body:
+ - describe: .foo
+ should:
+ equal: bar
+```
+
+Then, run ``preacher-cli`` command.
+
+```sh
+$ preacher-cli -u http://your.domain.com/base scenario.yml
+```
+
+For more information such as grammer of scenarios,
+see [the full documentation][Read the Docs].
+
+## License
+
+[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg)][MIT License]
+
+Copyright (c) 2019 Yu MOCHIZUKI
+
+
+[YAML]: https://yaml.org/
+[jq]: https://stedolan.github.io/jq/
+[XPath]: https://www.w3.org/TR/xpath/all/
+[Hamcrest]: http://hamcrest.org/
+[PyHamcrest]: https://pyhamcrest.readthedocs.io/
+[MIT License]: https://opensource.org/licenses/MIT
+
+[Read the Docs]: https://preacher.readthedocs.io/
+[PyPI]: https://badge.fury.io/py/preacher
+[Circle CI]: https://circleci.com/gh/ymoch/preacher
+[Codecov]: https://codecov.io/gh/ymoch/preacher
+[LGTM]: https://lgtm.com/projects/g/ymoch/preacher/context:python
+[Black]: https://github.com/psf/black
+
+
+%package -n python3-preacher
+Summary: Web API Verification without Coding.
+Provides: python-preacher
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-preacher
+# Preacher: Web API Verification without Coding
+
+[![PyPI version](https://badge.fury.io/py/preacher.svg)][PyPI]
+[![Documentation Status](https://readthedocs.org/projects/preacher/badge/?version=latest)][Read the Docs]
+[![CircleCI](https://circleci.com/gh/ymoch/preacher.svg?style=svg)][Circle CI]
+[![Codecov](https://codecov.io/gh/ymoch/preacher/branch/master/graph/badge.svg)][Codecov]
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/ymoch/preacher.svg?logo=lgtm&logoWidth=18)][LGTM]
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)][Black]
+
+Preacher verifies API servers,
+which requests to the servers and verify the responses along to given scenarios.
+
+Test scenarios are written only in [YAML][] declaratively, without coding.
+In spite of that, Preacher can validate your web API flexibly,
+which enables you to test using real (neither mocks nor sandboxes) backends.
+
+- Responses are analyzed [jq][] or [XPath][] queries
+- Validation rules are based on [Hamcrest][] (implemented by [PyHamcrest][]).
+
+The full documentation is available at [preacher.readthedocs.io][Read the Docs].
+
+## Targets
+
+- Flexible validation to test with real backends: neither mocks nor sandboxes.
+ - Matcher-based validation.
+- CI Friendly to automate easily.
+ - A CLI application and YAML-based scenarios.
+
+## Usage
+
+First, install Preacher.
+
+The most basic way to install Preacher is using `pip`. Supports only Python 3.7+.
+
+```sh
+$ pip install preacher
+$ preacher-cli --version
+```
+
+Instead of `pip`, Docker images are also available on
+[Docker Hub](https://hub.docker.com/r/ymoch/preacher)
+as `ymoch/preacher`.
+By default, the container working directory is `/work`,
+and the host directory may be mounted here.
+
+```sh
+$ docker pull ymock/preacher
+$ docker run -v $PWD:/work ymoch/preacher preacher-cli --version
+```
+
+Second, write your own scenario.
+
+```yaml
+# scenario.yml
+label: An example of a scenario
+cases:
+ - label: An example of a case
+ request: /path/to/foo
+ response:
+ status_code: 200
+ body:
+ - describe: .foo
+ should:
+ equal: bar
+```
+
+Then, run ``preacher-cli`` command.
+
+```sh
+$ preacher-cli -u http://your.domain.com/base scenario.yml
+```
+
+For more information such as grammer of scenarios,
+see [the full documentation][Read the Docs].
+
+## License
+
+[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg)][MIT License]
+
+Copyright (c) 2019 Yu MOCHIZUKI
+
+
+[YAML]: https://yaml.org/
+[jq]: https://stedolan.github.io/jq/
+[XPath]: https://www.w3.org/TR/xpath/all/
+[Hamcrest]: http://hamcrest.org/
+[PyHamcrest]: https://pyhamcrest.readthedocs.io/
+[MIT License]: https://opensource.org/licenses/MIT
+
+[Read the Docs]: https://preacher.readthedocs.io/
+[PyPI]: https://badge.fury.io/py/preacher
+[Circle CI]: https://circleci.com/gh/ymoch/preacher
+[Codecov]: https://codecov.io/gh/ymoch/preacher
+[LGTM]: https://lgtm.com/projects/g/ymoch/preacher/context:python
+[Black]: https://github.com/psf/black
+
+
+%package help
+Summary: Development documents and examples for preacher
+Provides: python3-preacher-doc
+%description help
+# Preacher: Web API Verification without Coding
+
+[![PyPI version](https://badge.fury.io/py/preacher.svg)][PyPI]
+[![Documentation Status](https://readthedocs.org/projects/preacher/badge/?version=latest)][Read the Docs]
+[![CircleCI](https://circleci.com/gh/ymoch/preacher.svg?style=svg)][Circle CI]
+[![Codecov](https://codecov.io/gh/ymoch/preacher/branch/master/graph/badge.svg)][Codecov]
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/ymoch/preacher.svg?logo=lgtm&logoWidth=18)][LGTM]
+[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)][Black]
+
+Preacher verifies API servers,
+which requests to the servers and verify the responses along to given scenarios.
+
+Test scenarios are written only in [YAML][] declaratively, without coding.
+In spite of that, Preacher can validate your web API flexibly,
+which enables you to test using real (neither mocks nor sandboxes) backends.
+
+- Responses are analyzed [jq][] or [XPath][] queries
+- Validation rules are based on [Hamcrest][] (implemented by [PyHamcrest][]).
+
+The full documentation is available at [preacher.readthedocs.io][Read the Docs].
+
+## Targets
+
+- Flexible validation to test with real backends: neither mocks nor sandboxes.
+ - Matcher-based validation.
+- CI Friendly to automate easily.
+ - A CLI application and YAML-based scenarios.
+
+## Usage
+
+First, install Preacher.
+
+The most basic way to install Preacher is using `pip`. Supports only Python 3.7+.
+
+```sh
+$ pip install preacher
+$ preacher-cli --version
+```
+
+Instead of `pip`, Docker images are also available on
+[Docker Hub](https://hub.docker.com/r/ymoch/preacher)
+as `ymoch/preacher`.
+By default, the container working directory is `/work`,
+and the host directory may be mounted here.
+
+```sh
+$ docker pull ymock/preacher
+$ docker run -v $PWD:/work ymoch/preacher preacher-cli --version
+```
+
+Second, write your own scenario.
+
+```yaml
+# scenario.yml
+label: An example of a scenario
+cases:
+ - label: An example of a case
+ request: /path/to/foo
+ response:
+ status_code: 200
+ body:
+ - describe: .foo
+ should:
+ equal: bar
+```
+
+Then, run ``preacher-cli`` command.
+
+```sh
+$ preacher-cli -u http://your.domain.com/base scenario.yml
+```
+
+For more information such as grammer of scenarios,
+see [the full documentation][Read the Docs].
+
+## License
+
+[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg)][MIT License]
+
+Copyright (c) 2019 Yu MOCHIZUKI
+
+
+[YAML]: https://yaml.org/
+[jq]: https://stedolan.github.io/jq/
+[XPath]: https://www.w3.org/TR/xpath/all/
+[Hamcrest]: http://hamcrest.org/
+[PyHamcrest]: https://pyhamcrest.readthedocs.io/
+[MIT License]: https://opensource.org/licenses/MIT
+
+[Read the Docs]: https://preacher.readthedocs.io/
+[PyPI]: https://badge.fury.io/py/preacher
+[Circle CI]: https://circleci.com/gh/ymoch/preacher
+[Codecov]: https://codecov.io/gh/ymoch/preacher
+[LGTM]: https://lgtm.com/projects/g/ymoch/preacher/context:python
+[Black]: https://github.com/psf/black
+
+
+%prep
+%autosetup -n preacher-0.15.11
+
+%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-preacher -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.15.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6791321
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bcceb6fa0a308330678f6b954d09e8e3 preacher-0.15.11.tar.gz