Skip to content

Commit fbcf46b

Browse files
committed
Rename python_version -> version
1 parent fecb038 commit fbcf46b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/poetry_plugin_elk/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
class PythonConfig(NamedTuple):
8-
python_version: PythonVersion
8+
version: PythonVersion
99
interpreter: str
1010
cpython: bool
1111

@@ -54,7 +54,7 @@ def parse_toml(file) -> ElkConfig:
5454
buck = BuckConfig(**data.get("buck", {}))
5555

5656
python = PythonConfig(
57-
python_version=tuple(data["python"]["version"]),
57+
version=tuple(data["python"]["version"]),
5858
interpreter=data["python"]["interpreter"],
5959
cpython=data["python"].get("cpython", True),
6060
)

src/poetry_plugin_elk/envs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def tags(
1616
) -> Iterator[Tag]:
1717
if f.cpython:
1818
yield from cpython_tags(
19-
python_version=f.python_version,
19+
python_version=f.version,
2020
abis=abis,
2121
platforms=platforms,
2222
)
@@ -27,7 +27,7 @@ def tags(
2727
platforms=platforms,
2828
)
2929
yield from compatible_tags(
30-
python_version=f.python_version,
30+
python_version=f.version,
3131
interpreter=f.interpreter,
3232
platforms=platforms,
3333
)
@@ -135,7 +135,7 @@ def to_env(plat: Platform) -> MockEnv:
135135

136136

137137
_fixed = PythonConfig(
138-
python_version=(3, 12),
138+
version=(3, 12),
139139
interpreter="cp312",
140140
cpython=True,
141141
)

0 commit comments

Comments
 (0)