Revert "remove pbr as runtime dependency"
This reverts commit f7bb4f907a. This is
part of our public API and can't be removed immediately.
Change-Id: Ibda32b213a77b12d55fa32273f1d139b95edc338
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
1 parent
5fd76f0a01
commit
9c7d9417f9
3 files changed
+6
-5
No files matched your search
@@ -96,7 +96,7 @@ def register_common_config_options():
|
||||
|
||||
def init(args, default_config_files=None, **kwargs):
|
||||
cfg.CONF(args=args, project='neutron',
|
||||
version='%%(prog)s %s' % version.version_info,
|
||||
version='%%(prog)s %s' % version.version_info.release_string(),
|
||||
default_config_files=default_config_files,
|
||||
**kwargs)
|
||||
|
||||
@@ -120,14 +120,14 @@ def setup_logging():
|
||||
LOG.info("Logging enabled!")
|
||||
LOG.info("%(prog)s version %(version)s",
|
||||
{'prog': sys.argv[0],
|
||||
'version': version.version_info})
|
||||
'version': version.version_info.release_string()})
|
||||
LOG.debug("command line: %s", " ".join(sys.argv))
|
||||
|
||||
|
||||
def setup_gmr():
|
||||
"""Sets up Guru Meditation Report(GMR) generation."""
|
||||
gmr_opts.set_defaults(cfg.CONF)
|
||||
_version_string = version.version_info
|
||||
_version_string = version.version_info.release_string()
|
||||
gmr.TextGuruMeditation.setup_autorun(version=_version_string,
|
||||
conf=cfg.CONF)
|
||||
|
||||
|
||||
+2
-2
@@ -12,6 +12,6 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import importlib.metadata
|
||||
import pbr.version
|
||||
|
||||
version_info = importlib.metadata.version('neutron')
|
||||
version_info = pbr.version.VersionInfo('neutron')
|
||||
@@ -1,6 +1,7 @@
|
||||
# Requirements lower bounds listed here are our best effort to keep them up to
|
||||
# date but we do not test them so no guarantee of having them all correct. If
|
||||
# you find any incorrect lower bounds, let us know or propose a fix.
|
||||
pbr>=6.0.0 # Apache-2.0
|
||||
|
||||
Paste>=2.0.2 # MIT
|
||||
PasteDeploy>=1.5.0 # MIT
|
||||
|
||||
Reference in new issue
Block a user