Skip to content

Commit 91ab2b9

Browse files
authored
python3.12-polars: bump to 1.30.0 (#258)
1 parent cdd6502 commit 91ab2b9

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

tur-pypi-312/python3.12-polars/arboard-dummy-platform.diff

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ https://github.com/1Password/arboard/pull/50
1111
/// The native clipboard is not accessible due to being held by an other party.
1212
--- /dev/null
1313
+++ b/src/platform/dummy.rs
14-
@@ -0,0 +1,78 @@
14+
@@ -0,0 +1,86 @@
1515
+/*
1616
+SPDX-License-Identifier: Apache-2.0 OR MIT
1717
+
@@ -25,7 +25,7 @@ https://github.com/1Password/arboard/pull/50
2525
+use crate::common::Error;
2626
+#[cfg(feature = "image-data")]
2727
+use crate::common::ImageData;
28-
+use std::borrow::Cow;
28+
+use std::{borrow::Cow, path::PathBuf};
2929
+
3030
+pub(crate) struct Clipboard { }
3131
+
@@ -52,6 +52,14 @@ https://github.com/1Password/arboard/pull/50
5252
+ pub(crate) fn image(self) -> Result<ImageData<'static>, Error> {
5353
+ Err(Error::ContentNotAvailable)
5454
+ }
55+
+
56+
+ pub(crate) fn html(self) -> Result<String, Error> {
57+
+ Err(Error::ContentNotAvailable)
58+
+ }
59+
+
60+
+ pub(crate) fn file_list(self) -> Result<Vec<PathBuf>, Error> {
61+
+ Err(Error::ContentNotAvailable)
62+
+ }
5563
+}
5664
+
5765
+pub(crate) struct Set<'clipboard> {
@@ -63,16 +71,16 @@ https://github.com/1Password/arboard/pull/50
6371
+ Self { clipboard }
6472
+ }
6573
+
66-
+ pub(crate) fn text(self, data: Cow<'_, str>) -> Result<(), Error> {
74+
+ pub(crate) fn text(self, _data: Cow<'_, str>) -> Result<(), Error> {
6775
+ Err(Error::ClipboardNotSupported)
6876
+ }
6977
+
70-
+ pub(crate) fn html(self, html: Cow<'_, str>, alt: Option<Cow<'_, str>>) -> Result<(), Error> {
78+
+ pub(crate) fn html(self, _html: Cow<'_, str>, _alt: Option<Cow<'_, str>>) -> Result<(), Error> {
7179
+ Err(Error::ClipboardNotSupported)
7280
+ }
7381
+
7482
+ #[cfg(feature = "image-data")]
75-
+ pub(crate) fn image(self, data: ImageData) -> Result<(), Error> {
83+
+ pub(crate) fn image(self, _data: ImageData) -> Result<(), Error> {
7684
+ Err(Error::ClipboardNotSupported)
7785
+ }
7886
+}

tur-pypi-312/python3.12-polars/build.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/pola-rs/polars
22
TERMUX_PKG_DESCRIPTION="Dataframes powered by a multithreaded, vectorized query engine, written in Rust"
33
TERMUX_PKG_LICENSE="MIT"
44
TERMUX_PKG_MAINTAINER="@termux-user-repository"
5-
TERMUX_PKG_VERSION="1.29.0"
5+
TERMUX_PKG_VERSION="1.30.0"
66
TERMUX_PKG_SRCURL=https://github.com/pola-rs/polars/releases/download/py-$TERMUX_PKG_VERSION/polars-$TERMUX_PKG_VERSION.tar.gz
7-
TERMUX_PKG_SHA256=d2acb71fce1ff0ea76db5f648abd91a7a6c460fafabce9a2e8175184efa00d02
7+
TERMUX_PKG_SHA256=dfe94ae84a5efd9ba74e616e3e125b24ca155494a931890a8f17480737c4db45
88
TERMUX_PKG_AUTO_UPDATE=true
99
TERMUX_PKG_DEPENDS="libc++, python"
1010
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel"
@@ -30,18 +30,15 @@ source $TERMUX_SCRIPTDIR/common-files/tur_build_wheel.sh
3030
termux_pkg_auto_update() {
3131
# Get latest release tag:
3232
local api_url="https://api.github.com/repos/pola-rs/polars/git/refs/tags"
33-
local latest_refs_tags=$(curl -s "${api_url}" | jq .[].ref | grep -oP py-${TERMUX_PKG_UPDATE_VERSION_REGEXP} | sort -V)
33+
local latest_refs_tags=$(
34+
curl -s "$api_url" | jq -r .[].ref | cut -d'/' -f 3 |
35+
grep "py-" | grep -v -E "(rc)|(alpha)|(beta)"
36+
)
3437
if [[ -z "${latest_refs_tags}" ]]; then
3538
echo "WARN: Unable to get latest refs tags from upstream. Try again later." >&2
3639
return
3740
fi
38-
39-
local latest_version="$(echo "${latest_refs_tags}" | tail -n1 | cut -c 4-)"
40-
if [[ "${latest_version}" == "${TERMUX_PKG_VERSION}" ]]; then
41-
echo "INFO: No update needed. Already at version '${TERMUX_PKG_VERSION}'."
42-
return
43-
fi
44-
41+
local latest_version="$(echo "${latest_refs_tags}" | sort -V | tail -n1)"
4542
termux_pkg_upgrade_version "${latest_version}"
4643
}
4744

@@ -61,6 +58,11 @@ termux_step_pre_configure() {
6158
touch "${TERMUX_PKG_BUILDDIR}/android.toolchain.cmake"
6259

6360
cargo vendor
61+
find ./vendor \
62+
-mindepth 1 -maxdepth 1 -type d \
63+
! -wholename ./vendor/arboard \
64+
-exec rm -rf '{}' \;
65+
6466
patch --silent -p1 \
6567
-d ./vendor/arboard/ \
6668
< "$TERMUX_PKG_BUILDER_DIR"/arboard-dummy-platform.diff

0 commit comments

Comments
 (0)