Permalink
Commits on Feb 1, 2017
  1. Automatic commit of package [tito] release [0.6.10-1].

    Created by command:
    
    /usr/bin/tito tag
    committed Feb 1, 2017
  2. F25 branches update.

    committed Feb 1, 2017
Commits on Jan 30, 2017
  1. Merge pull request #271 from stevekuznetsov/skuznets/init-options

    Parse options in `tito init`
    stevekuznetsov committed on GitHub Jan 30, 2017
  2. Merge pull request #270 from stevekuznetsov/skuznets/better-undo

    Do not undo tags when git state is dirty
    stevekuznetsov committed on GitHub Jan 30, 2017
  3. Do not undo tags when git state is dirty

    When using `tito tag --undo` in a repository with a dirty
    `git` state, no action should be taken.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 28, 2017
  4. Parse options in `tito init`

    Previously, the `optparse` option parsing was not being done in the
    call to `tito init`, which led to CLI invocations that used `--help`
    not getting the helptext and instead getting the normal output of
    `tito init`.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 28, 2017
Commits on Jan 26, 2017
  1. Merge pull request #269 from stevekuznetsov/skuznets/python-26-compat

    Iron out Python 2.6 incompatibilities for CentOS 6
    stevekuznetsov committed on GitHub Jan 26, 2017
  2. Use `.assertTrue()` instead of `.assertIn()`

    CentOS 6 only has Python 2.6 available, on which the unit testing
    frameworks do not expose a `.assertIn()` helper method. Instead, we can
    use `.assertTrue(x in y)`.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  3. Only use `rpmbuild --noclean` if it is supported

    CentOS 6 only has rpmbuild 4.8 available, on which the `--noclean` option
    is not present. We should only pass `--noclean` to `rpmbuild` when we
    can determine that it is supported.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  4. Explicitly define indicies in formatting statements

    Python 2.6 is the latest Python version available on CentOS 6. In Python
    2.6, the newer formatting statements must have indexed formatting
    specifiers, so you must write
    
        "{0}{1}".format(foo, bar)
    
    instead of:
    
        "{}{}".format(foo, bar)
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  5. Merge pull request #268 from stevekuznetsov/skuznets/updaets

    Updates to the MANIFEST and `tito build --quiet`
    committed on GitHub Jan 26, 2017
  6. Achieve quiet output from `rpmbuild` without passing `--quiet`

    The output from `rpmbuild` is necessary to capture for determining which
    artifacts were created as part of the build, so we cannot achieve quiet
    output from `tito build --quiet` by passing `--quiet` to `rpmbuild` as
    well. Instead we just don't print the output from the command unless it
    fails.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  7. Update the MANIFEST.in

    No `README.mkd` file exists, but `README.md` does. No files ending in
    `.5` exist, but some manpages that end in `.5.asciidoc` do.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  8. Correctly pass verbosity options through the builder CLI

    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  9. Use correct print-formatting directive in debugging

    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  10. Merge pull request #250 from stevekuznetsov/skuznets/fix-rawhide-tests

    Work around `dnf` issues and install builddep for Rawhide
    stevekuznetsov committed on GitHub Jan 26, 2017
  11. Merge pull request #266 from stevekuznetsov/skuznets/travis

    Add a Travis CI manifest
    committed on GitHub Jan 26, 2017
  12. Merge pull request #264 from stevekuznetsov/skuznets/build-verbosity

    Added `--quiet` and `--verbose` to `tito build`
    committed on GitHub Jan 26, 2017
  13. Use `.format()` string formatting correctly in Builder

    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 25, 2017
  14. Refactor `rpmbuild` invocation for readability

    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 25, 2017
  15. Added `--quiet` and `--verbose` to `tito build`

    The current output levels from `tito build` are both very verbose in the
    case that nothing goes wrong and often missing full context when some-
    thing does go wrong. By exposing `--quiet` and `--verbose`, the build
    process should be able to modulate the amount of output coming from the
    internal process and from `rpmbuild`.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 25, 2017
  16. Add a Travis CI manifest

    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  17. Merge pull request #265 from stevekuznetsov/skuznets/tag-mapping

    Refactored version->tag mapping logic in Tagger
    committed on GitHub Jan 26, 2017
  18. Only flush output stream if flushing is supported

    While file handles support the `.flush()` method, some of the more
    UNIX-ey pipes and tees do not. We should try to `.flush()` when we
    can, but not bother when we can't.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  19. Added support for choosing platforms for tests

    Running the entire suite of containerized tests across all of the
    platforms that are supported takes quite a while, especially if the
    container images need to be built. Now, the platforms that are to be
    tested can be specified with `$PY2_DISTROS` and `$PY3_DISTROS`.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  20. Refactored version->tag mapping logic in Tagger

    While the `tito.VersionTagger._get_new_tag()` method encapsulated some
    of the version->tag mapping logic, other areas in the `VersionTagger`
    used their own logic to do the mapping. This commit ensures that this
    mapping happens in one place, which allows for custom implementations
    to override the behavior simply.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 26, 2017
  21. Merge pull request #262 from stevekuznetsov/skuznets/force-flush

    Flush output buffers
    committed on GitHub Jan 26, 2017
  22. Merge pull request #263 from stevekuznetsov/skuznets/command_debug

    Updated some debugging statements
    committed on GitHub Jan 26, 2017
Commits on Jan 25, 2017
  1. Improved debugging for RPM build step

    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 25, 2017
  2. Print command debugging information only once

    When debugging is turned on and a command is run that fails or with
    `print_on_success` on, the output for the command execution ends up
    being printed twice. This change ensures that only one set of output
    is printed at any point.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 25, 2017
  3. Flush output buffers

    When using `$DEBUG=1`, often the output from different parts of `tito`
    that output to different streams (for instance, `stderr` and `stdout`)
    appears in the terminal in a garbled order. Furthermore, the stacktraces
    generated by the Python interpreter are out of order with the output
    from the `tito` process and often fragmented. By flushing the output
    buffers on `tito.common._out()` we should be able to work around this.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 25, 2017
  4. Merge pull request #261 from stevekuznetsov/skuznets/tag-version-mapping

    Factor out the version->tag mapping in the Builder
    committed on GitHub Jan 25, 2017
  5. Merge pull request #260 from stevekuznetsov/skuznets/non-escalating-i…

    …nstall
    
    Added an option to not escalate privileges on `tito build --install`
    committed on GitHub Jan 25, 2017
  6. Document `tito tag --use-release` in the manpage

    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 25, 2017
  7. Added an option to not escalate privileges on `tito build --install`

    When using `tito build --install` on a system without `sudo`, such as
    inside of a Linux container build, the current implementation fails.
    Furthermore, if the user is running `tito build --install` with the
    correct level of privilege, it is not necessary to escalate privileges
    further for the installation step.
    
    This patch adds the `--dont-escalate-privileges` flag to `tito build`
    and defaults it to `True`, which keeps the behavior backwards compat-
    ible. Users will want to use this flag when building RPMs inside of a
    container or when running `tito build` with the requisite permissions
    for installing in the first place.
    
    Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
    stevekuznetsov committed Jan 24, 2017