File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ v3.1.0
2
+ =======
3
+
4
+ * fix #297 - correct the invocation in version_from_scm and deprecate it as its exposed by accident
5
+
1
6
v3.0.6
2
7
======
3
8
* fix #295 - correctly handle selfinstall from tarballs
Original file line number Diff line number Diff line change 24
24
25
25
26
26
def version_from_scm (root ):
27
+ warnings .warn (
28
+ "version_from_scm is deprecated please use get_version" ,
29
+ category = DeprecationWarning ,
30
+ )
31
+ config = Configuration ()
32
+ config .root = root
27
33
# TODO: Is it API?
28
- return _version_from_entrypoint (root , "setuptools_scm.parse_scm" )
34
+ return _version_from_entrypoint (config , "setuptools_scm.parse_scm" )
29
35
30
36
31
37
def _call_entrypoint_fn (config , fn ):
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ def test_root_parameter_creation(monkeypatch):
46
46
setuptools_scm .get_version ()
47
47
48
48
49
+ def test_version_from_scm (wd ):
50
+ with pytest .warns (DeprecationWarning , match = ".*version_from_scm.*" ):
51
+ setuptools_scm .version_from_scm (str (wd ))
52
+
53
+
49
54
def test_root_parameter_pass_by (monkeypatch , tmpdir ):
50
55
assert_root (monkeypatch , tmpdir )
51
56
setuptools_scm .get_version (root = tmpdir .strpath )
You can’t perform that action at this time.
0 commit comments