commit 1cde02389df3270500f9492ec3ad9969e5fe1a1f8f36e15ace36fdd19583f795 Author: Nico Krapp Date: Fri Aug 30 09:00:21 2024 +0000 Removed "Suggests" dependencies. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tabula-py?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-tabula-py.changes b/python-tabula-py.changes new file mode 100644 index 0000000..8fbd432 --- /dev/null +++ b/python-tabula-py.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Wed Aug 28 17:44:19 UTC 2024 - Aline Werner + +- Remove optional dependencies. + +------------------------------------------------------------------- +Fri Aug 16 20:12:06 UTC 2024 - Aline Werner + +- Update to v2.9.3. + +------------------------------------------------------------------- +Mon Feb 8 02:49:22 AM UTC 2021 - John Vandenberg + +- Initial spec for v2.2.0 diff --git a/python-tabula-py.spec b/python-tabula-py.spec new file mode 100644 index 0000000..e25d683 --- /dev/null +++ b/python-tabula-py.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-tabula-py +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-tabula-py +Version: 2.9.3 +Release: 0 +Summary: Simple wrapper for tabula-java, read tables from PDF into DataFrame +License: MIT +URL: https://github.com/chezou/tabula-py +Source: https://files.pythonhosted.org/packages/source/t/tabula-py/tabula_py-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module setuptools >= 45} +BuildRequires: %{python_module setuptools_scm >= 6.2} +# SECTION test requirements +BuildRequires: %{python_module distro} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pandas >= 0.25.3} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module JPype1} +# /SECTION +BuildRequires: fdupes +Requires: python-distro +Requires: python-numpy +Requires: python-pandas >= 0.25.3 +BuildArch: noarch +%python_subpackages + +%description +tabula-py is a simple Python wrapper of tabula-java, which can read tables in a PDF. You can read tables +from a PDF and convert them into a pandas DataFrame. tabula-py also enables you to convert a PDF file into +a CSV, a TSV or a JSON file. + +%prep +%autosetup -p1 -n tabula_py-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + + +%check +%pytest -k 'not (remote or test_read_pdf_with_silent_true)' + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/tabula +%{python_sitelib}/tabula_py-%{version}*-info + + +%changelog diff --git a/tabula_py-2.9.3.tar.gz b/tabula_py-2.9.3.tar.gz new file mode 100644 index 0000000..24bbc38 --- /dev/null +++ b/tabula_py-2.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e1a458d97f4e4422d82e9ed07c7180711efa623b158d2b7b53303e864e74834 +size 12459728