From e7ab6ac6398cbeaa3ded43648d46ceb488b7719c Mon Sep 17 00:00:00 2001 From: Nick Shobe Date: Tue, 2 Jul 2019 13:43:40 -0500 Subject: [PATCH] Add dependency version examples to README The bindep README.rst lacked clarification on using version strings for dependency resolution. Closes-Bug: #2000955 Change-Id: I92fb0af1a4ae751ec4dc90426a8c4beac6ce4e9f Signed-off-by: Nick Shobe --- README.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 171a178..8672031 100644 --- a/README.rst +++ b/README.rst @@ -100,7 +100,8 @@ not work inside of the group. Version constraints are a comma separated list of constraints where each constraint is (== | < | <= | >= | > | !=) VERSION, and the constraints are ANDed -together (the same as pip requirements version constraints). +together (the same as pip requirements version constraints, +except that they require a space between the dep and version constraints). Comments are allowed: everything from the first ``#`` to the end of the line is ignored. @@ -170,6 +171,14 @@ This selects the ``ceph-common`` package when the profile ``ceph`` is specified. However, it will only select the ``python-rbd`` package when both ``ceph`` and ``glance`` profiles are active. +To specify package versions:: + + python >=3.7,<=3.8 + grep >=3.3 + + # OR with a platform profile + python [platform:brew] ==3.7.3 + For a more comprehensive example check bindep.txt_ file that is used to test bindep itself on multiple platforms.