summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 11:12:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 11:12:25 +0000
commit16dc2394f53a2f6fe9035d9039ac184948a62b18 (patch)
tree6077f9aa6ebec1507e4709a637edf849275c3f3c
parent50e04d212db25902ef3cd63a1c5cd5896b1d5bda (diff)
automatic import of python-pandas-ods-readeropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pandas-ods-reader.spec85
-rw-r--r--sources1
3 files changed, 87 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3f2b6e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pandas-ods-reader-0.1.4.tar.gz
diff --git a/python-pandas-ods-reader.spec b/python-pandas-ods-reader.spec
new file mode 100644
index 0000000..7225d51
--- /dev/null
+++ b/python-pandas-ods-reader.spec
@@ -0,0 +1,85 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pandas-ods-reader
+Version: 0.1.4
+Release: 1
+Summary: Read in .ods and .fods files and return a pandas.DataFrame.
+License: MIT
+URL: https://github.com/iuvbio/pandas_ods_reader
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bc/c7/a9ee48f918520938ec8ebeb719af9308c3cd79bfa559b21b0d45e3a5dbc9/pandas-ods-reader-0.1.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-ezodf
+Requires: python3-importlib_metadata
+Requires: python3-lxml
+Requires: python3-pandas
+
+%description
+Provides a function to read in a **.ods** or **.fods** file and returns a pandas DataFrame.
+It uses `ezodf` to read in **.ods** files. Since **.fods** files are essentially xml, `lxml` is used to read them. The correct parser is automatically chosen based on the file's extension.
+If a range is specified in the sheet to be imported, it seems that `ezodf` imports empty cells as well. Therefore, completely empty rows and columns are dropped from the DataFrame, before it is returned. Only trailing empty rows and columns are dropped.
+If the ODS file contains duplicated column names, they will be numbered and the number is appended to the column name in the resulting DataFrame.
+
+%package -n python3-pandas-ods-reader
+Summary: Read in .ods and .fods files and return a pandas.DataFrame.
+Provides: python-pandas-ods-reader
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pandas-ods-reader
+Provides a function to read in a **.ods** or **.fods** file and returns a pandas DataFrame.
+It uses `ezodf` to read in **.ods** files. Since **.fods** files are essentially xml, `lxml` is used to read them. The correct parser is automatically chosen based on the file's extension.
+If a range is specified in the sheet to be imported, it seems that `ezodf` imports empty cells as well. Therefore, completely empty rows and columns are dropped from the DataFrame, before it is returned. Only trailing empty rows and columns are dropped.
+If the ODS file contains duplicated column names, they will be numbered and the number is appended to the column name in the resulting DataFrame.
+
+%package help
+Summary: Development documents and examples for pandas-ods-reader
+Provides: python3-pandas-ods-reader-doc
+%description help
+Provides a function to read in a **.ods** or **.fods** file and returns a pandas DataFrame.
+It uses `ezodf` to read in **.ods** files. Since **.fods** files are essentially xml, `lxml` is used to read them. The correct parser is automatically chosen based on the file's extension.
+If a range is specified in the sheet to be imported, it seems that `ezodf` imports empty cells as well. Therefore, completely empty rows and columns are dropped from the DataFrame, before it is returned. Only trailing empty rows and columns are dropped.
+If the ODS file contains duplicated column names, they will be numbered and the number is appended to the column name in the resulting DataFrame.
+
+%prep
+%autosetup -n pandas-ods-reader-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-pandas-ods-reader -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..337519b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+99495c3a4047474840784cab074aee40 pandas-ods-reader-0.1.4.tar.gz