30 Commits

Author SHA1 Message Date
Andreas Jaeger
e80a25ac6c 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: I30b48b58d368c2d79d3407735d2a082b3b46d2fb
2017-12-02 16:56:16 +00:00
Doug Hellmann
c6705f4e0b use setuptools to build the docs even for testing
We need to use the setuptools/pbr integration to kick off the doc build
to ensure that pbr is triggered to generate the API documentation.

Change-Id: I6d947a08f170c3379f8e7b9879077e60356b5505
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-10 11:50:21 -04:00
Stephen Finucane
3963fc7ccd tox: Whitelist rm
Change-Id: I29e5ac6bd0aa02d0bca5b0d58e738c72626a5baa
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2017-04-20 13:57:40 +01:00
ricolin
cebe77fdb0 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I11191b14edd3870b5a4443a2ef9b219cb46ddb36
2017-03-02 23:36:32 +08:00
Cao Xuan Hoang
0803befc05 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: I8950bf3a7fe6c97bf973658e409e39953470f40d
2017-01-20 11:21:23 +07:00
Tony Breeds
08c5a645ed Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove python-designateclient.

Change-Id: I2976e5615bd46449690072b09aeaad59c1674d44
2016-12-21 12:53:41 +11:00
Kiall Mac Innes
0329997677 Add reno support for release notes
Setup Reno for generating release notes for Designate Client

Change-Id: I37c3a2678095c50760bdfb197acf04b77e38686d
2016-05-16 22:02:55 +00:00
Rahman Syed
d4a5555e52 Improve python-designateclient docs
* Improve index page to explain the difference between v1 and v2
  CLI support.
* Add a v2 examples page
* Add all supported commands to v2 shell page
* Add a tox task to build the docs
* Fix a bug building the docs with an invalid html_static_path
  config

Change-Id: Ie1e65c2d0cc8ad1b8b258e03114e19a943d1d19c
Closes-Bug: 1572217
2016-04-20 11:57:57 -05:00
Paul Glass
040ff35eea Run the functional tests in a more verbose mode
Previously, the cli functional tests would not display each test case
as they ran. This fixes that, similar to how the api functional tests
do this.

Change-Id: I899bafa4923dc9c80cad35cdb1f86cbf2e93038d
2016-04-07 15:11:27 +00:00
Janonymous
90a01cb2c5 Put py34 first in the env order of tox
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.

Change-Id: If022a76b2ee9a290033abc544c5fa56f1ea1e0ae
Closes-bug: #1489059
2015-12-22 18:27:36 +05:30
Ondřej Nový
7ce74b193c Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I1d4edcdaba562d3c86aa58d2f4c84c455b655ebd
2015-12-11 23:22:41 +01:00
sonu.kumar
729301a224 Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fixes this problem.

Change-Id: I9bc55bd2ebb546c783df38751c2cb16dbffcb7a5
Closes-Bug: #1465086
2015-12-04 10:52:45 +05:30
sonu.kumar
7d5c1ecff8 Clearing out .pyc file before a tox run
Change-Id: I8d6ff9c2d29f0a3429d3e7bdffd4bd97f8024b3c
2015-11-18 14:32:54 +05:30
Paul Glass
6daf82777e Layout some functional tests for the V2 CLI
Change-Id: Ib2d1261bcb0362c586c0aae4b9c5a8a563f07c71
2015-09-23 14:30:35 +00:00
Kiall Mac Innes
2060809272 Sync tox.ini and add py34
Change-Id: Ic72211290b8a8a0489c35293645f590b209ecca5
2015-05-29 13:13:49 +01:00
Christian Berendt
e9adf2a88f Enable hacking check H104
* [H104] Files with no code shouldn’t contain any license
         header nor comments, and must be left completely empty.

Change-Id: Ic02858615833b516fd2c68a859146c8e018ae8e1
2014-07-16 19:25:04 +02:00
Christian Berendt
8af71e9bde Enabled hacking check H401
* [H401] Docstrings should not start with a space.

Change-Id: I1fa248590c7e05ab92b30ae30af1cf107cdd3cc4
2014-07-10 21:55:14 +02:00
Jordan Cazamias
9d4544fd51 Update hacking package, fix/ignore new style errors
Change-Id: I49d26c3a9772c409b038b06e8256fb5823169c50
Implements: blueprint update-hacking
2014-07-01 17:14:26 -05:00
Dirk Mueller
109ea08546 Fix and enable gating on H306
H306, module imports should be in alphabetical order
This hacking check actually improves readability quite
a bit, as module imports can be sorted in groups (python stdlibs,
external imports, in-module imports)

Change-Id: I11dc9155fbfc84389f2a5956f393f705388f83ba
2013-12-16 15:41:51 +01:00
Kiall Mac Innes
76a37fa37c Ensure beta versions are not downloaded from pypi
Change-Id: I636040826af81b6df4c8631e65876316fa10c081
2013-09-18 17:16:33 +01:00
Kiall Mac Innes
dbd8617122 Add Hacking checks
Change-Id: I5435e83a8dbe3c3273b59ecb3c5f1be26c9bec96
2013-06-09 15:06:11 +01:00
Kiall Mac Innes
72bc53b67c Migrate to PBR
Change-Id: I4f32b7c3ca7831becdd49f75a7fa48bfcfa7fe76
2013-05-25 13:26:24 +01:00
Endre Karlson
d038db8a50 Switch to flake8 and testr
Change-Id: Ia25ef86786895f376be410f74b9a30e3e8ff4243
2013-05-24 12:44:02 +02:00
Kiall Mac Innes
af9ea73030 Have tox.ini actually run nosetests
Change-Id: I3c93a6614ff71bfe2405257e2684fbc0fa05e76c
2013-03-04 12:50:37 +00:00
Kiall Mac Innes
7cc1c85602 Include setup-requires in tox.ini
Change-Id: Ie5e7b7b12e8ddcf82e41f747c25de84f4ccc4743
2012-12-11 06:10:37 -08:00
Kiall Mac Innes
0faa442fb3 Sync tox.ini with moniker repo
Change-Id: I11e972f82648052d48b305685b406af5671844a6
2012-11-18 03:14:48 +00:00
Kiall Mac Innes
d7976fdb7c Add PyFlakes tox env
Change-Id: I91af105b2b8427b71257c492f2b2830c5602aee2
2012-11-18 03:02:18 +00:00
Kiall Mac Innes
9fef6dee41 Cache pip downloads on Jenkins
Change-Id: Ic144b83423034adcc75bbc360527e2e1f3cbdd95
2012-11-01 03:20:47 +00:00
Kiall Mac Innes
21c4b1ddfe Fixup tox.ini for Stackforge+Gerrit
Change-Id: Ib2b07140c4dc6891b60f878880c165bb0758819f
2012-11-01 03:18:25 +00:00
Kiall Mac Innes
7c64019e45 Initial Commit - CLI Skeleton 2012-10-26 18:07:51 +01:00