@@ -70,6 +70,7 @@ def version_keyword(
70
70
value : bool | dict [str , Any ] | Callable [[], dict [str , Any ]],
71
71
* ,
72
72
_given_pyproject_data : _t .GivenPyProjectResult = None ,
73
+ _get_version_inference_config : _t .GetVersionInferenceConfig = get_version_inference_config ,
73
74
) -> None :
74
75
"""apply version infernce when setup(use_scm_version=...) is used
75
76
this takes priority over the finalize_options based version
@@ -98,7 +99,7 @@ def version_keyword(
98
99
log .debug ("Configuration issue in pyproject.toml: %s" , e )
99
100
return
100
101
101
- result = get_version_inference_config (
102
+ result = _get_version_inference_config (
102
103
dist_name = dist_name ,
103
104
current_version = dist .metadata .version ,
104
105
pyproject_data = pyproject_data ,
@@ -113,6 +114,7 @@ def infer_version(
113
114
dist : setuptools .Distribution ,
114
115
* ,
115
116
_given_pyproject_data : _t .GivenPyProjectResult = None ,
117
+ _get_version_inference_config : _t .GetVersionInferenceConfig = get_version_inference_config ,
116
118
) -> None :
117
119
"""apply version inference from the finalize_options hook
118
120
this is the default for pyproject.toml based projects that don't use the use_scm_version keyword
@@ -134,7 +136,7 @@ def infer_version(
134
136
log .debug ("Configuration issue in pyproject.toml: %s" , e )
135
137
return
136
138
137
- result = get_version_inference_config (
139
+ result = _get_version_inference_config (
138
140
dist_name = dist_name ,
139
141
current_version = dist .metadata .version ,
140
142
pyproject_data = pyproject_data ,
0 commit comments