This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git
The following commit(s) were added to refs/heads/main by this push:
new f257f37 fix(ci): Don't set development version for wheel on a release
branch and fix Windows wheel builds (#93)
f257f37 is described below
commit f257f3719e06fcd5107af460a224225a794afb4a
Author: Dewey Dunnington <[email protected]>
AuthorDate: Tue Sep 16 12:43:32 2025 -0500
fix(ci): Don't set development version for wheel on a release branch and
fix Windows wheel builds (#93)
---
.github/workflows/python-wheels.yml | 11 +++++++++--
c/sedona-proj/src/proj.rs | 2 +-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/python-wheels.yml
b/.github/workflows/python-wheels.yml
index 36fefcd..302cef5 100644
--- a/.github/workflows/python-wheels.yml
+++ b/.github/workflows/python-wheels.yml
@@ -26,7 +26,7 @@ on:
push:
branches:
- main
- - 'maint-**'
+ - 'branch-**'
workflow_dispatch:
permissions:
@@ -70,8 +70,15 @@ jobs:
path: vcpkg
- name: Set SedonaDB dev version
+ shell: bash
run: |
- python ci/scripts/set_dev_version.py
+ # Set the unique development version anywhere except a release branch
+ if [[ "${GITHUB_REF##*/}" =~ ^branch-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ version="${GITHUB_REF##*/branch-}"
+ echo "${version}"
+ else
+ python ci/scripts/set_dev_version.py
+ fi
- name: Build and test wheels (sedonadb)
run: |
diff --git a/c/sedona-proj/src/proj.rs b/c/sedona-proj/src/proj.rs
index 2695706..31dfbb5 100644
--- a/c/sedona-proj/src/proj.rs
+++ b/c/sedona-proj/src/proj.rs
@@ -140,7 +140,7 @@ impl ProjContext {
/// - PJ_LOG_LEVEL_PJ_LOG_TELL (4): Tell
pub(crate) fn set_log_level(&self, level: u32) -> Result<(),
SedonaProjError> {
unsafe {
- call_proj_api!(self.api, proj_log_level, self.inner, level);
+ call_proj_api!(self.api, proj_log_level, self.inner, level as _);
}
Ok(())
}