Date: Friday, April 14, 2023 @ 18:06:16
Author: foxboron
Revision: 1446067
archrelease: copy trunk to community-staging-x86_64
Added:
python-pandas/repos/community-staging-x86_64/PKGBUILD
(from rev 1446066, python-pandas/trunk/PKGBUILD)
python-pandas/repos/community-staging-x86_64/fix-pyarrow-10.patch
(from rev 1446066, python-pandas/trunk/fix-pyarrow-10.patch)
Deleted:
python-pandas/repos/community-staging-x86_64/PKGBUILD
python-pandas/repos/community-staging-x86_64/fix-pyarrow-10.patch
----------------------+
PKGBUILD | 273 ++++++++++++++++++++++++-------------------------
fix-pyarrow-10.patch | 94 ++++++++--------
2 files changed, 184 insertions(+), 183 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-14 18:06:01 UTC (rev 1446066)
+++ PKGBUILD 2023-04-14 18:06:16 UTC (rev 1446067)
@@ -1,136 +0,0 @@
-# Maintainer: Andrzej Giniewicz <[email protected]>
-# Maintainer: Morten Linderud <[email protected]>
-# Maintainer: Bruno Pagani <[email protected]>
-# Contributor: Keith Hughitt <[email protected]>
-
-pkgname=python-pandas
-pkgver=1.5.3
-pkgrel=2
-pkgdesc='High-performance, easy-to-use data structures and data analysis tools
for Python'
-arch=(x86_64)
-url="https://pandas.pydata.org/"
-license=(BSD)
-depends=('python-numpy' 'python-dateutil' 'python-pytz' 'python-setuptools')
-makedepends=('cython')
-optdepends=(
- 'python-pandas-datareader: pandas.io.data replacement (recommended)'
- 'python-numexpr: accelerating certain numerical operations (recommended)'
- 'python-bottleneck: accelerating certain types of nan evaluations
(recommended)'
- 'python-matplotlib: plotting'
- 'python-jinja: conditional formatting with DataFrame.style'
- 'python-tabulate: printing in Markdown-friendly format'
- 'python-scipy: miscellaneous statistical functions'
- 'python-numba: alternative execution engine'
- 'python-xarray: pandas-like API for N-dimensional data'
- 'python-xlrd: Excel XLS input'
- 'python-xlwt: Excel XLS output'
- 'python-openpyxl: Excel XLSX input/output'
- 'python-xlsxwriter: alternative Excel XLSX output'
- # 'python-pyxlsb: XLSB input' (nowhere)
- 'python-beautifulsoup4: read_html function (in any case)'
- 'python-html5lib: read_html function (and/or python-lxml)'
- 'python-lxml: read_xml, to_xml and read_html function (and/or
python-html5lib)'
- 'python-sqlalchemy: SQL database support'
- 'python-psycopg2: PostgreSQL engine for sqlalchemy'
- 'python-pymysql: MySQL engine for sqlalchemy'
- 'python-pytables: HDF5-based reading / writing'
- 'python-blosc: for msgpack compression using blosc'
- 'zlib: compression for msgpack'
- # 'python-fastparquet: Parquet reading / writing' (in the AUR)
- 'python-pyarrow: Parquet, ORC and feather reading/writing'
- # 'python-pyreadstat: SPSS files reading' (in the AUR)
- 'python-fsspec: handling files aside from local and HTTP'
- # 'python-gcsfs: Google Cloud Storage access' (in the AUR)
- # 'python-pandas-gbq: Google BigQuery access' (nowhere)
- # 'python-s3fs: Amazon S3 access' (in the AUR)
- 'python-pyqt5: read_clipboard function (only one needed)'
- 'python-qtpy: read_clipboard function (only one needed)'
- 'xclip: read_clipboard function (only one needed)'
- 'xsel: read_clipboard function (only one needed)'
- 'python-brotli: Brotli compression'
- 'python-snappy: Snappy compression'
- 'python-zstandard: Zstandard (zstd) compression'
-)
-checkdepends=(
- 'python-pytest'
- 'python-pytest-asyncio'
- 'python-pytest-xdist'
- 'python-hypothesis'
- 'python-pandas-datareader'
- 'python-numexpr'
- 'python-bottleneck'
- 'python-matplotlib'
- 'python-jinja'
- 'python-tabulate'
- 'python-scipy'
- 'python-numba'
- 'python-xarray'
- 'python-xlrd'
- 'python-xlwt'
- 'python-openpyxl'
- 'python-xlsxwriter'
- # 'python-pyxlsb' (nowhere)
- 'python-beautifulsoup4'
- 'python-html5lib'
- 'python-lxml'
- 'python-sqlalchemy'
- 'python-psycopg2'
- 'python-pymysql'
- 'python-pytables'
- 'python-blosc'
- 'zlib'
- # 'python-fastparquet' (in the AUR)
- 'python-pyarrow'
- # 'python-pyreadstat' (in the AUR)
- 'python-fsspec'
- # 'python-gcsfs' (in the AUR)
- # 'python-pandas-gbq' (nowhere)
- # 'python-s3fs' (in the AUR)
- 'python-pyqt5'
- 'python-qtpy'
- 'xclip'
- 'xsel'
- 'python-brotli'
- 'python-snappy'
- 'python-zstandard'
- 'python-dask'
- 'python-toolz'
- 'python-cftime'
- 'python-statsmodels'
- 'python-scikit-learn'
- 'python-seaborn'
- 'python-geopandas'
- 'python-odfpy'
- 'ipython'
- 'python-botocore'
- 'python-numba'
-)
-# No test data in upstream crafted tarball
-#source=(https://github.com/pandas-dev/pandas/releases/download/v${pkgver}/pandas-${pkgver}.tar.gz)
-source=(https://github.com/pandas-dev/pandas/archive/refs/tags/v${pkgver}/${pkgname}-${pkgver}.tar.gz
- fix-pyarrow-10.patch)
-sha256sums=('d8abf9c2bf33cac75b28f32c174c29778414eb249e5e2ccb69b1079b97a8fc66'
- '65008439d0eeef47ef4dca98ef7469b548f3d2f3b1666809cb846b84b07c05f4')
-
-prepare() {
- cd pandas-${pkgver}
- #
https://github.com/pandas-dev/pandas/commit/4878dfe551da2fa8e2bc33e774b595f099bfa74e
- patch -p1 < ../fix-pyarrow-10.patch
-}
-
-build() {
- cd pandas-${pkgver}
- python setup.py build_ext --inplace
- python setup.py build
-}
-
-check() {
- cd pandas-${pkgver}
- pytest -vv --color=yes pandas -m 'not clipboard and not single_cpu' --skip-db
-}
-
-package() {
- cd pandas-${pkgver}
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-pandas/repos/community-staging-x86_64/PKGBUILD (from rev
1446066, python-pandas/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-14 18:06:16 UTC (rev 1446067)
@@ -0,0 +1,137 @@
+# Maintainer: Andrzej Giniewicz <[email protected]>
+# Maintainer: Morten Linderud <[email protected]>
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Keith Hughitt <[email protected]>
+
+pkgname=python-pandas
+pkgver=1.5.3
+pkgrel=3
+pkgdesc='High-performance, easy-to-use data structures and data analysis tools
for Python'
+arch=(x86_64)
+url="https://pandas.pydata.org/"
+license=(BSD)
+depends=('python-numpy' 'python-dateutil' 'python-pytz' 'python-setuptools')
+makedepends=('cython')
+optdepends=(
+ 'python-pandas-datareader: pandas.io.data replacement (recommended)'
+ 'python-numexpr: accelerating certain numerical operations (recommended)'
+ 'python-bottleneck: accelerating certain types of nan evaluations
(recommended)'
+ 'python-matplotlib: plotting'
+ 'python-jinja: conditional formatting with DataFrame.style'
+ 'python-tabulate: printing in Markdown-friendly format'
+ 'python-scipy: miscellaneous statistical functions'
+ 'python-numba: alternative execution engine'
+ 'python-xarray: pandas-like API for N-dimensional data'
+ 'python-xlrd: Excel XLS input'
+ 'python-xlwt: Excel XLS output'
+ 'python-openpyxl: Excel XLSX input/output'
+ 'python-xlsxwriter: alternative Excel XLSX output'
+ # 'python-pyxlsb: XLSB input' (nowhere)
+ 'python-beautifulsoup4: read_html function (in any case)'
+ 'python-html5lib: read_html function (and/or python-lxml)'
+ 'python-lxml: read_xml, to_xml and read_html function (and/or
python-html5lib)'
+ 'python-sqlalchemy: SQL database support'
+ 'python-psycopg2: PostgreSQL engine for sqlalchemy'
+ 'python-pymysql: MySQL engine for sqlalchemy'
+ 'python-pytables: HDF5-based reading / writing'
+ 'python-blosc: for msgpack compression using blosc'
+ 'zlib: compression for msgpack'
+ # 'python-fastparquet: Parquet reading / writing' (in the AUR)
+ 'python-pyarrow: Parquet, ORC and feather reading/writing'
+ # 'python-pyreadstat: SPSS files reading' (in the AUR)
+ 'python-fsspec: handling files aside from local and HTTP'
+ # 'python-gcsfs: Google Cloud Storage access' (in the AUR)
+ # 'python-pandas-gbq: Google BigQuery access' (nowhere)
+ # 'python-s3fs: Amazon S3 access' (in the AUR)
+ 'python-pyqt5: read_clipboard function (only one needed)'
+ 'python-qtpy: read_clipboard function (only one needed)'
+ 'xclip: read_clipboard function (only one needed)'
+ 'xsel: read_clipboard function (only one needed)'
+ 'python-brotli: Brotli compression'
+ 'python-snappy: Snappy compression'
+ 'python-zstandard: Zstandard (zstd) compression'
+)
+checkdepends=(
+ 'python-pytest'
+ 'python-pytest-asyncio'
+ 'python-pytest-xdist'
+ 'python-hypothesis'
+ 'python-pandas-datareader'
+ 'python-numexpr'
+ 'python-bottleneck'
+ 'python-matplotlib'
+ 'python-jinja'
+ 'python-tabulate'
+ 'python-scipy'
+ 'python-numba'
+ 'python-xarray'
+ 'python-xlrd'
+ 'python-xlwt'
+ 'python-openpyxl'
+ 'python-xlsxwriter'
+ # 'python-pyxlsb' (nowhere)
+ 'python-beautifulsoup4'
+ 'python-html5lib'
+ 'python-lxml'
+ 'python-sqlalchemy'
+ 'python-psycopg2'
+ 'python-pymysql'
+ 'python-pytables'
+ 'python-blosc'
+ 'zlib'
+ # 'python-fastparquet' (in the AUR)
+ 'python-pyarrow'
+ # 'python-pyreadstat' (in the AUR)
+ 'python-fsspec'
+ # 'python-gcsfs' (in the AUR)
+ # 'python-pandas-gbq' (nowhere)
+ # 'python-s3fs' (in the AUR)
+ 'python-pyqt5'
+ 'python-qtpy'
+ 'xclip'
+ 'xsel'
+ 'python-brotli'
+ 'python-snappy'
+ 'python-zstandard'
+ 'python-dask'
+ 'python-toolz'
+ 'python-cftime'
+ 'python-statsmodels'
+ 'python-scikit-learn'
+ 'python-seaborn'
+ 'python-geopandas'
+ 'python-odfpy'
+ 'ipython'
+ 'python-botocore'
+ 'python-numba'
+)
+# No test data in upstream crafted tarball
+#source=(https://github.com/pandas-dev/pandas/releases/download/v${pkgver}/pandas-${pkgver}.tar.gz)
+source=(https://github.com/pandas-dev/pandas/archive/refs/tags/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ fix-pyarrow-10.patch)
+sha256sums=('d8abf9c2bf33cac75b28f32c174c29778414eb249e5e2ccb69b1079b97a8fc66'
+ '65008439d0eeef47ef4dca98ef7469b548f3d2f3b1666809cb846b84b07c05f4')
+
+prepare() {
+ cd pandas-${pkgver}
+ #
https://github.com/pandas-dev/pandas/commit/4878dfe551da2fa8e2bc33e774b595f099bfa74e
+ patch -p1 < ../fix-pyarrow-10.patch
+}
+
+build() {
+ cd pandas-${pkgver}
+ python setup.py build_ext --inplace
+ python setup.py build
+}
+
+check() {
+ cd pandas-${pkgver}
+ # TODO: Revisit after new release with better python3.11 support
+ # pytest pandas --skip-slow --skip-network --skip-db -m "not clipboard and
not single_cpu" -n 4 -r sxX || true
+}
+
+package() {
+ cd pandas-${pkgver}
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Deleted: fix-pyarrow-10.patch
===================================================================
--- fix-pyarrow-10.patch 2023-04-14 18:06:01 UTC (rev 1446066)
+++ fix-pyarrow-10.patch 2023-04-14 18:06:16 UTC (rev 1446067)
@@ -1,47 +0,0 @@
-diff --git a/pandas/compat/pyarrow.py b/pandas/compat/pyarrow.py
---- a/pandas/compat/pyarrow.py
-+++ b/pandas/compat/pyarrow.py
-@@ -18,6 +18,7 @@ try:
- pa_version_under7p0 = _palv < Version("7.0.0")
- pa_version_under8p0 = _palv < Version("8.0.0")
- pa_version_under9p0 = _palv < Version("9.0.0")
-+ pa_version_under10p0 = _palv < Version("10.0.0")
- except ImportError:
- pa_version_under1p01 = True
- pa_version_under2p0 = True
-@@ -28,3 +29,4 @@ except ImportError:
- pa_version_under7p0 = True
- pa_version_under8p0 = True
- pa_version_under9p0 = True
-+ pa_version_under10p0 = True
-diff --git a/pandas/tests/arrays/interval/test_interval.py
b/pandas/tests/arrays/interval/test_interval.py
---- a/pandas/tests/arrays/interval/test_interval.py
-+++ b/pandas/tests/arrays/interval/test_interval.py
-@@ -287,7 +287,7 @@ def test_arrow_array():
- with pytest.raises(TypeError, match="Not supported to convert
IntervalArray"):
- pa.array(intervals, type="float64")
-
-- with pytest.raises(TypeError, match="different 'subtype'"):
-+ with pytest.raises(TypeError, match="different 'subtype'|to convert
IntervalArray"):
- pa.array(intervals, type=ArrowIntervalType(pa.float64(), "left"))
-
-
-diff --git a/pandas/tests/arrays/period/test_arrow_compat.py
b/pandas/tests/arrays/period/test_arrow_compat.py
---- a/pandas/tests/arrays/period/test_arrow_compat.py
-+++ b/pandas/tests/arrays/period/test_arrow_compat.py
-@@ -1,5 +1,7 @@
- import pytest
-
-+from pandas.compat.pyarrow import pa_version_under10p0
-+
- from pandas.core.dtypes.dtypes import PeriodDtype
-
- import pandas as pd
-@@ -28,6 +30,7 @@ def test_arrow_extension_type():
- assert hash(p1) != hash(p3)
-
-
[email protected](not pa_version_under10p0, reason="Wrong behavior with
pyarrow 10")
- @pytest.mark.parametrize(
- "data, freq",
- [
Copied: python-pandas/repos/community-staging-x86_64/fix-pyarrow-10.patch (from
rev 1446066, python-pandas/trunk/fix-pyarrow-10.patch)
===================================================================
--- fix-pyarrow-10.patch (rev 0)
+++ fix-pyarrow-10.patch 2023-04-14 18:06:16 UTC (rev 1446067)
@@ -0,0 +1,47 @@
+diff --git a/pandas/compat/pyarrow.py b/pandas/compat/pyarrow.py
+--- a/pandas/compat/pyarrow.py
++++ b/pandas/compat/pyarrow.py
+@@ -18,6 +18,7 @@ try:
+ pa_version_under7p0 = _palv < Version("7.0.0")
+ pa_version_under8p0 = _palv < Version("8.0.0")
+ pa_version_under9p0 = _palv < Version("9.0.0")
++ pa_version_under10p0 = _palv < Version("10.0.0")
+ except ImportError:
+ pa_version_under1p01 = True
+ pa_version_under2p0 = True
+@@ -28,3 +29,4 @@ except ImportError:
+ pa_version_under7p0 = True
+ pa_version_under8p0 = True
+ pa_version_under9p0 = True
++ pa_version_under10p0 = True
+diff --git a/pandas/tests/arrays/interval/test_interval.py
b/pandas/tests/arrays/interval/test_interval.py
+--- a/pandas/tests/arrays/interval/test_interval.py
++++ b/pandas/tests/arrays/interval/test_interval.py
+@@ -287,7 +287,7 @@ def test_arrow_array():
+ with pytest.raises(TypeError, match="Not supported to convert
IntervalArray"):
+ pa.array(intervals, type="float64")
+
+- with pytest.raises(TypeError, match="different 'subtype'"):
++ with pytest.raises(TypeError, match="different 'subtype'|to convert
IntervalArray"):
+ pa.array(intervals, type=ArrowIntervalType(pa.float64(), "left"))
+
+
+diff --git a/pandas/tests/arrays/period/test_arrow_compat.py
b/pandas/tests/arrays/period/test_arrow_compat.py
+--- a/pandas/tests/arrays/period/test_arrow_compat.py
++++ b/pandas/tests/arrays/period/test_arrow_compat.py
+@@ -1,5 +1,7 @@
+ import pytest
+
++from pandas.compat.pyarrow import pa_version_under10p0
++
+ from pandas.core.dtypes.dtypes import PeriodDtype
+
+ import pandas as pd
+@@ -28,6 +30,7 @@ def test_arrow_extension_type():
+ assert hash(p1) != hash(p3)
+
+
[email protected](not pa_version_under10p0, reason="Wrong behavior with
pyarrow 10")
+ @pytest.mark.parametrize(
+ "data, freq",
+ [