Commit Graph

33 Commits

Author SHA1 Message Date
Andreas Jaeger
96f5b3bbfc Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I1e72cf7084ed0b6fcd3c5df1f31b3fa6c7734d31
2017-12-02 17:07:47 +00:00
Andreas Jaeger
0e183511db Sync tools/tox_install.sh
Sync tools/tox_install.sh with python-openstackclient. This brings in
the following improvements:

* Do not leave temporary directory around, instead delete temporary
  directory directly after usage (change
  I939eae82dba3287fd4e4086128ebf4609a0e0770).
* Do not set ZUUL_BRANCH explicitely and remove unused if condition
  (change I0077c986a17d6bb92791474e03d1e77776e9382f).

Change-Id: I58e62c7b3f9340ca6df6f9f17a9ed7801b32dbf5
2016-08-30 19:55:59 +02:00
Ihar Hrachyshka
78d778cdec Constraint tox targets with upper-constraints.txt
Client version pin is maintained in upper-constraints.txt file, so we
should replace it in the file with source based specifier before
applying it to pip install, otherwise pip fails with:

Could not satisfy constraints for 'python-neutronclient': installation
from path or url cannot be constrained to a version

Change-Id: I33302cdcab980a42c39dc9ec1e430add459615ff
Closes-Bug: #1583050
2016-05-19 09:49:36 +00:00
Ming Yang
f13161b1ac Fixes indentation for bash completion script
Change-Id: Ib8bda088da0af001c8d910ecfae5f9362abe8507
2015-06-12 20:41:47 +00:00
Ming Yang
c809e068a0 Allow bash completion script to work with BSD sed
Shorthand \s isn't POSIX compliant; it works with GNU sed, but not BSD sed.
Changed \s to the literal whitespace character to fix this issue.

Change-Id: I936b372e4022a4717a64cea9a8928b6dc00c6711
Closes-Bug: #1459470
Closes-Bug: #1277492
2015-06-12 13:32:44 -07:00
Mark McClain
93ac15bfeb Rename quantumclient to neutronclient
Implements Blueprint: remove-use-of-quantum

Change-Id: Idebe92d56d277435ffd23f292984f9b8b8fdb2df
2013-07-03 11:56:44 -04:00
Carlos D. Garza
ae2a91f255 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
    to test-requirements.txt. These are standard files, and tools in the
    general world are growing intelligence about them.

    adding test-requirements.txt to quantumclient/openstack/common/setup.py per review instructions.

Change-Id: Ibf991b400bfbeb4222216649901586e01a0255b1
Fixes: bug #1179008
2013-05-28 18:22:04 -05:00
Clark Boylan
898acc30f7 Migrate to pbr.
Fixes bug 1179007

Change-Id: I6d7a6b7c85361e1568719ad11035158f4f6d9b35
2013-05-24 13:08:00 -07:00
Clark Boylan
ce11f7e859 Make flake8 deps consistent with other projects.
Make the flake8 dependencies consistent with openstack/requirements and
the other OpenStack projects.

Fixes bug 1172444.

Change-Id: I04bd814ad51cf53a3fa0026028a36de461da45d4
2013-05-11 12:13:13 -07:00
Maru Newby
3c193c9387 Enable automatic validation of many HACKING rules.
* Add hacking to the tox build - a set of flake8 plugins that
   perform automatic validation of many HACKING.rst rules.
 * This patch configures hacking in the tox build and performs
   the mechanical cleanup required to allow the checks to pass.
 * See https://pypi.python.org/pypi/hacking

Change-Id: Ib41313b5aae991e6ffef2a89dd69e83985bdc36d
2013-04-08 23:10:35 +00:00
He Jie Xu
e901c5fe80 Add custom TableFormater for keep same empty list behavior as prettytable 0.6
Fix bug 1165962

And upgrade cliff to 1.3.2, because cliff 1.3.1 depends on prettytable<0.7

Change-Id: I6b38a2d77f6b9bf88d6d64f6c02b98b6c21fda3a
2013-04-08 17:14:49 +08:00
Maru Newby
d41d223e46 Switch to flake8 from pep8.
* flake8 supports more checks than pep8 (e.g. detection of
   unused imports and variables), and has an extension mechanism.
   A plugin to support automatic HACKING validation is planned.
 * See: http://flake8.readthedocs.org/

Change-Id: I1cba551fadf87f3dbc40a002736c1009e7b9d5b5
2013-04-05 17:27:04 +00:00
Chris Krelle
714ade07ac Update tools/pip-requires for prettytable
changes pip-requires from:
    prettytable>=0.6,<0.7
to:
    prettytable>=0.6,<0.8

Change-Id: Ia4e7460525e73474c90cd0c50d3d1243f64f68eb
Authored-by: Chris Krelle <nobodycam@gmail.com>
2013-03-22 12:59:06 -07:00
Gary Kotton
94a60cfe5b Update cliff dependency (1.3.1)
Fixed bug 1134163

Change-Id: I2bae8dee2f95f5372bb1b513a40da31fdd7962b2
2013-02-27 13:54:22 +00:00
Brian Waldon
448c8ff6b3 Match other python-*client prettytable dependency
The other openstack clients use prettytable>=0.6,<0.7. For several
reasons (primarily a lack of support in pip), we will match that here.

Change-Id: Id4fb08ae48a65666014c96a22baefe46a771b002
2013-02-18 20:10:55 -08:00
gongysh
5117731a6d Support XML request format
blueprint quantum-client-xml

Change-Id: I9db8ea7c395909def00d6f25c9c1a98c07fdde68
2013-02-06 18:56:10 +08:00
Monty Taylor
fe4b3498b9 Migrate from nose to testr
Part of blueprint grizzly-testtools

