diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:42:57 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 06:42:57 +0000 |
| commit | a546510076a38f69eaa69fcaa98c8333d3605466 (patch) | |
| tree | 85cbca834c5b7cd55415198c594bd1bb6651b5dc | |
| parent | 466935c166c4efa693af7bb4564a6a333c3d1dbb (diff) | |
automatic import of python-chaostoolkit-k6
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-chaostoolkit-k6.spec | 287 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 289 insertions, 0 deletions
@@ -0,0 +1 @@ +/chaostoolkit-k6-0.3.4.tar.gz diff --git a/python-chaostoolkit-k6.spec b/python-chaostoolkit-k6.spec new file mode 100644 index 0000000..55e0162 --- /dev/null +++ b/python-chaostoolkit-k6.spec @@ -0,0 +1,287 @@ +%global _empty_manifest_terminate_build 0 +Name: python-chaostoolkit-k6 +Version: 0.3.4 +Release: 1 +Summary: Chaos Toolkit Extension for k6. +License: Apache License Version 2.0 +URL: http://chaostoolkit.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/54/d8/f97b6999e891b844fc53f19cf5351b4e07ecf9fd5e10afe483b2d0105791/chaostoolkit-k6-0.3.4.tar.gz +BuildArch: noarch + +Requires: python3-chaostoolkit-lib +Requires: python3-logzero + +%description +# Chaos Toolkit Extension for k6. + +[](https://www.python.org/) + +This project is a collection of [actions][] and [probes][], gathered as an +extension to the [Chaos Toolkit][chaostoolkit]. + +[actions]: http://chaostoolkit.org/reference/api/experiment/#action +[probes]: http://chaostoolkit.org/reference/api/experiment/#probe +[chaostoolkit]: http://chaostoolkit.org + +## Install + +This package requires Python 3.5+ + +To be used from your experiment, this package must be installed in the Python +environment where [chaostoolkit][] already lives. + +``` +$ pip install -U chaostoolkit-k6 +``` + +## Usage + +Please explore the code to see existing probes and actions. +## Configuration + +## Contribute + +If you wish to contribute more functions to this package, you are more than +welcome to do so. Please, fork this project, make your changes following the +usual [PEP 8][pep8] code style, sprinkling with tests and submit a PR for +review. + +[pep8]: https://pycodestyle.readthedocs.io/en/latest/ + +The Chaos Toolkit projects require all contributors must sign a +[Developer Certificate of Origin][dco] on each commit they would like to merge +into the master branch of the repository. Please, make sure you can abide by +the rules of the DCO before submitting a PR. + +[dco]: https://github.com/probot/dco#how-it-works + +### Develop + +If you wish to develop on this project, make sure to install the development +dependencies. But first, [create a virtual environment][venv] and then install +those dependencies. + +[venv]: http://chaostoolkit.org/reference/usage/install/#create-a-virtual-environment + +```console +$ pip install -r requirements-dev.txt -r requirements.txt +``` + +Then, point your environment to this directory: + +```console +$ pip install -e . +``` + +Now, you can edit the files and they will be automatically be seen by your +environment, even when running from the `chaos` command locally. + +### Test + +To run the tests for the project execute the following: + +``` +$ pytest +``` + + +%package -n python3-chaostoolkit-k6 +Summary: Chaos Toolkit Extension for k6. +Provides: python-chaostoolkit-k6 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-chaostoolkit-k6 +# Chaos Toolkit Extension for k6. + +[](https://www.python.org/) + +This project is a collection of [actions][] and [probes][], gathered as an +extension to the [Chaos Toolkit][chaostoolkit]. + +[actions]: http://chaostoolkit.org/reference/api/experiment/#action +[probes]: http://chaostoolkit.org/reference/api/experiment/#probe +[chaostoolkit]: http://chaostoolkit.org + +## Install + +This package requires Python 3.5+ + +To be used from your experiment, this package must be installed in the Python +environment where [chaostoolkit][] already lives. + +``` +$ pip install -U chaostoolkit-k6 +``` + +## Usage + +Please explore the code to see existing probes and actions. +## Configuration + +## Contribute + +If you wish to contribute more functions to this package, you are more than +welcome to do so. Please, fork this project, make your changes following the +usual [PEP 8][pep8] code style, sprinkling with tests and submit a PR for +review. + +[pep8]: https://pycodestyle.readthedocs.io/en/latest/ + +The Chaos Toolkit projects require all contributors must sign a +[Developer Certificate of Origin][dco] on each commit they would like to merge +into the master branch of the repository. Please, make sure you can abide by +the rules of the DCO before submitting a PR. + +[dco]: https://github.com/probot/dco#how-it-works + +### Develop + +If you wish to develop on this project, make sure to install the development +dependencies. But first, [create a virtual environment][venv] and then install +those dependencies. + +[venv]: http://chaostoolkit.org/reference/usage/install/#create-a-virtual-environment + +```console +$ pip install -r requirements-dev.txt -r requirements.txt +``` + +Then, point your environment to this directory: + +```console +$ pip install -e . +``` + +Now, you can edit the files and they will be automatically be seen by your +environment, even when running from the `chaos` command locally. + +### Test + +To run the tests for the project execute the following: + +``` +$ pytest +``` + + +%package help +Summary: Development documents and examples for chaostoolkit-k6 +Provides: python3-chaostoolkit-k6-doc +%description help +# Chaos Toolkit Extension for k6. + +[](https://www.python.org/) + +This project is a collection of [actions][] and [probes][], gathered as an +extension to the [Chaos Toolkit][chaostoolkit]. + +[actions]: http://chaostoolkit.org/reference/api/experiment/#action +[probes]: http://chaostoolkit.org/reference/api/experiment/#probe +[chaostoolkit]: http://chaostoolkit.org + +## Install + +This package requires Python 3.5+ + +To be used from your experiment, this package must be installed in the Python +environment where [chaostoolkit][] already lives. + +``` +$ pip install -U chaostoolkit-k6 +``` + +## Usage + +Please explore the code to see existing probes and actions. +## Configuration + +## Contribute + +If you wish to contribute more functions to this package, you are more than +welcome to do so. Please, fork this project, make your changes following the +usual [PEP 8][pep8] code style, sprinkling with tests and submit a PR for +review. + +[pep8]: https://pycodestyle.readthedocs.io/en/latest/ + +The Chaos Toolkit projects require all contributors must sign a +[Developer Certificate of Origin][dco] on each commit they would like to merge +into the master branch of the repository. Please, make sure you can abide by +the rules of the DCO before submitting a PR. + +[dco]: https://github.com/probot/dco#how-it-works + +### Develop + +If you wish to develop on this project, make sure to install the development +dependencies. But first, [create a virtual environment][venv] and then install +those dependencies. + +[venv]: http://chaostoolkit.org/reference/usage/install/#create-a-virtual-environment + +```console +$ pip install -r requirements-dev.txt -r requirements.txt +``` + +Then, point your environment to this directory: + +```console +$ pip install -e . +``` + +Now, you can edit the files and they will be automatically be seen by your +environment, even when running from the `chaos` command locally. + +### Test + +To run the tests for the project execute the following: + +``` +$ pytest +``` + + +%prep +%autosetup -n chaostoolkit-k6-0.3.4 + +%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-chaostoolkit-k6 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.4-1 +- Package Spec generated @@ -0,0 +1 @@ +2982d579c9b761296f061c28be4f879e chaostoolkit-k6-0.3.4.tar.gz |
