Commit Graph

20 Commits

Author SHA1 Message Date
Sean McGinnis 3bee5129d7 Fix formatting issues in docs
This fixes incorrect block quoting, title level, and other minor
formatting issues with the generated docs.

Change-Id: I07d62e54ec837793119fa9f80d610d715bcafdbd
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2021-02-06 01:42:46 +00:00
Jeremy Stanley d06e9fd292 Update contributor doc and readme
Fix some outdated references to OpenStack CI, and correct legacy
URLs to their modern equivalents.

Change-Id: I1d5d35e71702273ac3c2c119147da7ac2d6f1fab
2021-02-04 17:12:29 +00:00
Zuul b4f63c737b Merge "Add dependency version examples to README" 2019-09-04 20:48:18 +00:00
Sorin Sbarnea 5ff2102297 Expose base python version as an atom
Adds two new atoms `base-py2` and `base-py3` that can be used to
identify the primary python version supported by the current operating
system.

This allows bindep file authors to mention correct python package names
without having to hardcode each operating system version, which is
not future proof, as it would break when new versions are released.

New way to use bindep:

python3-lxml [platform:base-py3]
python-lxml [platform:base-py2]

Before this users had to rely on hacks like including the operating
system name and version [platform:centos-7] and negative variants,
something that would being broken as soon a new release is made.

Initial implementation covers RedHat flavored, Ubuntu, Debian and MacOS
which do come with an official Python version but is made in such way
that we could enable it for any other platforms.

Change-Id: I506699fb0c80f8d9ca84e20154d1c282a08708bb
Task: https://tree.taiga.io/project/tripleo-ci-board/task/809
2019-08-21 20:39:27 +01:00
Nick Shobe e7ab6ac639 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 <nickshobe@gmail.com>
2019-07-02 13:53:47 -05:00
Sorin Sbarnea 2152331ebf Replace deprecated bindep-fallback testing
Adopts testing using in-repo bindep.txt testing file instead of
using the deprecated externally hosted bindep-fallback.txt file.

Initial file is the same but in the future we may want to simplify it.

Change-Id: I570fe8686068478a163e4fe597514460b6a69fef
2019-02-14 18:09:04 +00:00
Andreas Jaeger 1b28c33858 Move jenkins/data/bindep-fallback.txt
The location for this file has changed, update usage.

Depends-On: https://review.openstack.org/543139

Change-Id: I46aed248c0ce7015de8a7e9d5653058c5d94d069
2018-02-20 20:03:50 +01:00
Sam Yaple 24427065c5 Add new syntax to allow matching multiple profile
Given the following:
package1 [foo bar]
package2 [foo (bar baz)]
package3 [baz]
package4 [(bar baz)]

Profile 'foo' will match package1 and package2
Profile 'bar' will match package1
Profile 'baz' will match package3
package4 cannot be match when only declaring a single profile

Specifing profiles 'bar baz' will match all four packages

Additionally, this relaxes the whitespace around the profiles and
groups. Previously while space was allowed after but not before braces.

Change-Id: I077943ff52cc8dc2eb6437925f8ca653b3534508
2017-10-06 18:42:09 -04:00
Markos Chandras 8d9c48ef06 bindep: depends: Add distro family aliases
CentOS, RHEL and Fedora share a lot of similarities when it comes to
package names so group them together under the 'redhat' alias.
Similarly, group openSUSE Leap, Tumbleweed and SLE under the 'suse'
alias.

Change-Id: I5bfe33cd48c21b4c94f550a27b96466f488a8df8
2017-04-19 15:09:29 +01:00
Jeremy Stanley cf9f7f239a Move dev reference from readme to contributing
Move the "developing bindep" guide from README.rst to
CONTRIBUTING.rst where it fits a bit better.

Change-Id: Ic98defa0cc7187e47eb1a5374f55cf3e7e0f6680
2016-11-11 19:23:12 +00:00
Andreas Jaeger 62f97ca6f3 Give some examples
Add examples for bindep.txt content.

Change-Id: I7e98d4086a2e9da0690dbb6f2d302fc4593a0632
2016-08-26 17:06:44 +02:00
Monty Taylor c4abfbfc74
Update a couple of old references in README file
The default filename is bindep.txt, not other-requirements.txt any more.

Change-Id: I1f993cef586c8dc5faf7ea4cf7e4c20783544a5f
2016-08-11 12:43:13 -05:00
Andreas Jaeger 1bbf6a77cf Add bindep.txt as default filename
We use bindep.txt as default file and for compatibility handle
other-requirements.txt as well.
* If both files exist, bindep will fail.
* If neither of the files exist, bindep will fail.
* If a command line arg is given, it will be the only file looked at.

Adjust testsuite for change.

Change-Id: If9aaf24b1c7f489d8c7388707afc3316ca6f84f0
2016-08-08 21:44:31 +02:00
Andreas Jaeger 8deb6124fb Handle platform and normal profiles
Currently, a rule like "pkg [platform:rpm test]" will install the
package if one of the conditions is true - so it will install pkg even
on non-RPM systems.

Change the logic so that packages are only installed if one platform
rule is true.

So, for platform:dpkg and the following file using test profile:

install
install2 [test]
non-install3 [platform:rpm]
install4 [platform:dpkg]
non-install5 [quark]
install6 [platform:dpkg test]

Only the "install*" packages should be installed.

Change-Id: I8f71f2b53e786d8aca6d02f973a00fecc2bca4f3
Co-Authored-By: Robert Collins <robertc@robertcollins.net>
2016-06-28 09:09:43 +02:00
Thiago da Silva 02be3f447c fix small typo and link
Change-Id: I2c7e03c7fe34da57f062235deedc3d05ccd461ef
Signed-off-by: Thiago da Silva <thiago@redhat.com>
2016-06-03 10:28:50 -04:00
Jeremy Stanley 0748478190 Document --brief and exit code in basics
Change-Id: I644d8e7f6ea76be7588e7bd6bae03a91cae4ec4e
2015-07-09 01:11:08 +00:00
Jeremy Stanley 4db1a7a057 Support requirements on standard input
Allow a --file parameter of "-" to indicate the package list is read
on standard input, to support use in a traditional command pipeline.

Change-Id: Ic6e54af185e4b07825fcde3ef991f53de0a9ecfa
2015-06-24 17:14:52 +00:00
Marius Gedminas decf073166 Allow comments and blank lines in other-requirements.txt
Change-Id: I96581e2b1c5896649990144e751be6cbd984d349
2015-05-05 11:58:27 +03:00
Robert Collins f06270eab3 Add first cut parser. 2013-06-10 11:19:25 +12:00
Robert Collins cb397d5f3e Initial project docs and framework. 2013-06-09 21:24:01 +12:00