File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
7
7
class PythonConfig (NamedTuple ):
8
- python_version : PythonVersion
8
+ version : PythonVersion
9
9
interpreter : str
10
10
cpython : bool
11
11
@@ -54,7 +54,7 @@ def parse_toml(file) -> ElkConfig:
54
54
buck = BuckConfig (** data .get ("buck" , {}))
55
55
56
56
python = PythonConfig (
57
- python_version = tuple (data ["python" ]["version" ]),
57
+ version = tuple (data ["python" ]["version" ]),
58
58
interpreter = data ["python" ]["interpreter" ],
59
59
cpython = data ["python" ].get ("cpython" , True ),
60
60
)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def tags(
16
16
) -> Iterator [Tag ]:
17
17
if f .cpython :
18
18
yield from cpython_tags (
19
- python_version = f .python_version ,
19
+ python_version = f .version ,
20
20
abis = abis ,
21
21
platforms = platforms ,
22
22
)
@@ -27,7 +27,7 @@ def tags(
27
27
platforms = platforms ,
28
28
)
29
29
yield from compatible_tags (
30
- python_version = f .python_version ,
30
+ python_version = f .version ,
31
31
interpreter = f .interpreter ,
32
32
platforms = platforms ,
33
33
)
@@ -135,7 +135,7 @@ def to_env(plat: Platform) -> MockEnv:
135
135
136
136
137
137
_fixed = PythonConfig (
138
- python_version = (3 , 12 ),
138
+ version = (3 , 12 ),
139
139
interpreter = "cp312" ,
140
140
cpython = True ,
141
141
)
You can’t perform that action at this time.
0 commit comments