File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ v3.4.2
2
+ ======
3
+
4
+ * fix #395: correctly transfer tag regex in the Configuration constructor
5
+
1
6
v3.4.1
2
7
======
3
8
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def __init__(
66
66
self .fallback_version = fallback_version
67
67
self .fallback_root = fallback_root
68
68
self .parse = parse
69
- self .tag_regex = DEFAULT_TAG_REGEX
69
+ self .tag_regex = tag_regex
70
70
self .git_describe_command = git_describe_command
71
71
72
72
@property
Original file line number Diff line number Diff line change 1
1
from __future__ import unicode_literals
2
2
3
3
from setuptools_scm .config import Configuration
4
-
4
+ import re
5
5
import pytest
6
6
7
7
@@ -26,3 +26,9 @@ def test_config_from_pyproject(tmpdir):
26
26
fn = tmpdir / "pyproject.toml"
27
27
fn .write_text ("[tool.setuptools_scm]\n " , encoding = "utf-8" )
28
28
assert Configuration .from_file (str (fn ))
29
+
30
+
31
+ def test_config_regex_init ():
32
+ tag_regex = re .compile (r"v(\d+)" )
33
+ conf = Configuration (tag_regex = tag_regex )
34
+ assert conf .tag_regex is tag_regex
You can’t perform that action at this time.
0 commit comments