From a3654d59aff83ed3d6864893c175526dc9b9d80b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 06:13:57 +0000 Subject: automatic import of python-pyfolio --- python-pyfolio.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 python-pyfolio.spec (limited to 'python-pyfolio.spec') diff --git a/python-pyfolio.spec b/python-pyfolio.spec new file mode 100644 index 0000000..be8c3e8 --- /dev/null +++ b/python-pyfolio.spec @@ -0,0 +1,99 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyfolio +Version: 0.9.2 +Release: 1 +Summary: pyfolio is a Python library for performance and risk analysis of financial portfolios +License: Apache License, Version 2.0 +URL: https://github.com/quantopian/pyfolio +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/28/b4/99799b743c4619752f88b70354924132a2e9b82f4656fe7c55eaa9101392/pyfolio-0.9.2.tar.gz +BuildArch: noarch + + +%description +pyfolio is a Python library for performance and risk analysis of +financial portfolios developed by `Quantopian Inc`_. It works well with the +`Zipline`_ open source backtesting library. + +At the core of pyfolio is a so-called tear sheet that consists of +various individual plots that provide a comprehensive performance +overview of a portfolio. + +.. _Quantopian Inc: https://www.quantopian.com +.. _Zipline: http://zipline.io + +%package -n python3-pyfolio +Summary: pyfolio is a Python library for performance and risk analysis of financial portfolios +Provides: python-pyfolio +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyfolio +pyfolio is a Python library for performance and risk analysis of +financial portfolios developed by `Quantopian Inc`_. It works well with the +`Zipline`_ open source backtesting library. + +At the core of pyfolio is a so-called tear sheet that consists of +various individual plots that provide a comprehensive performance +overview of a portfolio. + +.. _Quantopian Inc: https://www.quantopian.com +.. _Zipline: http://zipline.io + +%package help +Summary: Development documents and examples for pyfolio +Provides: python3-pyfolio-doc +%description help +pyfolio is a Python library for performance and risk analysis of +financial portfolios developed by `Quantopian Inc`_. It works well with the +`Zipline`_ open source backtesting library. + +At the core of pyfolio is a so-called tear sheet that consists of +various individual plots that provide a comprehensive performance +overview of a portfolio. + +.. _Quantopian Inc: https://www.quantopian.com +.. _Zipline: http://zipline.io + +%prep +%autosetup -n pyfolio-0.9.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-pyfolio -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 0.9.2-1 +- Package Spec generated -- cgit v1.2.3