84 Commits

Author SHA1 Message Date
Chuck Short
89fbae42ac Switch to using stestr
According to Openstack summit session [1] stestr is maintained project
to which all Openstack projects should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ibb1e23aceeb9a864306c52b410bda77736454ef0
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-06-27 14:50:06 -04:00
ghanshyam
19c9f0594d Gate fix: Cap hacking to avoid gate failure
hacking is not capped in g-r and it is in
blacklist for requirement as hacking new version
can break the gate jobs.

Hacking can break gate jobs because of various
reasons:
- There might be new rule addition in hacking
- Some rules becomes default from non-default
- Updates in pycodestyle etc

That was the main reason it was not added in g-r
auto sync also. Most of the project maintained the
compatible and cap the hacking version in
test-requirements.txt and update to new version when
project is ready. Bumping new version might need code
fix also on project side depends on what new in that
version.

If project does not have cap the hacking version then,
there is possibility of gate failure whenever new hacking
version is released by QA team.

Example of such failure in recent release of hacking 1.1.0
- http://lists.openstack.org/pipermail/openstack-dev/2018-May/130282.html

Change-Id: I2cdc79ed0cd302990a0434c477d6f3ec2c05fb8b
2018-05-09 02:45:52 +00:00
Doug Hellmann
01468cba3b fix lower constraints and uncap eventlet
Fix the lower constraints settings to match the expected values.

We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: If7314a88a57bdd8db9bfa090e5e46c09c37a5087
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-17 13:10:43 +09:00
OpenStack Proposal Bot
bf6411340c Updated from global requirements
Change-Id: I3bfc66124aa51295509e13dfc4aa9597d26cfcec
2018-03-15 07:00:46 +00:00
OpenStack Proposal Bot
307acb2327 Updated from global requirements
Change-Id: I8bc6d790ba81fb878c7da49abf924f09f2c9f371
2018-03-13 06:55:02 +00:00
OpenStack Proposal Bot
8c17876082 Updated from global requirements
Change-Id: I7de1040be18ce7db8cb5eb97f81e01192b066c77
2018-03-10 13:15:27 +00:00
OpenStack Proposal Bot
8f4e89facd Updated from global requirements
Change-Id: I2f80411eb93d768c4e1eac400a1f9f38cca2eb0b
2018-01-24 00:55:53 +00:00
OpenStack Proposal Bot
c67ca2c726 Updated from global requirements
Change-Id: I049f8bb1188a4ef35600e3313586ce4c7fbfc3da
2018-01-17 20:35:38 +00:00
OpenStack Proposal Bot
ef1596988a Updated from global requirements
Change-Id: I0e2bec99b0d5a151a560adc7d6dca05011f859d2
2018-01-16 12:29:38 +00:00
John L. Villalovos
5d1d7c4cc7 Update version of flake8-import-order package
Use latest version of flake8-import-order package, like we do in
openstack/ironic

Fix two issues detected by new version.

Change-Id: I3d2f5499f3a863167419469d313e06be79f51841
2017-12-08 14:13:32 -08:00
OpenStack Proposal Bot
02aac8094b Updated from global requirements
Change-Id: I68501966aae807c500a698190cf38814b5adbd0a
2017-11-16 11:05:48 +00:00
OpenStack Proposal Bot
7fe023de21 Updated from global requirements
Change-Id: I417926a728618e77a8abe33938101032c9c0af30
2017-09-16 23:13:03 +00:00
OpenStack Proposal Bot
fda26ac644 Updated from global requirements
Change-Id: I23f6078bd717878464907c532a9cb058f13d62ec
2017-09-13 12:51:24 +00:00
John L. Villalovos
c693d5d04f flake8: Enable some off-by-default checks
Enable the following off-by-default checks:
    * [H106] Don't put vim configuration in source files.
    * [H203] Use assertIs(Not)None to check for None.
    * [H204] Use assert(Not)Equal to check for equality.
    * [H205] Use assert(Greater|Less)(Equal) for comparison.
    * [H210] Require ‘autospec’, ‘spec’, or ‘spec_set’ in
             mock.patch/mock.patch.object calls
    * [H904] Delay string interpolations at logging calls.

Fix code that failed [H904]. Nothing else failed the new added checks.

