Skip to content

Commit 4820067

Browse files
committed
Moved MINIMUM_PYTHON_VERSION to _shared.py
1 parent 90fe8b8 commit 4820067

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

exasol/toolbox/nox/_artifacts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from nox import Session
1212

1313
from noxconfig import PROJECT_CONFIG
14+
from exasol.toolbox.nox._shared import MINIMUM_PYTHON_VERSION
1415

1516

1617
@nox.session(name="artifacts:validate", python=False)
@@ -144,7 +145,7 @@ def copy_artifacts(session: Session) -> None:
144145

145146
def _python_version_suffix() -> str:
146147
versions = getattr(PROJECT_CONFIG, "python_versions", None)
147-
pivot = versions[0] if versions else "3.9"
148+
pivot = versions[0] if versions else MINIMUM_PYTHON_VERSION
148149
return f"-python{pivot}"
149150

150151

exasol/toolbox/nox/_shared.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
DEFAULT_PATH_FILTERS = {"dist", ".eggs", "venv", ".poetry"}
2121
DOCS_OUTPUT_DIR = ".html-documentation"
2222

23+
MINIMUM_PYTHON_VERSION = "3.9"
24+
2325

2426
class Mode(Enum):
2527
Fix = auto()

0 commit comments

Comments
 (0)