Merge "Add dependency version examples to README"

This commit is contained in:
Zuul 2019-09-04 20:48:18 +00:00 committed by Gerrit Code Review
commit b4f63c737b

View File

@ -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.
@ -182,6 +183,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.