summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 14:15:41 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 14:15:41 +0000
commitf4d34b1a2001a8edd568c07f9285794edfee1c40 (patch)
tree6d51fd62e2d2521a3dc35b6b4b50ff1f1926b49a
parent3deb465eb5575c7219751aeb2db641f4f665cfb1 (diff)
automatic import of python-treonopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-treon.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1ed223e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/treon-0.1.4.tar.gz
diff --git a/python-treon.spec b/python-treon.spec
new file mode 100644
index 0000000..fa28f4e
--- /dev/null
+++ b/python-treon.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-treon
+Version: 0.1.4
+Release: 1
+Summary: Testing framework for Jupyter Notebooks
+License: MIT
+URL: https://github.com/reviewNB/treon
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/14/ed/c9f9fa94fae6b232888d3afbb1bd45da0f5b169978e17746f3437a28a761/treon-0.1.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-nbconvert
+Requires: python3-jupyter-client
+Requires: python3-jupyter
+Requires: python3-docopt
+
+%description
+
+
+%package -n python3-treon
+Summary: Testing framework for Jupyter Notebooks
+Provides: python-treon
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-treon
+
+
+%package help
+Summary: Development documents and examples for treon
+Provides: python3-treon-doc
+%description help
+
+
+%prep
+%autosetup -n treon-0.1.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-treon -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9a6445f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7e5184a703495f4705c9ec02853df42e treon-0.1.4.tar.gz