summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 04:57:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 04:57:51 +0000
commit4876a020950494b1e3f05a8954db075f21d2caf7 (patch)
tree3656e2ac3e89d33814abd207497a189bc3ba9d3d
parent0ad66360135b7e78d88cb02827206b4d1e420f00 (diff)
automatic import of python-tyba-client
-rw-r--r--.gitignore1
-rw-r--r--python-tyba-client.spec79
-rw-r--r--sources1
3 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9f3645a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tyba_client-0.2.3.tar.gz
diff --git a/python-tyba-client.spec b/python-tyba-client.spec
new file mode 100644
index 0000000..3e13d1d
--- /dev/null
+++ b/python-tyba-client.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tyba-client
+Version: 0.2.3
+Release: 1
+Summary: A Python API client for the Tyba Public API
+License: MIT
+URL: https://pypi.org/project/tyba-client/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a2/6c/58f69240c6c0e648100a4b22f4fece1f5e298e8b7afb20b49cf9673c51eb/tyba_client-0.2.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-dataclasses-json
+Requires: python3-marshmallow
+Requires: python3-pandas
+Requires: python3-tyba-financial-model
+Requires: python3-generation-models
+Requires: python3-structlog
+
+%description
+# Tyba API Client
+
+%package -n python3-tyba-client
+Summary: A Python API client for the Tyba Public API
+Provides: python-tyba-client
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tyba-client
+# Tyba API Client
+
+%package help
+Summary: Development documents and examples for tyba-client
+Provides: python3-tyba-client-doc
+%description help
+# Tyba API Client
+
+%prep
+%autosetup -n tyba-client-0.2.3
+
+%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-tyba-client -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..d5639c7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f7f3e66059d14c1d90bb1e3ba97b143a tyba_client-0.2.3.tar.gz