Skip to content

Commit

Permalink
Support Python 3.13
Browse files Browse the repository at this point in the history
engine/ibus-engine-hiragana.in
ibus-hiragana.spec.in
requirements.txt
  • Loading branch information
ShikiOkasaka committed Nov 6, 2024
1 parent fa17c18 commit 987f360
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
8 changes: 0 additions & 8 deletions engine/ibus-engine-hiragana.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ if [ "$PYTHON_VERSION" != "$VENV_VERSION" ]; then
source $PKGDATAHOME/venv/bin/activate
fi

# A workaround for Fedora 41
python -m pip install PyGObject
IBUS_PY=/usr/lib64/python3.13/site-packages/gi/overrides/IBus.py
OVERRIDES_DIR=~/.local/share/ibus-hiragana/venv/lib64/python3.12/site-packages/gi/overrides
if [ -f $IBUS_PY ] && [ -d $OVERRIDES_DIR ]; then
cp -pu $IBUS_PY $OVERRIDES_DIR
fi

# Run IBus engine
python -O @prefix@/share/ibus-hiragana/engine/main.py $@
status=$?
Expand Down
9 changes: 1 addition & 8 deletions ibus-hiragana.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ BuildRequires: python3-devel
BuildRequires: python3-markdown
BuildArch: noarch

# a workaround for fedora 41
Requires: python3.12
Requires: python3.12-devel
Requires: cairo-gobject-devel
Requires: gobject-introspection-devel
BuildRequires: python3.12-devel

%description
Hiragana IME for IBus.

Expand All @@ -38,7 +31,7 @@ Hiragana IME for IBus.
%autosetup

%build
%meson -Dtests=false -Dpython=python3.12
%meson -Dtests=false
%meson_build

%install
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PyGObject
packaging >= 20.9
fugashi[unidic-lite] == 1.3.2
fugashi[unidic-lite] == 1.3.3
dill == 0.3.9
transformers[torch] == 4.44.2
transformers[torch] == 4.46.2

0 comments on commit 987f360

Please sign in to comment.