Switch python3 versions of test jobs to match Train PTI
In Train, we will use python 3.6 and 3.7 for python3 runtime in our gate jobs [1]. This commit also adds python 3.7. In Python3.7 async is a reserved keyword so replacing it with is_async. [1] https://governance.openstack.org/tc/reference/runtimes/train.html Change-Id: I05f40c4a9304cad551cefd4f10c3ba9a72d69a6f
This commit is contained in:
parent
fb460f6421
commit
6cc6c9ba4f
|
@ -146,7 +146,7 @@
|
||||||
- openstack-cover-jobs
|
- openstack-cover-jobs
|
||||||
- openstack-lower-constraints-jobs
|
- openstack-lower-constraints-jobs
|
||||||
- openstack-python-jobs
|
- openstack-python-jobs
|
||||||
- openstack-python36-jobs
|
- openstack-python3-train-jobs
|
||||||
- publish-openstack-docs-pti
|
- publish-openstack-docs-pti
|
||||||
- release-notes-jobs-python3
|
- release-notes-jobs-python3
|
||||||
check:
|
check:
|
||||||
|
|
|
@ -443,7 +443,7 @@ max_retry = 1
|
||||||
#
|
#
|
||||||
# The type of posting
|
# The type of posting
|
||||||
# (boolean value)
|
# (boolean value)
|
||||||
async = true
|
is_async = true
|
||||||
|
|
||||||
#
|
#
|
||||||
# Specify if the message received should be parsed.
|
# Specify if the message received should be parsed.
|
||||||
|
|
|
@ -36,7 +36,7 @@ class KafkaPublisher(publisher.Publisher):
|
||||||
self.topic = topic
|
self.topic = topic
|
||||||
self.group = cfg.CONF.kafka.group
|
self.group = cfg.CONF.kafka.group
|
||||||
self.wait_time = cfg.CONF.kafka.wait_time
|
self.wait_time = cfg.CONF.kafka.wait_time
|
||||||
self.async_ = cfg.CONF.kafka.async
|
self.is_async = cfg.CONF.kafka.is_async
|
||||||
self.ack_time = cfg.CONF.kafka.ack_time
|
self.ack_time = cfg.CONF.kafka.ack_time
|
||||||
self.max_retry = cfg.CONF.kafka.max_retry
|
self.max_retry = cfg.CONF.kafka.max_retry
|
||||||
self.auto_commit = cfg.CONF.kafka.auto_commit
|
self.auto_commit = cfg.CONF.kafka.auto_commit
|
||||||
|
|
|
@ -60,7 +60,7 @@ The number of retry when there is a connection error
|
||||||
advanced=True, help='''
|
advanced=True, help='''
|
||||||
Should messages be automatically committed
|
Should messages be automatically committed
|
||||||
'''),
|
'''),
|
||||||
cfg.BoolOpt('async', default=True,
|
cfg.BoolOpt('is_async', default=True,
|
||||||
help='''
|
help='''
|
||||||
The type of posting
|
The type of posting
|
||||||
'''),
|
'''),
|
||||||
|
|
|
@ -17,6 +17,7 @@ classifier =
|
||||||
Programming Language :: Python :: 2
|
Programming Language :: Python :: 2
|
||||||
Programming Language :: Python :: 2.7
|
Programming Language :: Python :: 2.7
|
||||||
Programming Language :: Python :: 3.6
|
Programming Language :: Python :: 3.6
|
||||||
|
Programming Language :: Python :: 3.7
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
|
|
Loading…
Reference in New Issue