Skip to content

Commit f8b2cb7

Browse files
authored
Update Python packages part 2 (#32937)
* polars: 2.1.0 * win32-setctime: 1.2.1
1 parent bd7b064 commit f8b2cb7

2 files changed

Lines changed: 32 additions & 28 deletions

File tree

‎mingw-w64-python-polars/PKGBUILD‎

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,55 @@
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
1012
pkgrel=1
1113
pkgdesc="Extremely fast Query Engine for DataFrames, written in Rust (mingw-w64)"
1214
arch=('any')
1315
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
1416
url='https://www.pola.rs/'
1517
msys2_repository_url='https://github.com/pola-rs/polars'
16-
license=('spdx:MIT')
1718
msys2_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')
2225
makedepends=(
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
)
3235
options=('!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

3741
prepare() {
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

4751
build() {
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

6468
package_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")

‎mingw-w64-python-win32-setctime/PKGBUILD‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _realname='win32-setctime'
22
_pyname="${_realname//-/_}"
33
pkgbase="mingw-w64-python-${_realname}"
44
pkgname="${MINGW_PACKAGE_PREFIX}-python-${_realname}"
5-
pkgver=1.2.0
5+
pkgver=1.2.1
66
pkgrel=1
77
pkgdesc='A small Python utility to set file creation time on Windows (mingw-w64)'
88
arch=('any')
@@ -23,7 +23,7 @@ makedepends=(
2323
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
2424
)
2525
source=("https://pypi.org/packages/source/${_pyname::1}/${_realname}/${_pyname}-${pkgver}.tar.gz")
26-
sha256sums=('ae1fdf948f5640aae05c511ade119313fb6a30d7eabe25fef9764dca5873c4c0')
26+
sha256sums=('077b35471bf1ff1d71e165c919ddc0cecf51b8e1802f5d820d33a96e2f6717dd')
2727

2828
build() {
2929
cp -r "${_pyname}-${pkgver}" "build-${MSYSTEM}" && cd "build-${MSYSTEM}"

0 commit comments

Comments
 (0)