Add a build example and refresh the bootstrap,
prepare and install examples to reflect there
current output.
Change-Id: I41d304b914d26ae621fb6f3d2cf91c02e1b5e251
This commit adds support for setting release (what goes to RELEASE
rpm tag) to components that are build with py2rpm (not from custom
specfiles).
Change-Id: I80edd646e0b7d5b34dda4bcc94777fbfc38f99f2
Refs: bug 1190432
If no patches are specified for particular component, we now look for
them in conf/patches/<component_name>/<section>, where section is
'download' or 'package'.
Change-Id: Iee40ef1eee13783650929525d478195cc0428170
Fixes: bug 1194187
Ensure that we cut off the python -> rpm name
versions correctly and don't put duplicate names
into the returned array.
Change-Id: I4767ed815ecbfcfb4756c751be2b2e5ccd0deb40
It doesn't appear like the correct versions are being
built so create a helper tool that can search for the
correct versions and install those if they exist or
build the ones that are missing.
Change-Id: I03869556a8e321c06ad3ed0b81bb7e8f647e4c8e
Certain openstack components when built with sdist seem to
be missing, which will break either pbr (and setup.py) or
break doc building or i8ln building so make sure that we
pickup these paths if they are not automatically included.
Also include a few tracewriter tracking additions and few
wording adjustments.
Fixes bug: #1195842
Change-Id: I0ce68db9aa28fcc3b839c7583468927d0e2647c6
openstack.common.setup can report version incorrectly
(several version instead of one). This happens when
several tags contain the commit.
Solution: remove all extra new tags.
Change-Id: I5dedb522169bc90649eace41a405c2ceb8467cc3
Fixes: bug #1190588
Maintain a file indicating that all downloads are finished
and ensure that all requirements are satisfied.
Implements: blueprint pip-download-once
Change-Id: I0ddd39885d195da9a59bef2453be63990a784d32
Using stashes in pre-commit hook had the following demerits:
- when stash was not needed, it was not created, so some other stash
created by user was poped on exit -- this was a source of great
confusion;
- files with unstaged changes were touched, which caused unwanted
side effects with some tools like editors or build systems.
This commit changes the way we get the clean source by checking out
index tree to temporary dir without modifying working tree. This
might be a bit slower for large repositories, but in my tests for
this repo it is within 5%.
Change-Id: Ic32fc2f52958b63131fcbe363ea47fca13099ea3
- Some style adjustments.
- Use SRC_REPOS for mapping repo name to source repository name.
- Split the build_binary into individual tiny functions.
- Fix up the progress bars and iterable logging.
- Ensure that we log that we wrote to /etc/yum.repos.d and leave a trace for later cleanup.
- Quiet some of the new executes (and put there output to files).
- Add a smithy clean_pip() function that will help avoid hitting https://github.com/pypa/pip/issues/982
- Further cleanup of smithy after it being partially rewritten.
- Instead of hard coding 'conf/distros/rhel.yaml' in smithy, take this from the sourced file.
- Ensure that we can't remove packages smithy requires to operate.
- Ensure the package version that py2rpm is building is also trimmed of zeros.
Change-Id: I2df8a47f0115de2684777b64db42e08d50ef4115
* add build action to build binary packages
* remove conflicting packages on install phase
* process rhel.yaml to get required RPM package names
* allow including only /usr directory to packages
Build action is run as root after prepare action.
Change-Id: I6beec02e1c6ff48ec24a6ae382aae0193c1af95f
Fixes: bug #1193088
Fixes: bug #1193085
This commit adds all patches mentioned in components configuration
to RPMs, so that they are applied during build (on %prep stage).
Package patches were ignored since we started building RPMs
from custom specs (commit:da861bc).
Change-Id: Idca0e7cf1c67d12ff27cc5374cfbf0ce6e5d6a3b
Fixes: bug #1190429
Using community's testr cause import sequence errors sometimes. Most
stable way seems to be run test using nose.
Also use coverage to gather coverage statistics.
Cherry-picked with certain corrections from 7ff4b3855.
Change-Id: Ic6de91086e64e376d83a22f0a16d6e6fa9feccee
There were several places where we tried to avoid to treat
OpenStack package as dependency. Now it is done in one place,
at the very beginning of dependency information gathering
process.
Change-Id: I9df4bed730e4593cf832ff3f160574292d389423
This allows to adjust package version and release from configurations
and provides support for some interesting build scenarios.
This feature is now supported for all our custom specfiles.
Fixes: bug #1190432
Change-Id: I23e25ff4e8404d26b97c1e8bf446c92b3e0fb83d