While we are not depend on OpenStack global-requirements, we need to be synced
with it to be sure that Rally compatible with all OpenStack related stuff.
This patch provides new helper script, which checks versions from g-r, correct
license and latest version from pypi.
The usage is simple:
# sync rally requirements with g-r
tox -e requirements
# just format rally requirements
tox -e requirements -- --format
# sync rally requirements with g-r & add upper limits for all packages
tox -e requirements -- --add-uppers
Also, this patch formats Rally requirements in unified form, puts right
licenses to requirements and adds rally licenses in correct way in setup.cfg
Change-Id: Ia50694f636d9f80f08d90cc8133ebac8bb3f8671
Rally Style Commandments
- Step 1: Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
- Step 2: Read on
Rally Specific Commandments
- * [N30x] - Reserved for rules related to
mocklibrary -
- [N301] - Ensure that
assert_*methods frommocklibrary is used correctly - [N302] - Ensure that nonexistent "assert_called" is not used
- [N303] - Ensure that nonexistent "assert_called_once" is not used
- [N301] - Ensure that
- * [N310-N314] - Reserved for rules related to logging
-
- [N310] - Ensure that
rally.common.logis used as logging module - [N311] - Validate that debug level logs are not translated
- [N312] - Validate correctness of debug on check.
- [N310] - Ensure that
- * [N32x] - Reserved for rules related to assert* methods
-
- [N320] - Ensure that
assertTrue(isinstance(A, B))is not used - [N321] - Ensure that
assertEqual(type(A), B)is not used - [N322] - Ensure that
assertEqual(A, None)andassertEqual(None, A)are not used - [N323] - Ensure that
assertTrue/assertFalse(A in/not in B)are not used with collection contents - [N324] - Ensure that
assertEqual(A in/not in B, True/False)andassertEqual(True/False, A in/not in B)are not used with collection contents
- [N320] - Ensure that
- [N340] - Ensure that we are importing always
from rally import objects - [N341] - Ensure that we are importing oslo_xyz packages instead of deprecated oslo.xyz ones
- [N350] - Ensure that single quotes are not used
- [N351] - Ensure that data structs (i.e Lists and Dicts) are declared literally rather than using constructors
- [N352] - Ensure that string formatting only uses a mapping if multiple mapping keys are used.
- [N353] - Ensure that unicode() function is not uset because of absence in py3
- [N354] - Ensure that
:raises: Exceptionis not used - [N355] - Ensure that we use only "new-style" Python classes
- [N356] - Ensure using
dtas alias fordatetime
- * [N360-N370] - Reserved for rules related to CLI
-
- [N360] - Ensure that CLI modules do not use
rally.common.db - [N361] - Ensure that CLI modules do not use
rally.common.objects
- [N360] - Ensure that CLI modules do not use