diff options
| author | Robert Collins <robertc@robertcollins.net> | 2015-12-04 15:34:20 +1300 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2015-12-04 15:34:20 +1300 |
| commit | a714707cced3a5a22ab903a824ea45ec55896710 (patch) | |
| tree | 320553b8ecd76ecf08d24f315f5fc8cc40bd494d /testresources | |
| parent | 83d798006e1e7cde64cc2a9abfb3e1055f5e9176 (diff) | |
| download | testresources-git-a714707cced3a5a22ab903a824ea45ec55896710.tar.gz | |
Use pbr for versions as well.
Diffstat (limited to 'testresources')
| -rw-r--r-- | testresources/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testresources/__init__.py b/testresources/__init__.py index bda974a..2b814f1 100644 --- a/testresources/__init__.py +++ b/testresources/__init__.py @@ -33,7 +33,10 @@ import unittest # If the releaselevel is 'final', then the tarball will be major.minor.micro. # Otherwise it is major.minor.micro~$(revno). -__version__ = (0, 2, 7, 'final', 0) +from pbr.version import VersionInfo +_version = VersionInfo('testresources') +__version__ = _version.semantic_version().version_tuple() +version = _version.release_string() def test_suite(): |
