Skip to content

Commit fd55301

Browse files
committed
Custom adobe version and artifactory publish
1 parent da58c44 commit fd55301

File tree

5 files changed

+51
-38
lines changed

5 files changed

+51
-38
lines changed

build-linux-arm64.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

build-linux-arm64.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build-linux.sh

build-linux-x86_64.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

build-linux-x86_64.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build-linux.sh

build-linux.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/bash
2+
3+
mkdir -p ./target-linux/wheels
4+
5+
export DOCKER_BUILDKIT=1
6+
7+
root_dir="$(dirname $0)"
8+
script=$(basename $0 .sh)
9+
[ -L $0 ] || {
10+
>&2 echo "Should be invoked via one of the $root_dir/build-linux-<platform>.sh symlinks"
11+
exit 1
12+
}
13+
platform="${script#build-linux-}"
14+
case $platform in
15+
arm64)
16+
pyplatform=aarch64
17+
;;
18+
*)
19+
pyplatform=$platform
20+
;;
21+
esac
22+
23+
version=$(grep -w '^version' "$root_dir/pyproject.toml" | awk -F '"' '{print $2}')
24+
sanitized_version=$(echo $version | tr '+' _)
25+
26+
img_tag=docker-cja-arrow-dev.dr-uw2.adobeitc.com/datafusion-python:$sanitized_version-$platform
27+
28+
docker build \
29+
--ssh default \
30+
--progress=plain \
31+
--platform linux/$platform \
32+
-f Dockerfile-build-wheel.$platform \
33+
-t $img_tag \
34+
"$root_dir"
35+
36+
id=$(docker create --platform linux/$platform $img_tag)
37+
wheel=datafusion-$version-cp38-abi3-manylinux_2_28_$pyplatform.whl
38+
docker cp $id:$wheel .
39+
docker rm -v $id
40+
41+
which jfrog || brew install jfrog-cli
42+
jfrog rt upload --url https://artifactory-uw2.adobeitc.com/artifactory \
43+
--user ${ARTIFACTORY_USER:-$ARTIFACTORY_USERNAME} \
44+
--password ${ARTIFACTORY_UW2_TOKEN:-$ARTIFACTORY_API_TOKEN} \
45+
$wheel pypi-arrow-release/datafusion/$version/

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ classifiers = [
4545
"Programming Language :: Rust",
4646
]
4747
dependencies = ["pyarrow>=11.0.0", "typing-extensions;python_version<'3.13'"]
48-
dynamic = ["version"]
48+
#dynamic = ["version"]
49+
version = "44.0.0+adobe.1"
4950

5051
[project.urls]
5152
homepage = "https://datafusion.apache.org/python"

uv.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)