summaryrefslogtreecommitdiff
path: root/semantic_version
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2020-04-29 11:46:24 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2020-04-29 11:46:24 +0200
commit0811fca1c435c1477ee1465578580b491cba6c73 (patch)
treed83ce16c1b5fa1d6a8ee76a0248a9d77f9aedbb8 /semantic_version
parenteda1ac8c22a99dbd01cd57fbcd459856b469ae46 (diff)
downloadsemantic-version-0811fca1c435c1477ee1465578580b491cba6c73.tar.gz
Fix wildcard matching for SimpleSpec.
Including docs and tests. Closes #98.
Diffstat (limited to 'semantic_version')
-rw-r--r--semantic_version/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/semantic_version/base.py b/semantic_version/base.py
index 7fd871e..871ccb0 100644
--- a/semantic_version/base.py
+++ b/semantic_version/base.py
@@ -1123,7 +1123,7 @@ class SimpleSpec(BaseSpec):
elif minor is None:
return Range(Range.OP_GTE, target) & Range(Range.OP_LT, target.next_major())
elif patch is None:
- return Range(Range.OP_GTE, target) & Range(Range.OP_LT, target.next_patch())
+ return Range(Range.OP_GTE, target) & Range(Range.OP_LT, target.next_minor())
elif build == '':
return Range(Range.OP_EQ, target, build_policy=Range.BUILD_STRICT)
else: