Commit Graph

506 Commits

Author SHA1 Message Date
OpenDev Sysadmins 4106ee04df OpenDev Migration Patch
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.
2019-04-19 19:33:59 +00:00
OpenStack Proposal Bot ff4a72ccb5 Updated from global requirements
Change-Id: I9a4bb3313dc7f849a15afcf9e8e2748bb6c79c15
2017-05-15 23:29:31 +00:00
OpenStack Proposal Bot ecf36503f2 Updated from global requirements
Change-Id: I506def39637f0ebfed38d859d9dee7bfdbce105f
2017-04-03 17:29:34 +00:00
OpenStack Proposal Bot b79f34bf06 Updated from global requirements
Change-Id: I0f10cfbdeba3a932f95b5ad8984cf718853dd27f
2017-03-22 17:57:35 +00:00
Dean Troyer e6521d1b0f Multiple things to unwedge stable/ocata
* Fix broken test with cmd2 0.7.0

Co-author: todd.leonhardt@gmail.com
Closes-Bug: #1672108
(cherry picked from I4bb02749a8fafccaff4ef7ce94ff0c4910fb67e6)

* Update cmd2 fix to still work with 0.6.7

I4bb02749a8fafccaff4ef7ce94ff0c4910fb67e6 fixed cmd2 0.7.0 but
broke <=0.7.0.  Detect if Cmd.do_hi() is present to decide what
the response should be to support both cases

This can be reverted some time after cmd2 0.7.0 is in cliff's
requirements.txt as the minimum version.

(cherry picked from I3d42aa68303bed1c302e72d1eab861d355646bc7)

* Global requirements update

Update pbr requirements
Update setuptools requirements to deal with the appdirs failures

(cherry picked from Ia3833a9631e00911beecf76c965b1123d6230aed)

Depends-On: Ia95bbb7e4dd3503bf87559a118c0b197151fde16
Change-Id: I4bb02749a8fafccaff4ef7ce94ff0c4910fb67e6
2017-03-22 04:50:14 +00:00
Jenkins 21473d181b Merge "Update .gitreview for stable/ocata" into stable/ocata 2017-02-10 22:22:37 +00:00
OpenStack Proposal Bot 5168157882 Updated from global requirements
Change-Id: Id8db3f856a2b4b2744a37789315dc662649ab772
2017-02-09 18:13:13 +00:00
OpenStack Release Bot 2ba4f70d84 Update .gitreview for stable/ocata
Change-Id: I50df439032127441cf7ac79c041f341262b2a1f2
2017-01-31 20:53:35 +00:00
Jenkins 1dd3edafab Merge "Remove tox environments that no longer work" 2017-01-04 23:29:13 +00:00
Tony Breeds f55c13c2fe Remove tox environments that no longer work
Remove neutronclient-stable and openstackclient-stable which are designed to
run the latest cliff code/change under review against those 2 libraries to
reduce the chances of regressions.  At some point in the past they ceased
to function as expected and rather then correct them remove them as they're
not used in the gate anyway.

Change-Id: I8fa88134c730ed55afc40c6513f135912cbed5e6
2017-01-04 08:54:20 +11:00
Jenkins 20319083f2 Merge "Fix command order" 2017-01-03 19:00:05 +00:00
Eyal Posener f55e785448 Fix command order
When there are two commands: one 'foo', that expects a positional
argument, and a second command 'foo bar'.
Trying to enter the command 'foo bar' will invoke the command
'foo' with position argument 'bar', and not the second command
'foo bar'.
This is due to the fact that the find command method first
checks for the first word as a command.
By trying first to match all arguments this problem is solved.

Closes-Bug: #1618673
Change-Id: I24ea39813ad30ec095ea18baad3a7b088fa8108f
2017-01-03 16:47:12 +02:00
Jenkins 3456aa7fbf Merge "Fix a typo in comment" 2017-01-02 21:31:48 +00:00
Jenkins dd89887993 Merge "[doc]Fix URL for 'setuptools entry points'" 2017-01-02 21:30:15 +00:00
Jenkins fd332e2b20 Merge "Add print_empty parameter" 2016-12-07 13:51:38 +00:00
Flavio Percoco 25a4589d36 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/f4a7414b5a764600f25f7c75cec24919

Change-Id: If1b8c1472323dd08d5b3eff0335b7a32a42e2a18
2016-11-26 12:04:54 +01:00
Ruslan Aliev 0d5ffe34ea Add print_empty parameter
TableFormatter doesn't allow to print empty table anyway.
To allow this feature was added optional parameter --print-empty.
By default, it's set to False and in this case if there is no data
to show then emit_list() will print nothing. Otherwise, empty table
will be printed. Appropriate unit test was added.
This solution doesn't affect existing approaches to use cliff.

