1. 04 May, 2019 1 commit
    • Monty Taylor's avatar
      Remove tox_install.sh and just pass -c in tox · f7f4fc46
      Monty Taylor authored
      The tox_install.sh scripts are there to enable dealing with constraints
      support. All of that can be accomplished directly, it turns out, by
      simply adding the -c line to the requirements list.
      
      Remove tox_install.sh and just set constraints directly.
      
      Conflicts:
      	tox.ini
      
      NOTE(stephenfin): Conflicts are due to some additional changes
      introduced to tox in stable/queens before this patch. This patch is
      required because 'tox_install.sh' uses curl w/o -L switch so it fails to
      account for redirects that are now in place for backward compat with
      git.openstack.org.
      
      Change-Id: I888ee148995c080f793f90e168613348283d0ff0
      (cherry picked from commit d8cb8ca0)
      f7f4fc46
  2. 19 Apr, 2019 1 commit
  3. 21 Aug, 2018 1 commit
    • qingszhao's avatar
      import zuul job settings from project-config · d787a5d4
      qingszhao authored
      This is a mechanically generated patch to complete step 1 of moving
      the zuul job settings out of project-config and into each project
      repository.
      
      Because there will be a separate patch on each branch, the branch
      specifiers for branch-specific jobs have been removed.
      
      Because this patch is generated by a script, there may be some
      cosmetic changes to the layout of the YAML file(s) as the contents are
      normalized.
      
      See the python3-first goal document for details:
      https://governance.openstack.org/tc/goals/stein/python3-first.html
      
      Change-Id: I05cf41a0d54330e45397081324acafa18e1b5b24
      Story: #2002586
      Task: #24320
      d787a5d4
  4. 29 Jun, 2018 1 commit
  5. 31 May, 2018 1 commit
  6. 06 Dec, 2017 2 commits
    • John Dennis's avatar
      Fix codec error when format=csv · 35f38208
      John Dennis authored
      The Py2 version of the csv module cannot accept unicode text. In Py2
      we replaced the csv module with the unicodecsv module which encodes
      unicode text prior to calling the standard Py2 csv module. Thus when
      the cvs formatted output is emitted on stdout it is presented as a
      encoded byte stream. But stdout has been replaced with a StreamWriter
      which encodes to the desired encoding. The problem is the StreamWriter
      attempts to encode all objects passed to it's write function,
      including str objects. Instead it should only encode unicode text objects
      and allow bytes to pass through unmodified.
      
      This patch adds an override of the codecs.getwriter function which
      only encodes unicode text objects. In addtion we pass the encoding
      value obtained from the stream to the unicodecsv writer.
      
      The patch fixes the codec error when outputing csv formated text that
      contains a non-ASCII character. The unicodecsv implmentation will emit
      byte encoded str objects to the stream. When the core StreamWriter
      attempts to encode a str object Python will first promote the str
      object to a unicode object. The promotion of str to unicode requires
      the str bytes to be decoded. However the encoding associated with the
      str object is not known therefore Python applies the default-encoding
      which is ASCII. In the case where the str object contains utf-8
      encoded non-ASCII characters a decoding error is raised. By not
      attempting to encode a byte stream we avoid this error.
      
      A more complete discussion of the above issues can be found here:
      
      https://github.com/fedora-infra/kitchen/blob/develop/kitchen2/docs/unicode-frustrations.rst#frustration-4-now-it-doesnt-take-byte-strings
      
      
      
      Change-Id: I22b5ad8bf0e227ec75a2a36986f0487191f7cbc2
      Closes-Bug: 1720115
      Signed-off-by: default avatarJohn Dennis <jdennis@redhat.com>
      (cherry picked from commit c61cc300)
      35f38208
    • Kien Nguyen's avatar
      Fix PEP8 in gate · 5a5c0101
      Kien Nguyen authored
      Zuul openstack-tox-pep8 failed due to several errors [1]
      - Use bare except.
      - Use ambiguous variable name 'l'. As pycodestyle doc [2] mentioned,
      'Never use the characters 'l', 'O', or 'I' as variable names.'.
      
      [1] http://logs.openstack.org/96/477396/3/gate/openstack-tox-pep8/f851c2d/ara/result/57b145af-a103-4982-9e9c-7c93c21b32df/
      [2] https://pep8.readthedocs.io/en/latest/_modules/pycodestyle.html
      
      Change-Id: Iefdf10245a64e58fa6b5d8174a09fb90f18c81a8
      (cherry picked from commit cc7179c9)
      5a5c0101
  7. 11 Aug, 2017 1 commit
  8. 28 Jul, 2017 2 commits
  9. 06 Jul, 2017 2 commits
  10. 05 Jul, 2017 2 commits
  11. 03 Jul, 2017 1 commit
    • Akihiro Motoki's avatar
      sphinxext: Add 'application' option to the autoprogram directive · ccd2e048
      Akihiro Motoki authored
      In some cases, a single documentation build wants to handle multiple
      cliff-based CLI. One possible example is openstack-manuals CLI ref.
      In this case, the global setting 'autoprogram_cliff_application'
      does not work. It is nice if we can specify an application name
      per autoprogram-cliff directive.
      This commit introduces a new option 'application' to
      autoprogram-cliff directive to allow this.
      
      Change-Id: Ie2d01920dc04f2a92031a641d809f7da8af8b395
      ccd2e048
  12. 30 Jun, 2017 19 commits
  13. 29 Jun, 2017 3 commits
  14. 28 Jun, 2017 1 commit
    • Dirk Mueller's avatar
      Adjust completenames tests for cmd2 0.7.3+ · 40b75d8d
      Dirk Mueller authored
      cmd2 0.7.3 started to override Cmd.completenames with a function
      taking additional parameters:
      
        Cmd2.completenames(self, text, line, begidx, endidx)
      
      over the Cmd version:
      
        Cmd.completenames(self, text, *ignored)
      
      With this change we adjust the override to the new signature.
      
      Change-Id: I7b110502c20ec16c6032cce31021eee3f85255fc
      Closes-Bug: #1700250
      40b75d8d
  15. 22 Jun, 2017 1 commit
  16. 08 Jun, 2017 1 commit
    • Stephen Finucane's avatar
      sphinext: Use metavar where possible · 632b12a3
      Stephen Finucane authored
      The Sphinx 'option' directive only allows optional parameter arguments
      to be surrounded by brackets - not positional arguments. As a result,
      'cliff.sphinxext' will ignore 'action.metavar' for positional arguments
      due to the proclivity of said metavars to include surrounding brackets.
      However, 'action.metavar' is sometimes important like, for example, when
      'action.metavar' is a singular form but 'action.dest' is a plural form.
      This can prove very confusing to users.
      
      Start using 'action.metavar' by stripping out these brackets when they
      occur. This ensures we get a pretty good approximation of the intent
      without breaking Sphinx.
      
      Change-Id: I114fe551f2a249faa49b419e18a99228627a8e83
      632b12a3