Skip to content

Commit 0b50c9d

Browse files
author
Nolan Woods
committed
Use pbr for version
1 parent 1e2f067 commit 0b50c9d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

biopython_convert/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import gffutils
1313
from gffutils import biopython_integration
1414

15-
from .__version import __version__, __versionstr__
1615
from . import JMESPathGen
1716

1817
gff_types = ['gff', 'gff3']
@@ -46,7 +45,8 @@ def get_args(sysargs: list):
4645
opts, args = getopt.gnu_getopt(sysargs, 'vsiq:')
4746
for opt, val in opts:
4847
if opt == '-v':
49-
print(__versionstr__)
48+
import __version
49+
print(__version.__version__)
5050
exit(0)
5151
elif opt == '-s':
5252
split = True

biopython_convert/__version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
__version__ = [1, 0, 0]
2-
3-
__versionstr__ = '.'.join([str(i) for i in __version__])
1+
from pbr.version import VersionInfo
2+
_v = VersionInfo('mock').semantic_version()
3+
__version__ = _v.release_string()
44

55
if __name__ == '__main__':
6-
print(__versionstr__)
6+
print(__version__)

0 commit comments

Comments
 (0)