File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 99import nox
1010from nox import Session
1111
12- from exasol .toolbox .error import ToolboxError
1312from exasol .toolbox .util .version import Version
1413from noxconfig import (
1514 PROJECT_CONFIG ,
3635# fmt: on
3736
3837
39- def write_version_module (version : Version , version_file : Path , exists_ok : bool = True ) -> None :
40- if version_file .exists () and not exists_ok :
41- raise ToolboxError (f"Version file [{ version_file } ] already exists." )
42- version_file .unlink (missing_ok = True )
43- with open (version_file , "w" , encoding = "utf-8" ) as f :
38+ def write_version_module (version : Version , version_file : Path ) -> None :
39+ with version_file .open (mode = "w" , encoding = "utf-8" ) as f :
4440 f .write (
4541 _VERSION_MODULE_TEMPLATE .format (
4642 major = version .major , minor = version .minor , patch = version .patch
You can’t perform that action at this time.
0 commit comments