* update python-pandas to 2.2.2-3

This commit is contained in:
Alexander Baldeck 2024-08-08 14:41:48 +02:00
parent 4a21a07b39
commit 32a2c2b8e2
3 changed files with 119 additions and 22 deletions

View File

@ -0,0 +1,97 @@
pkgbase = python-pandas
pkgdesc = High-performance, easy-to-use data structures and data analysis tools for Python
pkgver = 2.2.2
pkgrel = 3
url = https://pandas.pydata.org/
arch = x86_64
license = BSD
checkdepends = python-pytest
checkdepends = python-pytest-asyncio
checkdepends = python-pytest-xdist
checkdepends = python-hypothesis
checkdepends = python-pandas-datareader
checkdepends = python-numexpr
checkdepends = python-bottleneck
checkdepends = python-matplotlib
checkdepends = python-jinja
checkdepends = python-tabulate
checkdepends = python-scipy
checkdepends = python-numba
checkdepends = python-xarray
checkdepends = python-xlrd
checkdepends = python-xlwt
checkdepends = python-openpyxl
checkdepends = python-xlsxwriter
checkdepends = python-beautifulsoup4
checkdepends = python-html5lib
checkdepends = python-lxml
checkdepends = python-sqlalchemy
checkdepends = python-psycopg2
checkdepends = python-pymysql
checkdepends = python-pytables
checkdepends = python-blosc
checkdepends = zlib
checkdepends = python-pyarrow
checkdepends = python-fsspec
checkdepends = python-pyqt5
checkdepends = python-qtpy
checkdepends = xclip
checkdepends = xsel
checkdepends = python-brotli
checkdepends = python-snappy
checkdepends = python-zstandard
checkdepends = python-dask
checkdepends = python-toolz
checkdepends = python-cftime
checkdepends = python-statsmodels
checkdepends = python-scikit-learn
checkdepends = python-seaborn
checkdepends = python-geopandas
checkdepends = python-odfpy
checkdepends = ipython
checkdepends = python-botocore
checkdepends = python-numba
makedepends = git
makedepends = cython
makedepends = python-build
makedepends = python-installer
makedepends = meson-python
makedepends = python-versioneer
depends = python-numpy
depends = python-dateutil
depends = python-pytz
optdepends = python-pandas-datareader: pandas.io.data replacement (recommended)
optdepends = python-numexpr: accelerating certain numerical operations (recommended)
optdepends = python-bottleneck: accelerating certain types of nan evaluations (recommended)
optdepends = python-matplotlib: plotting
optdepends = python-jinja: conditional formatting with DataFrame.style
optdepends = python-tabulate: printing in Markdown-friendly format
optdepends = python-scipy: miscellaneous statistical functions
optdepends = python-numba: alternative execution engine
optdepends = python-xarray: pandas-like API for N-dimensional data
optdepends = python-xlrd: Excel XLS input
optdepends = python-xlwt: Excel XLS output
optdepends = python-openpyxl: Excel XLSX input/output
optdepends = python-xlsxwriter: alternative Excel XLSX output
optdepends = python-beautifulsoup4: read_html function (in any case)
optdepends = python-html5lib: read_html function (and/or python-lxml)
optdepends = python-lxml: read_xml, to_xml and read_html function (and/or python-html5lib)
optdepends = python-sqlalchemy: SQL database support
optdepends = python-psycopg2: PostgreSQL engine for sqlalchemy
optdepends = python-pymysql: MySQL engine for sqlalchemy
optdepends = python-pytables: HDF5-based reading / writing
optdepends = python-blosc: for msgpack compression using blosc
optdepends = zlib: compression for msgpack
optdepends = python-pyarrow: Parquet, ORC and feather reading/writing
optdepends = python-fsspec: handling files aside from local and HTTP
optdepends = python-pyqt5: read_clipboard function (only one needed)
optdepends = python-qtpy: read_clipboard function (only one needed)
optdepends = xclip: read_clipboard function (only one needed)
optdepends = xsel: read_clipboard function (only one needed)
optdepends = python-brotli: Brotli compression
optdepends = python-snappy: Snappy compression
optdepends = python-zstandard: Zstandard (zstd) compression
source = git+https://github.com/pandas-dev/pandas#tag=v2.2.2
sha256sums = 9ccd5a7d6adabae35b554eff2965848730cd18fd8c8393d2a449aa9ce5616208
pkgname = python-pandas

View File

@ -0,0 +1,4 @@
[python-pandas]
source = "pypi"
pypi = "pandas"
ignored = "2.0.0 2.0.1 2.0.2"

View File

@ -5,14 +5,14 @@
# Contributor: Keith Hughitt <khughitt@umd.edu>
pkgname=python-pandas
pkgver=1.5.3
pkgrel=4
pkgver=2.2.2
pkgrel=3
pkgdesc='High-performance, easy-to-use data structures and data analysis tools for Python'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://pandas.pydata.org/"
license=(BSD)
depends=('python-numpy' 'python-dateutil' 'python-pytz')
makedepends=('cython0' 'python-setuptools')
makedepends=('git' 'cython' 'python-build' 'python-installer' 'meson-python' 'python-versioneer')
optdepends=(
'python-pandas-datareader: pandas.io.data replacement (recommended)'
'python-numexpr: accelerating certain numerical operations (recommended)'
@ -106,33 +106,29 @@ checkdepends=(
'python-botocore'
'python-numba'
)
# No test data in upstream crafted tarball
# No test data in upstream tarballs
#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
}
source=(git+https://github.com/pandas-dev/pandas#tag=v${pkgver})
sha256sums=('9ccd5a7d6adabae35b554eff2965848730cd18fd8c8393d2a449aa9ce5616208')
build() {
cd pandas-${pkgver}
python setup.py build_ext --inplace
python setup.py build
cd pandas
python -m build --wheel --no-isolation --skip-dependency-check
}
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
cd pandas
mkdir -p test-install
python -m installer --destdir="$PWD"/test-install dist/*.whl
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
mv pandas{,.backup} # Prevent pytest from picking up uncompiled pandas from $PWD
PYTHONPATH="$srcdir"/test-install/${site_packages} \
pytest -v pandas.backup -m "not network and not db and not slow and not clipboard and not single_cpu" -n 4 -r sxX --no-strict-data-files || true
mv pandas{.backup,.}
}
package() {
cd pandas-${pkgver}
python setup.py install --skip-build --root="$pkgdir" --optimize=1
cd pandas
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}