diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 18:08:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 18:08:22 +0000 |
commit | 76b36805bc4878076c77784a430966d8c08210ac (patch) | |
tree | 0d1d5a8c1c3c56be49bc912f040cad7d16241e85 | |
parent | dcfec17f80bfe478be06dd48b39f50f0a055ea9a (diff) |
automatic import of python-placebo
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-placebo.spec | 84 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/placebo-0.10.0.tar.gz diff --git a/python-placebo.spec b/python-placebo.spec new file mode 100644 index 0000000..11330ce --- /dev/null +++ b/python-placebo.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-placebo +Version: 0.10.0 +Release: 1 +Summary: Make boto3 calls that look real but have no effect +License: Apache License 2.0 +URL: https://github.com/garnaat/placebo +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d0/43/187e14a5e53a4541e7be5352699b91b709dcf8fb757fd1da07e9671195e6/placebo-0.10.0.tar.gz +BuildArch: noarch + + +%description +[](https://codecov.io/gh/garnaat/placebo) +Placebo allows you to mock boto3 calls that look just like normal calls but +actually have no effect at all. It does this by allowing you to record a set +of calls and save them to a data file and then replay those calls later +(e.g. in a unit test) without ever hitting the AWS endpoints. + +%package -n python3-placebo +Summary: Make boto3 calls that look real but have no effect +Provides: python-placebo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-placebo +[](https://codecov.io/gh/garnaat/placebo) +Placebo allows you to mock boto3 calls that look just like normal calls but +actually have no effect at all. It does this by allowing you to record a set +of calls and save them to a data file and then replay those calls later +(e.g. in a unit test) without ever hitting the AWS endpoints. + +%package help +Summary: Development documents and examples for placebo +Provides: python3-placebo-doc +%description help +[](https://codecov.io/gh/garnaat/placebo) +Placebo allows you to mock boto3 calls that look just like normal calls but +actually have no effect at all. It does this by allowing you to record a set +of calls and save them to a data file and then replay those calls later +(e.g. in a unit test) without ever hitting the AWS endpoints. + +%prep +%autosetup -n placebo-0.10.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-placebo -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.0-1 +- Package Spec generated @@ -0,0 +1 @@ +8d94ee2c7cf59f7747ad2cdc2f3a4093 placebo-0.10.0.tar.gz |