summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* OpenDev Migration Patchqueens-eolstable/queensOpenDev Sysadmins2019-04-192-2/+2
| | | | | | | | | | | | | | | This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
* Merge "import zuul job settings from project-config" into stable/queensZuul2018-09-011-0/+6
|\
| * import zuul job settings from project-configqingszhao2018-08-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I2bf8e7e5469f04edaf0f67dfa3146db96c4f4f6e Story: #2002586 Task: #24320
* | Merge "Update UPPER_CONSTRAINTS_FILE for stable/queens" into stable/queensZuul2018-08-311-1/+1
|\ \ | |/ |/|
| * Update UPPER_CONSTRAINTS_FILE for stable/queensOpenStack Release Bot2018-01-241-1/+1
| | | | | | | | Change-Id: If95c8839b821047a3458d23536bbf5ab5f1cedf4
* | Align parsed() call with cmd2 versions >= 0.7.3queens-em2.11.1Corey Bryant2018-06-291-1/+7
| | | | | | | | | | | | | | | | In version 0.7.3, cmd2 moved the parsed method from class Cmd() to class ParserManager(). Change-Id: Ie0c057ffaeaa05c4f5e0f3599aab850245c55066 Closes-Bug: #1751822
* | update cmd2 dependency to handle py3 only versionsMaksim Malchuk2018-05-311-1/+2
|/ | | | | | | | | | | cmd2 released a python3 only versions of itself. We need to update requirements to handle it. This updates requirements to match requirements. See https://review.openstack.org/570811 for more details. Depends-On: I568e649ec5fdd0bf875d7ac3ff630e9b6bae6426 Change-Id: I3d527ba30205c9f3b3b2e89f795ee5611422c013 Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com> (cherry picked from commit 5e4b3bedc073bed61716ae7e47780d8192a1c34f)
* Update .gitreview for stable/queensOpenStack Release Bot2018-01-241-0/+1
| | | | Change-Id: I368134c796ec49c62ac547ad9c683fcb26c6ea0d
* remove -s alias for --sort-columns2.11.0Doug Hellmann2018-01-182-1/+21
| | | | | | | | | | | Cliff normally uses short option name aliases which are global in to the CLI. We want commands to not use them due to the limited number and ease of collision. However this one was already in use by a well-known plugin so we will not take it. Change-Id: Id348dad450b52716b82d7852d6378ecc48808f26 Closes-Bug: #1743578 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Merge "Remove empty files"Zuul2018-01-141-0/+0
|\
| * Remove empty filesNguyen Hung Phuong2018-01-021-0/+0
| | | | | | | | | | | | openstack-common.conf is empty file. We probably should remove it. Change-Id: I91afac311e1812fbcff5dd79d73563f1d77c34c7
* | Merge "Add ability to sort data by columns for list commands"2.10.0Zuul2018-01-023-2/+100
|\ \
| * | Add ability to sort data by columns for list commandsVitalii Kulanov2017-12-273-2/+100
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Very often there is a need to sort data by one or several columns. This patch adds ability to do this by specifying extra '-s/--sort-column' argument with respective columns: -s SORT_COLUMN, --sort-column SORT_COLUMN specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated e.g.: * without sorting: foo_command bar_subcommand list +------+------+ | Col1 | Col2 | +------+------+ | a | A | | b | B | | c | A | +------+------+ * with sorting: foo_command bar_subcommand list -s Col2 Col1 +------+------+ | Col1 | Col2 | +------+------+ | a | A | | c | A | | b | B | +------+------+ Change-Id: Ifc6d6746448ff6f42898efd78ed3fd084a598a91
* | Updated from global requirementsOpenStack Proposal Bot2017-12-041-0/+3
|/ | | | Change-Id: I517dc7c33e2cd6b1e6a575c8c5c523e210870351
* Merge "Remove tox_install.sh and just pass -c in tox"Zuul2017-12-042-89/+3
|\
| * Remove tox_install.sh and just pass -c in toxMonty Taylor2017-12-022-89/+3
| | | | | | | | | | | | | | | | | | | | 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. Change-Id: I888ee148995c080f793f90e168613348283d0ff0
* | Merge "Replace legacy tips jobs with shiny new versions"Zuul2017-12-041-0/+33
|\ \ | |/
| * Replace legacy tips jobs with shiny new versionsMonty Taylor2017-12-011-0/+33
| | | | | | | | | | | | | | | | For openstackclient we can use the new osc-tox-unit-tips jobs from the openstackclient repo. For neutronclient, make a cliff-specific job. Change-Id: I244bad5a7a65b5e988a6ccb9e6403e86f03a38ac Depends-On: Ie0f3e9d7e221c9cdd3c5d726148f456246186ff4
* | Merge "Fix codec error when format=csv"Zuul2017-12-044-7/+122
|\ \
| * | Fix codec error when format=csvJohn Dennis2017-10-024-7/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: John Dennis <jdennis@redhat.com>
* | | Merge "Move doc requirements to doc/requirements.txt"Zuul2017-12-044-13/+11
|\ \ \ | | |/ | |/|
| * | Move doc requirements to doc/requirements.txtMonty Taylor2017-12-014-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Put these in place as a setup for the new versions of the doc build jobs. Keep using them from the normal dep list until the jobs are changed. While we're here, update the docs env to use sphinx-build instead of python setup.py build_sphinx. Also add python2.7 to the docs env, since I accidentally tried building it with my python3 tox and it blew up substantially. Change-Id: I0fcc50c4c396758e839c329ce786a6f609bb1342
* | | Merge "do not require installing demo app to build docs"Zuul2017-12-043-2/+21
|\ \ \ | |/ /
| * | do not require installing demo app to build docsDoug Hellmann2017-12-013-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the dependency on the demoapp and just add it to the import path so it is available to be imported. Copy the entry point settings into the main cliff setup.cfg to ensure they are registered for the doc build to find. Change-Id: I390410bc5247e8b6c8d0a8fec8e7ecb223d8d6c1 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | | Merge "Updated from global requirements"Zuul2017-12-022-3/+3
|\ \ \
| * | | Updated from global requirementsOpenStack Proposal Bot2017-11-162-3/+3
| | | | | | | | | | | | | | | | Change-Id: Icd148aa05cc290d246cf27a7f99a3dbe7a84426f
* | | | Merge "add support for legacy command name translation"Zuul2017-12-022-2/+70
|\ \ \ \ | |_|/ / |/| | |
| * | | add support for legacy command name translationDoug Hellmann2017-11-302-2/+70
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Add add_legacy_command() method to the command manager and update the command search logic to try translating the old legacy name to the new name. Change-Id: I0c0cdbfcb1612ec3975864fc7f730ff186879027 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | | Use in-tree cliffdemo app for docs buildAkihiro Motoki2017-11-291-1/+1
|/ / | | | | | | | | | | | | | | Previously cliffdemo is specified as the dependency, but it installs cliffdemo from PyPI which is older. It is better to build the doc from the in-tree cliffdemo app. Change-Id: I5821b52b05f257a82d7cae317bf75ea0c8455cf2
* | Merge "sphinxext: Support cliff application"Zuul2017-11-143-41/+145
|\ \
| * | sphinxext: Support cliff applicationAkihiro Motoki2017-10-303-41/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a feature to generate a reference of global optoions of a cliff application to autoprogram-cliff directive. If a class path of a cliff application is specified as the argument of autoprogram-cliff directive, it will be interpreted as a cliff application and global options of the specified application are rendered. Change-Id: I20e46521a137ca721fae28f10c5cf75d26069e45
* | | add bandit to pep8 jobDoug Hellmann2017-11-103-2/+12
|/ / | | | | | | | | | | | | Add the bandit security scanner to the pep8 job. Change-Id: I257529cabf0c4de2107783a6758d963ddc887ed9 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | Merge "Use assertIsNone(...) instead of assertIs(None,...)"Zuul2017-10-251-2/+2
|\ \
| * | Use assertIsNone(...) instead of assertIs(None,...)lingyongxu2017-07-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following OpenStack Style Guidelines: [1] Unit test assertions tend to give better messages for more specific assertions. As a result, assertIsNone(...) is preferred over assertIs(None, ...) [1] http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises Change-Id: Ie4ee3be201f799d87c06378cd2c9a0a3c34c24df
* | | Merge "Update .gitignore"Zuul2017-10-251-1/+0
|\ \ \
| * | | Update .gitignoreKien Nguyen2017-09-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Because egg* already ignores egg-info. Change-Id: Icc4b9134fd68682d99808568beba72070496799c
* | | | Fix PEP8 in gateKien Nguyen2017-10-252-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "doc: Cleanup of demoapp doc"Jenkins2017-10-131-95/+69
|\ \ \ \
| * | | | doc: Cleanup of demoapp docStephen Finucane2017-10-101-95/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrap at a sane width and remove errant whitespace. Change-Id: I31fada44126d3a55b1045990c8bcd756093a508a
* | | | | Merge "Generate demoapp CLI refernece"Jenkins2017-10-134-10/+50
|\ \ \ \ \ | |/ / / /
| * | | | Generate demoapp CLI referneceAkihiro Motoki2017-10-104-10/+50
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | We have no way to check the cliff sphinxext work expectedly now. It would be useful if we can check the cliff sphinxext in our doc. Change-Id: If0578460dd678ffd33c20cf3707c08fa637eaf87 Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "Alias exit to cmd2's quit command to exit interactive shell"Jenkins2017-10-101-0/+3
|\ \ \ \
| * | | | Alias exit to cmd2's quit command to exit interactive shellRajath Agasthya2017-08-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `exit` is a user friendly and much more intuitive way to quit the interactive shell. It is consistent with the Python interpreter, IPython and even OSC which provides an exit command. Applications created using Cliff do not need to implement it. It has the same behavior as `quit` command as it is just another name for cmd2's `do_quit` method. Change-Id: I19ca9d2303379838e5fbd81e9d386832727ea618
* | | | | Merge "doc: Remove blank lines between term and definition"Jenkins2017-10-100-0/+0
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | doc: Remove blank lines between term and definitionStephen Finucane2017-07-201-5/+0
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Definition lists should take the following format in Sphinx: Term Definition. Inserting a space between the two results in a paragraph and block quote instead of a definition list. Correct this oversight. Change-Id: I6938c5c33257ba3c8b3a0ced9c2c5544fc209178
* | | | handle more varied top_level.txt files in distributions2.9.1Doug Hellmann2017-09-261-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deal with distributions that do not have the top_level.txt metadata file, or that have more than one module name listed in it. Change-Id: I7d21f4ba674ee95d072b0bc8e5f22b5b4b7a32b4 Closes-Bug: #1719465 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | | | Merge "Docs update for more-hooks"2.9.0Jenkins2017-09-221-4/+2
|\ \ \ \
| * | | | Docs update for more-hooksDean Troyer2017-09-161-4/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I769d5e0d5e1d3e9b1ae697b84a80d0a3ca1faa36
* | | | | Merge "show the distribution providing the command in help output"Jenkins2017-09-222-8/+62
|\ \ \ \ \
| * | | | | show the distribution providing the command in help outputDoug Hellmann2017-09-222-8/+62
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When listing all available commands, include the distribution name if it does not match the distribution of the main application. When showing the verbose help for a single command, include the distribution name if it does not match the distribution of the main application. Change-Id: I4ddb3327c62cfd0f82167c15e9513ece6a3689c4 Signed-off-by: Doug Hellmann <doug@doughellmann.com>