summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 08:49:47 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 08:49:47 +0000
commita040d605fe3dffbb7a3410fbfe42a9ec915755a9 (patch)
treef4b5a00fe6f523a2d453ed14ae6b7b6bf1242e9d
parenta988626af3b19a9748feb1d60ef5b5cbfcfd137c (diff)
automatic import of python-pykrakenapi
-rw-r--r--.gitignore1
-rw-r--r--python-pykrakenapi.spec93
-rw-r--r--sources1
3 files changed, 95 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ec2ff75 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pykrakenapi-0.3.1.tar.gz
diff --git a/python-pykrakenapi.spec b/python-pykrakenapi.spec
new file mode 100644
index 0000000..1538ce9
--- /dev/null
+++ b/python-pykrakenapi.spec
@@ -0,0 +1,93 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pykrakenapi
+Version: 0.3.1
+Release: 1
+Summary: A Python implementation of the Kraken API.
+License: GNU GPL
+URL: https://github.com/dominiktraxl/pykrakenapi/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/23/28/31c2e08ac5a0c9e4034248f9712fca887871153ad2ba8b7ac76c37b83d8e/pykrakenapi-0.3.1.tar.gz
+BuildArch: noarch
+
+
+%description
+Implements the Kraken API methods using the low-level krakenex python
+package. See
+https://www.kraken.com/help/api
+and
+https://github.com/veox/python3-krakenex
+Whenever convenient, methods return pandas.DataFrame objects. Also implements a
+call rate limiter based on your Kraken tier level, as well as automatic retries
+on HTTPErrors/Kraken API Errors.
+
+%package -n python3-pykrakenapi
+Summary: A Python implementation of the Kraken API.
+Provides: python-pykrakenapi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pykrakenapi
+Implements the Kraken API methods using the low-level krakenex python
+package. See
+https://www.kraken.com/help/api
+and
+https://github.com/veox/python3-krakenex
+Whenever convenient, methods return pandas.DataFrame objects. Also implements a
+call rate limiter based on your Kraken tier level, as well as automatic retries
+on HTTPErrors/Kraken API Errors.
+
+%package help
+Summary: Development documents and examples for pykrakenapi
+Provides: python3-pykrakenapi-doc
+%description help
+Implements the Kraken API methods using the low-level krakenex python
+package. See
+https://www.kraken.com/help/api
+and
+https://github.com/veox/python3-krakenex
+Whenever convenient, methods return pandas.DataFrame objects. Also implements a
+call rate limiter based on your Kraken tier level, as well as automatic retries
+on HTTPErrors/Kraken API Errors.
+
+%prep
+%autosetup -n pykrakenapi-0.3.1
+
+%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-pykrakenapi -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..59a61f8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f451ca6de57b419997c5a5fb88f73538 pykrakenapi-0.3.1.tar.gz