Skip to content

Commit b1e4be8

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "remove pbr as runtime dependency"
2 parents a8d71d5 + 3acae79 commit b1e4be8

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)