Change-Id: I727c944aad04298de07bcdd1d0008dcb9ffe32e9
2017-09-06 20:39:38 -07:00
OpenStack Proposal Bot
d5d0b3bbd1 Updated from global requirements
Change-Id: I3a1d618e60038f80fbc5cc993790338bd2aeda6c
2017-08-18 04:41:35 +00:00
OpenStack Proposal Bot
cb1e041ec2 Updated from global requirements
Change-Id: I3fbf025ece33e47a57db4c6442e2f2636ba49c69
2017-07-18 01:47:00 +00:00
Julia Kreger
958063e1ed Switch from oslosphinx to openstackdocstheme
Change-Id: I52055e7b3c0ed8f56d05ca624339b7e9aca19222
2017-07-15 14:39:36 +00:00
OpenStack Proposal Bot
52440836bd Updated from global requirements
Change-Id: I5c5b575324f71a87936036e8f4c16009fd9eaaf1
2017-06-27 12:11:06 +00:00
OpenStack Proposal Bot
11106dfb42 Updated from global requirements
Change-Id: I30576714cd6195c3ec98daa5c81ff9527247d901
2017-06-10 21:38:06 +00:00
OpenStack Proposal Bot
fc75e159e1 Updated from global requirements
Change-Id: Ic1215a9ef301e5db92f660f91a6c823e64e1b853
2017-05-17 13:40:13 +00:00
OpenStack Proposal Bot
5278105658 Updated from global requirements
Change-Id: Ibbd5852508f4b20aa988516103e1caf50ddd3f21
2017-05-15 00:45:01 +00:00
OpenStack Proposal Bot
2d658aaeb9 Updated from global requirements
Change-Id: I7bf1b6ba5dbbfe8da7514643eba97e5774cddde5
2017-03-02 23:55:32 +00:00
ricolin
3882d82f39 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: Icb9a79cac0222db5261e8802b4b3b08c4d5e6ac2
2017-03-02 17:01:45 +08:00
John L. Villalovos
30c946d330 Use flake8-import-order
Use the flake8 plugin flake8-import-order to check import ordering. It
can do it automatically and don't need reviewers to check it.

Change-Id: Ib3fde54d8baa2c6e3567ff3f1a902de4b25f9f70
2017-02-16 09:51:31 -08:00
OpenStack Proposal Bot
061211cf2e Updated from global requirements
Change-Id: I931ae50ad48b68e4dff01107813d54d842f1f8ac
2017-02-11 17:42:57 +00:00
Jenkins
cb336f4b41 Merge "Bump hacking to 0.11.0 in test-requirements" 2016-10-28 10:51:51 +00:00
OpenStack Proposal Bot
33c282545f Updated from global requirements
Change-Id: I383f48a4b517256d77004faed823310017a7cc8a
2016-10-27 12:14:38 +00:00
Jay Faulkner
9825cb7d7d Bump hacking to 0.11.0 in test-requirements
Hacking's latest release is 0.11.0. Most other ironic projects are using
this release.

These updates are done project-by-project to avoid introducing
unexpected new hacking rules to projects. This version bump already
applies cleanly to ironic-lib with no code style changes.

Change-Id: I6e47390299bf8f073b8c8413f0cd4e1365f938bb
2016-10-19 04:19:49 -07:00
OpenStack Proposal Bot
e1cad868df Updated from global requirements
Change-Id: Iae3d5af83d5a7a62204bd64f782f52f2597504be
2016-09-30 10:17:35 +00:00
Jay Faulkner
84f8c3095a Enforce doc8, make it pass, + fix inaccuracies
This patch fixes all sphinx warnings generated by malformed docstrings.

Additionally, it contains formatting and accuracy fixes for the metrics
docstrings, to ensure blockquotes are properly rendered, and to indicate
the get_metrics_logger() method is actually in metrics_utils.

Finally, this adds doc8 to the pep8 job, ensuring we don't reintroduce
some of these errors. As a note, there are items that can cause warnings
in doc builds that aren't enforced by doc8, and can't be enforced until
a doc build job is added to project-config.

Change-Id: I622812bfe8af576ab215c098dd211c6faf697a0c
Partial-bug: #1614272
Partial-bug: #1611559
2016-08-18 16:47:22 +00:00
Jay Faulkner
4f58317ce0 Add framework for doc building in ironic-lib
This adds a doc build for ironic-lib. Currently the only documentation
is that generated from docstrings.