Change-Id: I0e69f1cbcdd5b1280ea9d4d1523df29381cc349d
Closes-Bug: #1642263
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2016-11-21 21:08:24 +03:00
Jenkins 4c367b433b Merge "Add Python 3.5 classifier and venv" 2016-11-15 22:23:34 +00:00
Jenkins 0608b63de8 Merge "Changed the home-page link" 2016-11-15 22:23:29 +00:00
Jenkins 92081d6659 Merge "Fix spelling mistake" 2016-11-15 22:23:23 +00:00
Jenkins 9a8de2a68a Merge "Show entire command in error message" 2016-11-15 22:21:45 +00:00
Jenkins 417075bee4 Merge "Replace dashes and colons when using bash formatter" 2016-11-15 22:14:21 +00:00
Doug Hellmann a2b3a8eea7 ignore Command docstring when looking for descriptions
The base class docstring has no useful information for real command
descriptions, so ignore it and return an empty string instead.

Change-Id: I61ccf0cf2e2840e927ca129de321320c0a27c031
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-11-14 14:15:12 -05:00
Doug Hellmann 18f49bfd88 let the Command get its one-liner description from a class attribute
Add a class attribute to the search path for the one line description of
a command so implementations of commands can use translatable strings.

Change-Id: Id915f6aa7d95a0ff3dc6e2ceaac5decb3f3bf0da
Related-Bug: #1636209
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-11-14 12:54:48 -05:00
Doug Hellmann 133b37604e flake8 fix
Change-Id: I80464a9056b0728a125aaa1a9f117a3779888310
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-11-14 12:44:44 -05:00
Steve Martinelli a89dbbb2fe Replace dashes and colons when using bash formatter
When a resource property has dashes and colons and
the bash formatter is used, it actually breaks with
`command not found`.

For example, when doing:
  eval `osc network show public --format shell`

The network resource has a property:
  provider:network_type="vxlan"

Which results in:
  "bash: provider:network_type=vxlan: command not found"

Change-Id: I57ca08c9dfd7ef022ab91d50ec42a98a6df08b09
Closes-Bug: #1616323
2016-11-09 19:45:13 +00:00
Jaspreet Singh Rawel 6205b24fc8 Show entire command in error message
Currently only the first argument is shown in the error message.
In case of a multiword command, only first part is shown.
e.g When "openstack security grou list" command is run,
"security" subcommand is shown as invalid. This conveys a
wrong message to the user.

Closes-Bug: 1640031

Change-Id: I748ce46835638916279edead894e3f32c12abd51
2016-11-09 20:23:40 +05:30
OpenStack Proposal Bot 2a3a8c081f Updated from global requirements
Change-Id: I3816eb47bec76567f3884724bcc8231eef801253
2016-11-09 04:14:37 +00:00
OpenStack Proposal Bot ebf658d220 Updated from global requirements
Change-Id: Ife70d010cd8dad1866196bf19e3752f1aeed296d
2016-11-02 03:32:51 +00:00
dineshbhor eef2471138 Fix spelling mistake
TrivialFix

Change-Id: I62800123e729b8e5c86a15461377afc182fecb06
2016-10-26 19:40:47 +05:30
Tony Xu 337610d156 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.

Change-Id: Ia67e5efb2deb62942914b31d04f217308d0be304
2016-10-25 22:58:26 +08:00
OpenStack Proposal Bot 18d8ddd94e Updated from global requirements
Change-Id: I3a9addbcff52142878b50049f748f8d07ac7cfc7
2016-10-22 01:18:07 +00:00
melissaml ab2ea5aee4 Changed the home-page link
Set the correct link for home-page.

Change-Id: I1af0a819e3015ff00a4048ee783c735a417dbef4
2016-10-17 00:39:12 +08:00
Cao Xuan Hoang 58fcab52f2 Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.

[1] http://docs.openstack.org/developer/hacking/#openstack-licensing

