Skip to content

Commit b24821a

Browse files
authored
Allow specification of python patch versions in basepython (#58)
1 parent 6d3f53b commit b24821a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox_conda/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ class CondaDepOption(DepOption):
2020

2121
def get_py_version(envconfig, action):
2222
# Try to use basepython
23-
match = re.match(r"python(\d)(?:\.(\d))?", envconfig.basepython)
23+
match = re.match(r"python(\d)(?:\.(\d))?(?:\.(\d))?", envconfig.basepython)
2424
if match:
2525
groups = match.groups()
2626
version = groups[0]
2727
if groups[1]:
2828
version += ".{}".format(groups[1])
29+
if groups[2]:
30+
version += ".{}".format(groups[2])
2931

3032
# First fallback
3133
elif envconfig.python_info.version_info:

0 commit comments

Comments
 (0)