Change-Id: I6ee00ad863bc7ce72958db4e8d5b6871a5b96eb0
Partial-bug: #1614272
2016-08-18 09:14:52 -07:00
OpenStack Proposal Bot
cd25d69987 Updated from global requirements
Change-Id: I86570efe458ab49d192551e793509e14ad7b2b1a
2016-05-30 00:13:26 +00:00
Dmitry Tantsur
20720a8c0b Clean up test-requirements
Remove unused: discover, oslosphinx, sphinx, pylint, simplejson, mox3.

Add actually used mock.

Change-Id: I8c839a99b25e7ec4def4f1eb7d1aaff45c3f0381
2016-03-29 19:30:58 +02:00
John L. Villalovos
3c4af656b1 Move eventlet to test-requirements. Remove greenlet.
The eventlet library is used in testing. Move it to
test-requirements.txt.

The greenlet library is not directly used. Remove it from
requirements.txt.

Make it more explicit which tests need the eventlet mock.

Change-Id: I117ec6a2ee4bb1a52e6de088cd1ddd5b0cce5efe
2016-03-02 15:53:03 -08:00
OpenStack Proposal Bot
ceabbdf7a0 Updated from global requirements
Change-Id: I07fbce0c851eb5a235e21911c3f049d9a8ad35b2
2016-01-16 03:27:06 +00:00
OpenStack Proposal Bot
b576a64c4c Updated from global requirements
Change-Id: Ia106fc54a26405ad65290ccdc0e89f515b6d01bb
2015-12-08 12:36:00 +00:00
OpenStack Proposal Bot
bf8f27bc21 Updated from global requirements
Change-Id: I63ef6c7f62e58be692c51d9997fc5fbff3141067
2015-11-19 22:53:42 +00:00
OpenStack Proposal Bot
7de3055b4f Updated from global requirements
Change-Id: I42da3cb2a80c6d2cc27b4868f95ff8e27ab018e7
2015-10-02 16:27:00 +00:00
Jim Rollenhagen
fb520b1302 Move tests/ under ironic_lib/, use ostestr
This moves the tests directory under ironic_lib, which is kind of the
standard around here. Updates tox.ini to point at this directory.

Also updates tox.ini to use ostestr, to be more standard with other
OpenStack things.

Change-Id: I91e6ba38c44a475602175b66c10757ec11b173f9
2015-09-30 09:37:17 -07:00
OpenStack Proposal Bot
43fa2d7df4 Updated from global requirements
Change-Id: I381c16e8f3b8c1424254c5cf074986c8b00a24f0
2015-08-13 02:12:56 +00:00
OpenStack Proposal Bot
bf3732ae75 Updated from global requirements
Change-Id: Ie0d71321fddcdf37d6a98921a94d319e3753e404
2015-07-29 03:46:43 +00:00
OpenStack Proposal Bot
3f47a24dad Updated from global requirements
Change-Id: I3f7bbfd14e7015f2850c69f1fcc6696615a32c30
2015-07-24 18:37:58 +00:00
OpenStack Proposal Bot
f99fa1d975 Updated from global requirements
Change-Id: I07af88e411efb41764c1d51c18a572c48dae878b
2015-06-22 08:21:29 +00:00
OpenStack Proposal Bot
2eeae88ad8 Updated from global requirements
Change-Id: Id3992f16e72347f068d546ca45fdd1fe447e2e7d
2015-05-07 23:31:19 +00:00
OpenStack Proposal Bot
d09a4f20bd Updated from global requirements
Change-Id: Ia6a4da5138783e2a9c7568f9eff24d169c5a3920
2015-03-31 18:32:05 +00:00
Faizan Barmawer
1d78cb7167 Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
OpenStack Proposal Bot
9ae3406b97 Updated from global requirements
Change-Id: Ie7334333d010975ead3db78506daaa8c300e6bb3
2014-11-23 09:35:13 +00:00
OpenStack Proposal Bot
5b394c3a5d Updated from global requirements
Change-Id: I0b2e1189b55de541d2b6ed743269cff48c59e9f1
2014-11-18 11:31:10 +00:00
OpenStack Proposal Bot
b1d16163c5 Updated from global requirements
Change-Id: I8b01e858112587b04be68acaecd9bd0b1044ce37
2014-11-05 08:30:05 +00:00
OpenStack Proposal Bot
4902824bff Updated from global requirements
Change-Id: I6fce8c7afe8abbd170461b42d0f07e85b79dffe4
2014-10-22 19:11:29 +00:00