Change-Id: Ia53b0987b1e890a96b190f4b1a47dde4bf84fb6f
2013-02-03 10:54:52 +11:00
Monty Taylor
80fe2540e7 Migrate from unittest to testtools
Part of blueprint grizzly-testtools

Change-Id: If92ba40209cb45905220df8c72501f33cdc4e1fc
2013-01-14 03:55:51 -08:00
Ben Andrews
5d0ee641f2 bug 1091028
sets version that pip can use for pyparser to one that is for python 2.X.  2.0.0 is only for python 3

Change-Id: I8e23e576032290a71ba929af5f5c729ae3dffca6
Fixes: bug #1091028
2012-12-16 20:39:18 -05:00
Akihiro MOTOKI
2ba519d142 Fix a wrong substition for '-h' in bash completion
Fixes bug #1087806

Change-Id: Id39cac821922ca6adea296335f2395fabb011754
2012-12-11 01:17:31 +09:00
gongysh
c8e7ed26be Generate bash_completion string so that we can use bash completion.
Bug #1063500

To install, copy tools/quantum.bash_completion to
/etc/bash_completion.d/quantum

Change-Id: I0afff3967c63111854455226fc90092f5bc7845a
2012-10-08 18:48:26 +08:00
yong sheng gong
62f508939e *-list command shows only limited fields normally.
Bug #1036051

We add list_columns in list commands to limit the output columns.
The behaviour is overriden if we use -c in command.

Change-Id: I0fa6c73cd7270d86aff01d3790d59c8d4e8a235a
2012-09-01 11:47:22 +08:00
Clark Boylan
7a57be1d27 Add nosehtmloutput as a test dependency.
Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.

Change-Id: I378954997a5d893ac1156c2ae254532c617f78c7
2012-08-21 14:39:13 -07:00
Dan Wendlandt
466e704bfe add pyparsing to pip-requires
bug 1035953

Change-Id: Ie18fa78f242920e1acfdf1af15232591908c8de8
2012-08-12 13:39:22 -07:00
Yong Sheng Gong
7f3e6eeb7a Remove quantum client codes for API v1.0
Bug #1021546

Change-Id: Ic628db01034bc6dfb5fad3d6a2905e243900229a
2012-07-13 07:27:43 +08:00
Yong Sheng Gong
dd803f8e26 add keystone support, new command interface, API v2.0
blueprint new-cli
Bug #1001053

Implement new commands interface, ready for v2.0. adopt cliff arch. new
client binary is quantumv2. After it is stable, we will remove quantum
binary. Httplibs2 is used.

usage: https://docs.google.com/document/d/1e_4UtnhFfgtnsB8EVB31BZKldaVzl_BlsGnGBrKmcDk/edit

Patch 2: add license header
Patch 3: add v1.0 support, fix show net details
Patch 4: quantumclient network api v2.0
Patch 5: subnet and port commands for api v2.0, add fields selector
Patch 6: add test cases
Patch 7: fix interactive mode, modify according to comments and https://review.openstack.org/#/c/8366/, add two tasks to BP: noauth and openstack common
Patch 8: fix log problem
Patch 9: modify according to the comments by dan on patch 5
Patch 10: just trigger jenkins
Patch 11: pep 1.3 fix
Patch 12: cliff and prettytable to more than 0.6.0
Patch 13: change setup.py to include more packages
Patch 14: pep check on jenkins
Patch 15: add license text to empty __init__.py files
Patch 16: fix v1.1 test cases after server changes

Change-Id: Ibbbdd834371c6a023b31e4797718fc0fe9786d89
2012-06-21 00:17:39 +08:00
Monty Taylor
f7086ed40a Add initial docs.
Change-Id: I846eec12e800c15a545946604fe77a0a6b83fb46
2012-06-14 18:04:52 -04:00
Monty Taylor
878c939e2c Align tox with standards.
Moved openstack nose invocation to tox.ini from setup.cfg, as there
is no way to turn it off if it's in setup.cfg, and when we're running
in jenkins, we want to run via xunit and not via openstack color output.

Change-Id: I0a7b6232834b5cdfc97be9c2f93f726d6b47e0ac
2012-05-16 14:00:20 -04:00
Maru Newby
05c5a2b4a9 Remove server-specific functionality.
* Moved server-specific functionality found in quantum.common to
   the quantum repo.
 * Renamed primary package from quantum -> quantumclient.
 * Addresses bug 977711 and bug 921933

Change-Id: If34553924c8dfcc6b148c1d91f173a4b81eeb95a
2012-04-24 14:14:52 -07:00
Salvatore Orlando
880cde716e Bug 921930
remove depedency on webob from python-quantumclient

Rebased and repushed after review expired

Change-Id: I7dc3840018f3496116d30c2684bc44f64fa2752b
2012-02-21 00:05:45 +00:00
Monty Taylor
52662fbb50 Additional small release needs
Change the pypi name to match the expected name.
Update versions in pip-requires to match other projects.
Add coverage support to tox.

Change-Id: Id02b039dc8c89bfdae1acc5adea06757cd326bb8
2012-01-24 19:15:28 -08:00
Dan Wendlandt
e83eee7b11 Initial cut at removing unneeded dependencies.
Removed deps left-over from quantum-server
Also Added 501 exceptions to client package.

Change-Id: I4aa45090ce211d29ae97d398572817a68f690122
2012-01-24 18:29:49 -08:00
Monty Taylor
5082b6181d Split quantumclient out. 2012-01-18 09:39:25 +11:00