Change-Id: I0efe587768fa1b8f1b6fc64ecfb56a2e57ebd9a9
2016-10-10 13:43:09 +07:00
OpenStack Proposal Bot d693201610 Updated from global requirements
Change-Id: I792ccfe1dac29f39ae1f882f674b4eb3c5dedd27
2016-10-06 16:54:10 +00:00
OpenStack Proposal Bot 2a44ae061e Updated from global requirements
Change-Id: I9fd16cf1b32c020ec58a498bb853011f18c65f10
2016-09-30 19:57:44 +00:00
OpenStack Proposal Bot f9f763c5ac Updated from global requirements
Change-Id: I753d09bbf6953e6ce19dbceb128cc617c5da7c7d
2016-09-28 16:51:53 +00:00
OpenStack Proposal Bot 96569453f3 Updated from global requirements
Change-Id: I2216dba733d037ca17c9005633e3b79ca7a11b9f
2016-09-27 09:58:43 +00:00
Cao Xuan Hoang 0b1fc95247 Clean imports in code
This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: Ief01c4915b385b3135ec000f949755ab0d4883dd
2016-09-20 13:33:04 +07:00
Atsushi SAKAI 64a3e0e7d5 [doc]Fix URL for 'setuptools entry points'
Following URL is not existed.
  https://pythonhosted.org/setuptools/pkg_resources.html#entry-points
Update URL by following page
  (it comments "Documentation moved to read the docs.")
  https://pythonhosted.org/setuptools/

Change-Id: I04cd99740ec75dc6982760811bac411c243722c8
2016-09-07 21:41:54 +09:00
Pierre-André MOREY 9d4429a85a Fix a typo in comment
Change-Id: If9eeadfc9c393542eaf97e4c3ec7c34f7559c4ca
2016-08-26 13:39:25 +02:00
John Dennis 50d67088ea Avoid ASCII encoding errors when output is redirected
Unicode must be encoded/decoded for text I/O streams, the
correct encoding for the stream must be selected and it must
be capable of handling the set of characters in the stream
or Python will raise a codec error. The correct codec is
selected based on the locale. Python2 uses the locales
encoding but only when the I/O stream is attached to a
terminal (TTY) otherwise it uses the default ASCII
encoding. The effect is internationalized text written to
the terminal works as expected but if command line output is
redirected (file or pipe) the ASCII codec is used and the
program aborts with a codec error.

The default I/O streams stdin, stdout and stderr can be
wrapped in a codec based on the locale thus assuring the
users desired encoding is always used no matter the I/O
destination. Python3 does this by default.

If the caller supplies an I/O stream we use it unmodified on
the assumption the caller has taken all responsibility for
the stream.  But with Python2 if the caller allows us to
default the I/O streams to sys.stdin, sys.stdout and
sys.stderr we apply the locales encoding just as Python3
would do. We also check to make sure the main Python program
has not already already wrapped sys.stdin, sys.stdout and
sys.stderr as this is a common recommendation.

Note, the unit test enhancement included in this patch is limited to
assuring the I/O streams passed to the App constructor are wrapped or
not wrapped as expected. No attempt is made to assure codec errors
will not occur in a terminal because of the difficulty of constructing
such a test. Properly testing this probably would require spawing a
subshell but one can't use Python's subcommand because the I/O streams
are not attached to a TTY. One could set up a ptty (pseudo-terminal)
but experience has shown ptty's to be non-portable across operating
systems and environments, getting a ptty to work correctly in all
testing environments would be more work and hassle than is justified.

Change-Id: I8e85936dff0d5db29a66337c9ce60c70a8dee10a
Closes-Bug: 1603210
Signed-off-by: John Dennis <jdennis@redhat.com>
2016-08-05 18:24:49 +00:00
Jenkins 9f42088539 Merge "Remove announce.rst" 2016-08-05 15:33:28 +00:00
Jenkins 675b8d84f1 Merge "Fix cliff URLs in doc and demoapp" 2016-08-05 15:33:22 +00:00
Masayuki Igawa f7c9713c53 Fix cliff URLs in doc and demoapp
This commit fixes cliff URLs in the documents and demoapp.

Change-Id: I5a190841d1126119eddacedd02667efd52709330
2016-07-28 16:08:47 +09:00
Masayuki Igawa 820d6dbd9b Remove announce.rst
This commit removes outdated announce.rst. We already have the latest
documents such as README.rst, index.rst, history.rst, etc.

Change-Id: Ibda5fb3f0a1b5bc419ee8f788d9c42e65adfb0f7
2016-07-28 15:10:41 +09:00
Masayuki Igawa 99cf6a5f0e Fix Command class doc typo
This commit fixes a Command class doc typo.

Change-Id: Ieaf3978e588e40f8e55580d99b6dcfd36910a243
2016-07-25 15:13:07 +09:00
Jenkins 50af230c7c Merge "add formattable columns concept" 2016-07-21 16:42:55 +00:00
OpenStack Proposal Bot 0ffb036037 Updated from global requirements
Change-Id: I41cd6d284b3450127ec2c1b7606b056cfd56e281
2016-07-17 23:52:03 +00:00
Jenkins 5fcd470fd4 Merge "command: make run() return take_action() value" 2016-07-14 14:06:43 +00:00