Skip to content

Commit 3acae79

Browse files
committed
remove pbr as runtime dependency
Use importlib.metadata to return the same version info instead of depending on pbr at runtime. Change-Id: Idce5e238ae45cf07394d1264bccf89e9a6e8f28e Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
1 parent 6a540c1 commit 3acae79

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

openstackclient/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@
1111
# under the License.
1212
#
1313

14-
import pbr.version
14+
import importlib.metadata
1515

1616
__all__ = ['__version__']
1717

18-
version_info = pbr.version.VersionInfo('python-openstackclient')
19-
try:
20-
__version__ = version_info.version_string()
21-
except AttributeError:
22-
__version__ = None
18+
__version__ = importlib.metadata.version('python-openstackclient')

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# date but we do not test them so no guarantee of having them all correct. If
33
# you find any incorrect lower bounds, let us know or propose a fix.
44

5-
pbr!=2.1.0,>=2.0.0 # Apache-2.0
6-
75
cryptography>=2.7 # BSD/Apache-2.0
86
cliff>=4.13.0 # Apache-2.0
97
iso8601>=0.1.11 # MIT

0 commit comments

Comments
 (0)