diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 16:33:54 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 16:33:54 +0000 |
commit | 00a3a69d0b191ec3f193c05d2dcc400633cbe0df (patch) | |
tree | 7d4e90dac1c1c2f9468986eee2df1bc49e3cb133 | |
parent | 9ac6c7949c8a6d6bf93ce6ec4024e573c3a1dd31 (diff) |
automatic import of python-nose-ignore-docstring
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-nose-ignore-docstring.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/nose-ignore-docstring-0.2.tar.gz diff --git a/python-nose-ignore-docstring.spec b/python-nose-ignore-docstring.spec new file mode 100644 index 0000000..342d771 --- /dev/null +++ b/python-nose-ignore-docstring.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-nose-ignore-docstring +Version: 0.2 +Release: 1 +Summary: Ignore docstring to name tests in nose. +License: MIT +URL: https://github.com/schlamar/nose-ignore-docstring +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b9/cb/8594946a890c1570acd7ed6aac894196570fe4bbb3c9e487cf8297b2fa78/nose-ignore-docstring-0.2.tar.gz +BuildArch: noarch + + +%description +This is a plugin for nose. If this plugin is active, nose doesn't use +docstrings to name tests. + +%package -n python3-nose-ignore-docstring +Summary: Ignore docstring to name tests in nose. +Provides: python-nose-ignore-docstring +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-nose-ignore-docstring +This is a plugin for nose. If this plugin is active, nose doesn't use +docstrings to name tests. + +%package help +Summary: Development documents and examples for nose-ignore-docstring +Provides: python3-nose-ignore-docstring-doc +%description help +This is a plugin for nose. If this plugin is active, nose doesn't use +docstrings to name tests. + +%prep +%autosetup -n nose-ignore-docstring-0.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-nose-ignore-docstring -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2-1 +- Package Spec generated @@ -0,0 +1 @@ +48728349d4bc7c3b4ddcb7876f04e942 nose-ignore-docstring-0.2.tar.gz |