diff options
Diffstat (limited to 'python-delta-sharing.spec')
| -rw-r--r-- | python-delta-sharing.spec | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/python-delta-sharing.spec b/python-delta-sharing.spec new file mode 100644 index 0000000..ba64731 --- /dev/null +++ b/python-delta-sharing.spec @@ -0,0 +1,126 @@ +%global _empty_manifest_terminate_build 0 +Name: python-delta-sharing +Version: 0.6.3 +Release: 1 +Summary: Python Connector for Delta Sharing +License: Apache-2.0 +URL: https://github.com/delta-io/delta-sharing/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/40/b3/22cb1ad4227031b6d69932fbe3661b1c14749a3fcf954d2397119dfb92b9/delta-sharing-0.6.3.tar.gz +BuildArch: noarch + +Requires: python3-pandas +Requires: python3-pyarrow +Requires: python3-fsspec +Requires: python3-requests +Requires: python3-aiohttp +Requires: python3-yarl +Requires: python3-dataclasses +Requires: python3-adlfs +Requires: python3-adlfs +Requires: python3-gcsfs +Requires: python3-gcsfs +Requires: python3-s3fs + +%description +# Delta Sharing + +[Delta Sharing](https://delta.io/sharing) is an open protocol for secure real-time exchange of large datasets, which enables secure data sharing across different computing platforms. It lets organizations share access to existing [Delta Lake](https://delta.io) and [Apache Parquet](https://parquet.apache.org) tables with other organizations, who can then directly read the table in Pandas, Apache Spark, or any other software that implements the open protocol. + +This is the Python client library for Delta Sharing, which lets you load shared tables as [pandas](https://pandas.pydata.org/) DataFrames or as [Apache Spark](http://spark.apache.org/) DataFrames if running in PySpark with the [Apache Spark Connector library](https://github.com/delta-io/delta-sharing#set-up-apache-spark). + +## Installation and Usage + +1. Install using `pip install delta-sharing`. +2. To use the Python Connector, see [the project docs](https://github.com/delta-io/delta-sharing) for details. + +## Documentation + +This README only contains basic information about the Delta Sharing Python Connector. Please read [the project documentation](https://github.com/delta-io/delta-sharing) for full usage details. + + +%package -n python3-delta-sharing +Summary: Python Connector for Delta Sharing +Provides: python-delta-sharing +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-delta-sharing +# Delta Sharing + +[Delta Sharing](https://delta.io/sharing) is an open protocol for secure real-time exchange of large datasets, which enables secure data sharing across different computing platforms. It lets organizations share access to existing [Delta Lake](https://delta.io) and [Apache Parquet](https://parquet.apache.org) tables with other organizations, who can then directly read the table in Pandas, Apache Spark, or any other software that implements the open protocol. + +This is the Python client library for Delta Sharing, which lets you load shared tables as [pandas](https://pandas.pydata.org/) DataFrames or as [Apache Spark](http://spark.apache.org/) DataFrames if running in PySpark with the [Apache Spark Connector library](https://github.com/delta-io/delta-sharing#set-up-apache-spark). + +## Installation and Usage + +1. Install using `pip install delta-sharing`. +2. To use the Python Connector, see [the project docs](https://github.com/delta-io/delta-sharing) for details. + +## Documentation + +This README only contains basic information about the Delta Sharing Python Connector. Please read [the project documentation](https://github.com/delta-io/delta-sharing) for full usage details. + + +%package help +Summary: Development documents and examples for delta-sharing +Provides: python3-delta-sharing-doc +%description help +# Delta Sharing + +[Delta Sharing](https://delta.io/sharing) is an open protocol for secure real-time exchange of large datasets, which enables secure data sharing across different computing platforms. It lets organizations share access to existing [Delta Lake](https://delta.io) and [Apache Parquet](https://parquet.apache.org) tables with other organizations, who can then directly read the table in Pandas, Apache Spark, or any other software that implements the open protocol. + +This is the Python client library for Delta Sharing, which lets you load shared tables as [pandas](https://pandas.pydata.org/) DataFrames or as [Apache Spark](http://spark.apache.org/) DataFrames if running in PySpark with the [Apache Spark Connector library](https://github.com/delta-io/delta-sharing#set-up-apache-spark). + +## Installation and Usage + +1. Install using `pip install delta-sharing`. +2. To use the Python Connector, see [the project docs](https://github.com/delta-io/delta-sharing) for details. + +## Documentation + +This README only contains basic information about the Delta Sharing Python Connector. Please read [the project documentation](https://github.com/delta-io/delta-sharing) for full usage details. + + +%prep +%autosetup -n delta-sharing-0.6.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-delta-sharing -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.3-1 +- Package Spec generated |
