Skip to content

Commit e676ee7

Browse files
committed
fix(python): fix bump_wheel version (#2534)
<!-- **Thanks for contributing to Fory.** **If this is your first time opening a PR on fory, you can refer to [CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md).** Contribution Checklist - The **Apache Fory** community has requirements on the naming of pr titles. You can also find instructions in [CONTRIBUTING.md](https://github.com/apache/fory/blob/main/CONTRIBUTING.md). - Fory 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. --> ## Why? <!-- Describe the purpose of this PR. --> ## What does this PR do? - Set bash for windows - Remove `-` from version ## Related issues <!-- Is there any related issue? If this PR closes them you say say fix/closes: - #xxxx0 - #xxxx1 - Fixes #xxxx2 --> ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/fory/issues/new/choose) describing the need to do so and update the document if necessary. Delete section if not applicable. --> - [ ] 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. Delete section if not applicable. -->
1 parent cf11083 commit e676ee7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ci/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ parse_py_version() {
6060
version="${version//-alpha/a}"
6161
version="${version//-beta/b}"
6262
version="${version//-rc/rc}"
63+
version="${version//-//}"
6364
echo "$version"
6465
}
6566

ci/release.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ def _update_python_version(lines, v: str):
245245
v = v.replace("-alpha", "a")
246246
v = v.replace("-beta", "b")
247247
v = v.replace("-rc", "rc")
248+
v = v.replace("-", "")
248249
lines[index] = f'__version__ = "{v}"\n'
249250
break
250251

0 commit comments

Comments
 (0)