summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 04:51:48 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 04:51:48 +0000
commit4f6ccbaef25b0e8209c10e179c934d5c48619923 (patch)
treed1ad9cabca4e80f192910b5361d0d111c81e880c
parentd61a1827e5b9d663f0f666857c4289c6d90fe2d8 (diff)
automatic import of python-pytest-git
-rw-r--r--.gitignore1
-rw-r--r--python-pytest-git.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..efeab53 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pytest-git-1.7.0.tar.gz
diff --git a/python-pytest-git.spec b/python-pytest-git.spec
new file mode 100644
index 0000000..7b8c787
--- /dev/null
+++ b/python-pytest-git.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-git
+Version: 1.7.0
+Release: 1
+Summary: Git repository fixture for py.test
+License: MIT license
+URL: https://github.com/manahl/pytest-plugins
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b4/8f/c5a080ea0af99d7ed6a6e4f52a63628384896ed00628d781c52daf0119da/pytest-git-1.7.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-pytest
+Requires: python3-pytest-shutil
+Requires: python3-gitpython
+
+%description
+Creates an empty Git repository for testing that cleans up after itself
+on teardown.
+
+%package -n python3-pytest-git
+Summary: Git repository fixture for py.test
+Provides: python-pytest-git
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-git
+Creates an empty Git repository for testing that cleans up after itself
+on teardown.
+
+%package help
+Summary: Development documents and examples for pytest-git
+Provides: python3-pytest-git-doc
+%description help
+Creates an empty Git repository for testing that cleans up after itself
+on teardown.
+
+%prep
+%autosetup -n pytest-git-1.7.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-pytest-git -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ae2bba0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+30fb4c22c80d918548c302af7b3ff0c0 pytest-git-1.7.0.tar.gz