summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README12
1 files changed, 12 insertions, 0 deletions
diff --git a/README b/README
index 3da2427..79438e7 100644
--- a/README
+++ b/README
@@ -113,6 +113,17 @@ Obviously, :class:`Versions <Version>` can be compared:
False
+It is also possible to check whether a given string is a proper semantic version string:
+
+
+.. code-block:: pycon
+
+ >>> semantic_version.validate('0.1.3')
+ True
+ >>> semantic_version.validate('0a2')
+ False
+
+
Requirement specification
-------------------------
@@ -224,6 +235,7 @@ definition or (for the empty pre-release number) if a single dash is appended
>>> Version('0.1.0-alpha') in Spec('>=0.1.0-') # Include pre-release in checks
False
+
Including build identifiers in specifications
"""""""""""""""""""""""""""""""""""""""""""""