This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch releases-0.10
in repository https://gitbox.apache.org/repos/asf/fury.git
The following commit(s) were added to refs/heads/releases-0.10 by this push:
new 640384b0 feat(chore): bump version support kotlin (#2134) (#2171)
640384b0 is described below
commit 640384b0ce0936cd4f2b97fd36d1d0c66cdf972d
Author: LiangliangSui <[email protected]>
AuthorDate: Wed Apr 23 22:18:44 2025 +0800
feat(chore): bump version support kotlin (#2134) (#2171)
<!--
**Thanks for contributing to Fury.**
**If this is your first time opening a PR on fury, you can refer to
[CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md).**
Contribution Checklist
- The **Apache Fury (incubating)** community has restrictions on the
naming of pr titles. You can also find instructions in
[CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md).
- Fury has a strong focus on performance. If the PR you submit will have
an impact on performance, please benchmark it first and provide the
benchmark result here.
-->
## What does this PR do?
<!-- Describe the purpose of this PR. -->
Cherry-pick https://github.com/apache/fury/pull/2134 into the
releases-0.10 branch to save the step of manually modifying the Kotlin
version.
## Related issues
<!--
Is there any related issue? Please attach here.
- #xxxx0
- #xxxx1
- #xxxx2
-->
## Does this PR introduce any user-facing change?
<!--
If any user-facing interface changes, please [open an
issue](https://github.com/apache/fury/issues/new/choose) describing the
need to do so and update the document if necessary.
-->
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
<!--
When the PR has an impact on performance (if you don't know whether the
PR will have an impact on performance, you can submit the PR first, and
if it will have impact on performance, the code reviewer will explain
it), be sure to attach a benchmark data here.
-->
Co-authored-by: Shawn Yang <[email protected]>
---
ci/release.py | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/ci/release.py b/ci/release.py
index 0f110461..56af7ac0 100644
--- a/ci/release.py
+++ b/ci/release.py
@@ -127,7 +127,7 @@ def bump_version(**kwargs):
new_version = kwargs["version"]
langs = kwargs["l"]
if langs == "all":
- langs = ["java", "python", "javascript", "scala", "rust"]
+ langs = ["java", "python", "javascript", "scala", "rust", "kotlin"]
else:
langs = langs.split(",")
for lang in langs:
@@ -135,6 +135,8 @@ def bump_version(**kwargs):
bump_java_version(new_version)
elif lang == "scala":
_bump_version("scala", "build.sbt", new_version,
_update_scala_version)
+ elif lang == "kotlin":
+ _bump_version("kotlin", "pom.xml", new_version,
_update_kotlin_version)
elif lang == "rust":
_bump_version("rust", "Cargo.toml", new_version,
_update_rust_version)
elif lang == "python":
@@ -213,6 +215,22 @@ def _update_scala_version(lines, v):
return lines
+def _update_kotlin_version(lines, v):
+ target_index = -1
+ for index, line in enumerate(lines):
+ if "<artifactId>fury-kotlin</artifactId>" in line:
+ target_index = index + 1
+ break
+ current_version_line = lines[target_index]
+ # Find the start and end of the version number
+ start = current_version_line.index("<version>") + len("<version>")
+ end = current_version_line.index("</version>")
+ # Replace the version number
+ updated_version_line = current_version_line[:start] + v +
current_version_line[end:]
+ lines[target_index] = updated_version_line
+ return lines
+
+
def _update_rust_version(lines, v):
for index, line in enumerate(lines):
if "version = " in line:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]