packaging: start development of version 0.5

Change-Id: I56c6ced84262b48bc12a7bc0697b0c87aa6f092e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
setup.py: parse version and description from spec file

Want to maintain packaging meta data in one place (i.e. spec file) as
much as possible.

Change-Id: I94a6381d5675e338db0131d070ebb75cb4280164
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
setup.py: add license and url information

Change-Id: I7a40e1d3274593fc404468fe68410e2e9bd15d69
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Adapt to new fork_call API of obs_service_gbp_utils

Now fork_call() returns a callable instead of directly calling the
function.

Change-Id: I608ecfcde3161b6ee63be597e12a618ac4681c7c
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Convert log string arguments to function parameters

In order to make pylint happier.

Change-Id: Ia36cc68b8497536b4ec375f19d3bc17cb91ee99e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Better handling of gbs export crashes

The fork_call function from obs_service_gbp_utils now raises and
GbpChildBTError exception if the child function crashes with an
unhandled exception. Catch this and print a traceback.

Change-Id: Id406e16d326d5c4ca4d7e7359f98092e33f4a6ec
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tests: test handling of fork_call() failures

Change-Id: Ia8da919778717739ea2f45de30844b7527bcf87a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Add 'git-meta' option to the .service file

Change-Id: Id56027793be5fb80e8633e23ff4836ca730d3374
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Add deployment documentation

Change-Id: I2baf449b02e4a6f7deee32e1096b9f224f40724e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Exit with 3 when GBS crashes

Add a new exit code (3) representing GBS crashes. This makes it possible
to distinguish between normal export failures and crashes also
internally.

Change-Id: Iadac18db6bbec4917ed8a1ba2c9553754cca1399
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Fix one help text in arg parser

Change-Id: Ie15cf7e2a89e4c5fe1e79cae97d9d5a8d532fa8b
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Narrower scope of try-except

Move expressions that do not raise the catched exceptions out of the
try-except block.

Change-Id: I207bbe9a6717b278515acda1ba2a86c71d43faba
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Use "const-like" variables instead of numerical exit codes

Just a cosmetic internal refactor. Hopefully making the code easier to
understand.

Change-Id: I8ae4d01eec410abe1535794d50e1af3cbbe40884
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tests: refactor, introduce check_files() method

For checking export directory content.

Change-Id: I1b18dd35f7a7e570eb675014b47e90f5e805a06b
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Implement 'error-pkg' parameter

Instead of causing a service error generate a special "error package"
that shows the service error log but fails to build. The parameter value
is a comma-separated list of integers, representing the exit codes for
which the special error package is created.

This is a special hack to prevent the +creation of broken packages in
case of service failures.

Change-Id: I20b1e810b498a120245fe94276c180b458ab0b9a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Add an example configuration file

Change-Id: I84cf824847a88183ffff8f1b82b1fa9991290edd
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Add README file

Change-Id: I7750ebc06f5bc5e8b143d51484893e212710d1af
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Document and release version 0.5

Change-Id: I1895fbc737b7a3c64eadbd879ffd187d64c51bf6
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>