From c24f4e2157438be40b44e6ba02d90c6bfa934454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Fri, 23 Aug 2019 19:26:24 +0200 Subject: Fix inconsistent matching behaviour. According to the stated goal of "intuitive" behaviour, we want: ``Version('0.1.1-a1') not in Spec('<0.1.1')``. Tests, code and docs have been fixed. --- docs/reference.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/reference.rst') diff --git a/docs/reference.rst b/docs/reference.rst index f9b4aed..a7fce0b 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -330,8 +330,8 @@ does not map well onto `SemVer`_ precedence rules: In order to have version specification behave naturally, the rules are the following: -* If no pre-release number was included in the specification, pre-release numbers - are ignored when deciding whether a version satisfies a specification. +* If no pre-release number was included in the specification, versions with a pre-release + numbers are excluded from matching that specification. * If no build metadata was included in the specification, build metadata is ignored when deciding whether a version satisfies a specification. -- cgit v1.2.1