File tree 4 files changed +21
-2
lines changed
4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ email-validator==2.2.0
66
66
exceptiongroup==1.2.2 ; python_full_version < '3.11'
67
67
fastapi-slim==0.115.4
68
68
filelock==3.16.1
69
+ fissix==24.4.24 ; python_full_version >= '3.13'
69
70
frozenlist==1.5.0
70
71
fs==2.4.16
71
72
fsspec==2024.10.0
Original file line number Diff line number Diff line change 1
1
"""Entry point for the usage of Cheetah templating within Galaxy."""
2
2
3
+ import sys
3
4
import traceback
4
- from lib2to3 .refactor import RefactoringTool
5
5
6
6
from Cheetah .Compiler import Compiler
7
7
from Cheetah .NameMapper import NotFound
8
8
from Cheetah .Parser import ParseError
9
9
from Cheetah .Template import Template
10
10
from packaging .version import Version
11
- from past .translation import myfixes
12
11
13
12
from galaxy .util .tree_dict import TreeDict
14
13
from . import unicodify
15
14
15
+ if sys .version_info >= (3 , 13 ):
16
+ import fissix
17
+ from fissix import (
18
+ fixes as fissix_fixes ,
19
+ pgen2 as fissix_pgen2 ,
20
+ refactor as fissix_refactor ,
21
+ )
22
+
23
+ sys .modules ["lib2to3" ] = fissix
24
+ sys .modules ["lib2to3.fixes" ] = fissix_fixes
25
+ sys .modules ["lib2to3.pgen2" ] = fissix_pgen2
26
+ sys .modules ["lib2to3.refactor" ] = fissix_refactor
27
+
28
+ from lib2to3 .refactor import RefactoringTool
29
+
30
+ from past .translation import myfixes
31
+
16
32
# Skip libpasteurize fixers, which make sure code is py2 and py3 compatible.
17
33
# This is not needed, we only translate code on py3.
18
34
myfixes = [f for f in myfixes if not f .startswith ("libpasteurize" )]
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ jstree =
54
54
dictobj
55
55
template =
56
56
CT3>=3.3.3
57
+ fissix; python_version>='3.13'
57
58
future>=1.0.0
58
59
config_template =
59
60
Jinja2
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ dependencies = [
37
37
" dparse" ,
38
38
" edam-ontology" ,
39
39
" fastapi-slim>=0.111.0" ,
40
+ " fissix ; python_version>='3.13'" ,
40
41
" fs" ,
41
42
" future>=1.0.0" , # Python 3.12 support
42
43
" graphene" ,
You can’t perform that action at this time.
0 commit comments