We are stoked to announce the release of: monasca-common 1.1.0: Monasca common python modules This release is part of the newton release series. For more details, please see below. Changes in monasca-common 1.0.0..1.1.0 -------------------------------------- a62f3cd Move metric validation from agent to monasca common 62c16b6 Updated from global requirements 06c23a1 Always put value in first bucket if force is set 21a3826 Use constraints everywhere 0bfeba4 Sync tools/tox_install.sh 5ea4d3c Reconnect to auth url in case of ClientProtocolException 46c2628 Updated from global requirements b1569e5 Change Enum to String for AlarmNotificationMethodType 6a67fec Add Last function 0d5a286 Add entity for notification_method_type table 1e33980 Remove discover from test-requirements 6c78674 Add unit tests for common repositories module 52191ba Updated from global requirements e22862b Updated from global requirements e84ab43 Add Conversions.variantToBoolean to fix API bug c98478d Make monasca-common pep8 compatible Diffstat (except docs and test files) ------------------------------------- java/monasca-common-hibernate/pom.xml | 6 + .../common/hibernate/db/NotificationMethodDb.java | 13 +- .../hibernate/db/NotificationMethodTypesDb.java | 55 +++ .../monasca/common/hibernate/db/SubAlarmDb.java | 44 ++- .../java/monasca/common/middleware/TokenCache.java | 17 +- .../common/model/alarm/AggregateFunction.java | 8 +- .../common/model/alarm/AlarmExpression.java | 2 +- .../model/alarm/AlarmNotificationMethodType.java | 14 +- .../monasca/common/model/alarm/AlarmExpression.g4 | 26 +- .../main/java/monasca/common/util/Conversions.java | 15 +- .../common/util/stats/SlidingWindowStats.java | 35 +- .../java/monasca/common/util/stats/Statistic.java | 4 +- .../java/monasca/common/util/stats/Statistics.java | 28 +- .../java/monasca/common/util/ConversionsTest.java | 18 +- .../common/util/stats/SlidingWindowStatsTest.java | 86 +++-- .../monasca/common/util/stats/StatisticsTest.java | 9 +- monasca_common/kafka/consumer.py | 5 +- monasca_common/kafka/producer.py | 8 +- monasca_common/rest/utils.py | 3 +- monasca_common/validation/__init__.py | 0 monasca_common/validation/metrics.py | 155 +++++++++ requirements.txt | 19 +- setup.py | 14 +- test-requirements.txt | 32 +- tools/tox_install.sh | 66 ++-- tox.ini | 3 - 31 files changed, 1002 insertions(+), 168 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 1bcb784..af3e63a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,11 @@ -iso8601 -six -kazoo>=2.0 -kafka-python>=0.9.5,<1.0 -PyMySQL>=0.6.7 -oslo.config -pbr -ujson>=1.34 +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. +iso8601>=0.1.11 # MIT +six>=1.9.0 # MIT +kazoo>=2.2 # Apache-2.0 +kafka-python<1.0.0,>=0.9.5 # Apache-2.0 +PyMySQL!=0.7.7,>=0.6.2 # MIT License +oslo.config>=3.14.0 # Apache-2.0 +pbr>=1.6 # Apache-2.0 +ujson>=1.35 # BSD diff --git a/test-requirements.txt b/test-requirements.txt index b09464c..d71354c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. @@ -2,16 +5,13 @@ -hacking>=0.9.2,<0.10 -Babel>=1.3 -coverage>=3.6 -discover -fixtures>=0.3.14 -flake8==2.1.0 -pep8<=1.5.6 -httplib2>=0.7.5 -mock>=1.0 -mox>=0.5.3 -nose -oslotest -python-subunit>=0.0.18 -testrepository>=0.0.18 -testscenarios>=0.4 -testtools>=0.9.34 +hacking<0.12,>=0.11.0 # Apache-2.0 +Babel>=2.3.4 # BSD +coverage>=3.6 # Apache-2.0 +fixtures>=3.0.0 # Apache-2.0/BSD +httplib2>=0.7.5 # MIT +mock>=2.0 # BSD +mox>=0.5.3 # Apache-2.0 +nose # LGPL +oslotest>=1.10.0 # Apache-2.0 +python-subunit>=0.0.18 # Apache-2.0/BSD +testrepository>=0.0.18 # Apache-2.0/BSD +testscenarios>=0.4 # Apache-2.0/BSD +testtools>=1.4.0 # MIT