11# Maintainer: Konstantin Podsvirov <[email protected] >22
33_realname=polars
4- pkgbase=mingw-w64-python-${_realname}
5- pkgname=(" ${MINGW_PACKAGE_PREFIX} -python-${_realname} "
6- " ${MINGW_PACKAGE_PREFIX} -python-${_realname} -runtime-32"
7- " ${MINGW_PACKAGE_PREFIX} -python-${_realname} -runtime-64"
8- " ${MINGW_PACKAGE_PREFIX} -python-${_realname} -runtime-compat" )
9- pkgver=2.0.0
4+ pkgbase=" mingw-w64-python-${_realname} "
5+ pkgname=(
6+ " ${MINGW_PACKAGE_PREFIX} -python-${_realname} "
7+ " ${MINGW_PACKAGE_PREFIX} -python-${_realname} -runtime-32"
8+ " ${MINGW_PACKAGE_PREFIX} -python-${_realname} -runtime-64"
9+ " ${MINGW_PACKAGE_PREFIX} -python-${_realname} -runtime-compat"
10+ )
11+ pkgver=2.1.0
1012pkgrel=1
1113pkgdesc=" Extremely fast Query Engine for DataFrames, written in Rust (mingw-w64)"
1214arch=(' any' )
1315mingw_arch=(' ucrt64' ' clang64' ' clangarm64' )
1416url=' https://www.pola.rs/'
1517msys2_repository_url=' https://github.com/pola-rs/polars'
16- license=(' spdx:MIT' )
1718msys2_references=(
18- ' archlinux: python-polars'
1919 ' anitya: 179760'
20+ ' archlinux: python-polars'
21+ ' gentoo: dev-python/polars'
2022 ' purl: pkg:pypi/polars'
2123)
24+ license=(' spdx:MIT' )
2225makedepends=(
23- " ${MINGW_PACKAGE_PREFIX} -rust "
26+ ' git '
2427 " ${MINGW_PACKAGE_PREFIX} -cc"
2528 " ${MINGW_PACKAGE_PREFIX} -maturin"
26- " ${MINGW_PACKAGE_PREFIX} -python-installer "
29+ " ${MINGW_PACKAGE_PREFIX} -pkgconf "
2730 " ${MINGW_PACKAGE_PREFIX} -python-build"
31+ " ${MINGW_PACKAGE_PREFIX} -python-installer"
2832 " ${MINGW_PACKAGE_PREFIX} -python-setuptools"
29- " ${MINGW_PACKAGE_PREFIX} -pkgconf"
30- " git"
33+ " ${MINGW_PACKAGE_PREFIX} -rust"
3134)
3235options=(' !strip' ' !lto' )
33- source=(" ${msys2_repository_url} /archive/py-${pkgver} /${_realname} -py-${pkgver} .tar.gz" )
34- noextract=(" ${_realname} -py-${pkgver} .tar.gz" )
35- sha256sums=(' b0047c61205a744ff555961642068ebc894f95960589fde6ff841a3704fb3ec6' )
36+ _archive=" ${_realname} -py-${pkgver} "
37+ source=(" ${msys2_repository_url} /archive/py-${pkgver} /${_archive} .tar.gz" )
38+ noextract=(" ${_archive} .tar.gz" )
39+ sha256sums=(' 25f6f56bb27a9284822fb55cd71a56dca35b3aa2762ff15557d98152e1ae71a8' )
3640
3741prepare () {
38- tar -xf " ${_realname} -py- ${pkgver } .tar.gz" || true
42+ tar -xf " ${_archive } .tar.gz" || true
3943
40- cd " ${srcdir} /${_realname} -py- ${pkgver } /py-polars"
44+ cd " ${srcdir} /${_archive } /py-polars"
4145
4246 cp ../LICENSE .
4347
4448 cargo fetch --locked --target " ${RUST_CHOST} "
4549}
4650
4751build () {
48- cd " ${_realname} -py- ${pkgver } /py-polars"
52+ cd " ${_archive } /py-polars"
4953
5054 export _PYTHON_HOST_PLATFORM=$( python -c " import sysconfig, sys; sys.stdout.write(sysconfig.get_platform())" )
5155 export WINAPI_NO_BUNDLED_LIBRARIES=1
@@ -55,28 +59,28 @@ build() {
5559
5660 for _runtime in 32 64 compat; do
5761 maturin build -o dist --release --locked --strip \
58- --no-default-features --features full \
59- --compatibility linux \
60- --manifest-path runtime/polars-runtime-${_runtime} /Cargo.toml
62+ --no-default-features --features full \
63+ --compatibility linux \
64+ --manifest-path runtime/polars-runtime-${_runtime} /Cargo.toml
6165 done
6266}
6367
6468package_python-polars () {
65- cd " ${_realname} -py- ${pkgver } /py-polars"
69+ cd " ${_archive } /py-polars"
6670
6771 depends=(
6872 " ${MINGW_PACKAGE_PREFIX} -python"
6973 " ${MINGW_PACKAGE_PREFIX} -python-numpy"
7074 " ${MINGW_PACKAGE_PREFIX} -python-polars-runtime-32"
7175 )
7276 optdepends=(
77+ " ${MINGW_PACKAGE_PREFIX} -python-fastexcel: for reading excel workbooks"
78+ " ${MINGW_PACKAGE_PREFIX} -python-fsspec: to transparently open files locally or remotely"
79+ " ${MINGW_PACKAGE_PREFIX} -python-pandas: for interoperability with pandas frames"
7380 " ${MINGW_PACKAGE_PREFIX} -python-polars-runtime-64: for large dataset support"
7481 " ${MINGW_PACKAGE_PREFIX} -python-polars-runtime-compat: for older CPU compatibility"
75- " ${MINGW_PACKAGE_PREFIX} -python-pandas: for interoperability with pandas frames"
7682 " ${MINGW_PACKAGE_PREFIX} -python-pyarrow: for interoperability with arrow types"
7783 " ${MINGW_PACKAGE_PREFIX} -python-pytz: to enable conversion to python datetimes with timezones"
78- " ${MINGW_PACKAGE_PREFIX} -python-fastexcel: for reading excel workbooks"
79- " ${MINGW_PACKAGE_PREFIX} -python-fsspec: to transparently open files locally or remotely"
8084 )
8185
8286 python -m installer -d " $pkgdir " ./dist/polars-* .whl
@@ -94,7 +98,7 @@ package_python-polars() {
9498
9599_package_runtime () {
96100 local _runtime=$1
97- cd " ${_realname} -py- ${pkgver } /py-polars"
101+ cd " ${_archive } /py-polars"
98102
99103 pkgdesc+=" (runtime libraries$2 )"
100104 provides=(" ${MINGW_PACKAGE_PREFIX} -python-polars-runtime" )
0 commit comments