Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ permissions:
contents: read

env:
PYICU_VERSION: "2.15.2"
LIBICU_VERSION: "77"
PYICU_VERSION: "2.16"
LIBICU_VERSION: "78"

jobs:
linux:
Expand Down Expand Up @@ -225,18 +225,6 @@ jobs:
hatch run pyicu:src
hatch run pyicu:tests

# NOTE: only required for v2.15.2
- name: Patch pyicu for MSVC
shell: python
run: |
import pathlib
f = pathlib.Path("pyicu/arg.h")
t = f.read_text()
if "#ifndef _MSC_VER" not in t:
t = t.replace("#define _IS_POD(T)", "#ifndef _MSC_VER\n#define _IS_POD(T)")
t = t.replace("#undef _IS_POD", "#undef _IS_POD\n#endif")
f.write_text(t)

- name: Cache libicu
id: cache-libicu
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ dependencies = ["hatch_buildext"]
[tool.hatch.envs.default.env-vars]
_LIBICU_DIR = "{root:real}/.build"
PYICU_URL = "https://gitlab.pyicu.org/main/pyicu.git"
PYICU_VERSION = "2.15.2"
LIBICU_VERSION = "77"
PYICU_VERSION = "2.16"
LIBICU_VERSION = "78"


[tool.hatch.envs.pyicu]
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-libicu.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $ErrorActionPreference = "Stop"

$ICU_PLAT = $env:ICU_PLAT
$ICU_LIB_SUFFIX = $env:ICU_LIB_SUFFIX
$ICU_URL = "https://github.com/unicode-org/icu/releases/download/release-77-1/icu4c-77_1-${ICU_PLAT}.zip"
$ICU_URL = "https://github.com/unicode-org/icu/releases/download/release-78.1/icu4c-78.1-${ICU_PLAT}.zip"
$TMP_DIR = Join-Path $env:TEMP "icu-download"
$ICU_ZIP = Join-Path $TMP_DIR "icu.zip"

Expand Down
2 changes: 1 addition & 1 deletion scripts/install-libicu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
_HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

_TMP_DIR="${_HERE}/.libicu.tmp"
_ICU_SRC="https://github.com/unicode-org/icu/releases/download/release-77-1/icu4c-77_1-src.tgz"
_ICU_SRC="https://github.com/unicode-org/icu/releases/download/release-78.1/icu4c-78.1-sources.tgz"


# NOTE: see the docs for `runConfigureICU` for the options
Expand Down
2 changes: 1 addition & 1 deletion src/icu/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Init7 <softeng@init7.net>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = "2.15.2"
__version__ = "2.16rc0"
Loading