summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update UPPER_CONSTRAINTS_FILE for stable/rockystable/rockyOpenStack Release Bot2019-05-041-1/+1
| | | | | | | | | | | | | | | | | | The new stable upper-constraints file is only available after the openstack/requirements repository is branched. This will happen around the RC1 timeframe. Recheck and merge this change once the requirements repository has been branched. The CI system will work with this patch before the requirements repository is branched because zuul configues the job to run with a local copy of the file and defaults to the master branch. However, accepting the patch will break the test configuration on developers' local systems, so please wait until after the requirements repository is branched to merge the patch. Change-Id: I71bfd18ecd846f1df347cb063747ec320afb8ab2
* Cap flake8 versionPavlo Shchelokovskyy2019-04-251-1/+1
| | | | | | | | | | flake8 is generally not capped in upper constraints, and somewhere since 3.6.x it started to report a spurious error in cliff/app.py:409. Cap flake8 to <3.6 to unblock the pep8 CI. Change-Id: I0b12103e581a5c95f69da2cebf3310101150bd3b
* OpenDev Migration PatchOpenDev 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.
* 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: I410aaf9cdbefc4c4e8fce3d3adb60f093f17399b Story: #2002586 Task: #24320
* Update .gitreview for stable/rockyOpenStack Release Bot2018-07-261-0/+1
| | | | Change-Id: I45821a012ad9cde49c020541d9d63376e07b62c9
* Merge "Assure executable name is kept when app is called as module"rocky-em2.13.0Zuul2018-06-292-1/+10
|\
| * Assure executable name is kept when app is called as moduleSorin Sbarnea2018-06-282-1/+10
| | | | | | | | | | | | | | | | | | - Detects module name if needed - Updates demoapp Change-Id: Ie0cd9d507fcb4c32ab98e51f61741d529ff41cac Closes-Bug: 1779218 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* | Merge "Build universal wheels"Zuul2018-06-291-0/+2
|\ \ | |/ |/|
| * Build universal wheelsNicola Soranzo2018-06-121-0/+2
| | | | | | | | | | | | | | See https://packaging.python.org/guides/distributing-packages-using-setuptools/#universal-wheels Closes-Bug: #1760157 Change-Id: I8c95ff5969e47189269ef44e021a3bb8ac32bb16
* | Merge "support cmd2 0.9.1 in interactive mode"2.12.1Zuul2018-06-201-5/+27
|\ \ | |/ |/|
| * support cmd2 0.9.1 in interactive modeDoug Hellmann2018-05-311-5/+27
| | | | | | | | | | | | | | | | | | | | | | cmd2 0.9.0 and later use a different type of parser and offers no backwards-compatibility. This change updates cliff to deal with the older and newer versions of cmd2 so we can continue to support python 2 for now. Change-Id: Id7a0395ada517f97834fc6fdd39fcc09077304c1 Fixes-Bug: #1774418 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | fix tox python3 overridesDoug Hellmann2018-06-061-0/+3
|/ | | | | | | | | | | | | | | We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I6b107fce3daa8292b5fe6b5730a03008bf8987f0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* update cmd2 dependency to handle py3 only versions2.12.0Matthew Thode2018-05-291-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. Change-Id: I3d527ba30205c9f3b3b2e89f795ee5611422c013
* Merge "exclude cmd2 0.8.3 and update to 0.8.4"Zuul2018-05-041-1/+1
|\
| * exclude cmd2 0.8.3 and update to 0.8.4Doug Hellmann2018-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | Release 0.8.3 of cmd2 failed to properly specify a new dependency so installing it breaks interactive mode for OSC and other cliff-based apps. 0.8.4 fixes the issue. Change-Id: I8bbd749e3328596fd333bd7f58391b9d688c00cf Depends-On: https://review.openstack.org/560120 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | Remove travis.ymlStephen Finucane2018-05-031-8/+0
|/ | | | | | | It's been a long time since we used Travis for testing. Change-Id: I3b352d40f8186a6ae60a07ce1d14c349516381e2 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* add lower-constraints jobDoug Hellmann2018-04-094-1/+47
| | | | | | | | | | | | | | | | | | | Create a tox environment for running the unit tests against the lower bounds of the dependencies. Create a lower-constraints.txt to be used to enforce the lower bounds in those tests. Add openstack-tox-lower-constraints job to the zuul configuration. Update the lower bound for PrettyTable so the unit tests pass. See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html for more details. Change-Id: Ia146248b505e66adf871d17ae1e4921d7888bb85 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Merge "Updated from global requirements"Zuul2018-03-263-4/+4
|\
| * Updated from global requirementsOpenStack Proposal Bot2018-03-153-4/+4
| | | | | | | | Change-Id: Ic10fe257544d9c0114a466be11588570377e2049
* | Merge "Remove the warning of getargspec removal"Zuul2018-03-264-6/+14
|\ \
| * | Remove the warning of getargspec removalHongbin Lu2018-03-144-6/+14
| |/ | | | | | | | | | | | | | | | | | | | | The method getargspec is deprecated and will be removed [1]. This produces a lot of deprecation warning in the logs which is noisy. This patch proposes to use getfullargspec if it is available. For python 2 compatibility, we need to fall back to getargspec. [1] https://docs.python.org/3/library/inspect.html#inspect.getargspec Change-Id: Ide7d9ca99e0edf23261b5d47f35766aaaac9059b
* | fix typos in documentationmelissaml2018-03-231-2/+2
|/ | | | Change-Id: I86b08037d04f622770347c2b4d64ce62694e1f8a
* Merge "Fix cmd2 doc URL"Zuul2018-03-101-1/+1
|\
| * Fix cmd2 doc URLMasayuki Igawa2018-02-261-1/+1
| | | | | | | | | | | | | | This commit fixes the cmd2 doc URL. The original URL doesn't work with 404 error now. Change-Id: Id249a67a705f66162ccfdf7dc65dd2bcec2a2a7b
* | Align parsed() call with cmd2 versions >= 0.7.3Corey Bryant2018-03-061-1/+7
|/ | | | | | | | In version 0.7.3, cmd2 moved the parsed method from class Cmd() to class ParserManager(). Change-Id: Ie0c057ffaeaa05c4f5e0f3599aab850245c55066 Closes-Bug: #1751822
* Merge "sphinxext: Warn if namespace or command pattern invalid"Zuul2018-02-091-0/+9
|\
| * sphinxext: Warn if namespace or command pattern invalidStephen Finucane2018-01-291-0/+9
| | | | | | | | | | | | | | | | | | | | Calling the Sphinx extension with an invalid namespace or command pattern currently results in a silent failure. Correct this oversight by raising a warning, which will cause a build failure is 'warning-is-error' is enabled. Change-Id: I63d18c86931d752c3a680e84a69df53bc04e7dfd Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | Merge "Updated from global requirements"Zuul2018-02-072-3/+3
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2018-01-272-3/+3
| | | | | | | | | | | | Change-Id: I7cef56bc16ffda5c01f862482686f31695bd088d
* | | Zuul: Remove project nameJames E. Blair2018-01-281-1/+0
|/ / | | | | | | | | | | | | Zuul no longer requires the project-name for in-repo configuration. Omitting it makes forking or renaming projects easier. Change-Id: If1d8a32554fd6c8662adf0d83e7576cd9a3879b1
* | 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>