Skip to content

Commit

Permalink
Use pbr for version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Jul 18, 2019
1 parent 1e2f067 commit 0b50c9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions biopython_convert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import gffutils
from gffutils import biopython_integration

from .__version import __version__, __versionstr__
from . import JMESPathGen

gff_types = ['gff', 'gff3']
Expand Down Expand Up @@ -46,7 +45,8 @@ def get_args(sysargs: list):
opts, args = getopt.gnu_getopt(sysargs, 'vsiq:')
for opt, val in opts:
if opt == '-v':
print(__versionstr__)
import __version
print(__version.__version__)
exit(0)
elif opt == '-s':
split = True
Expand Down
8 changes: 4 additions & 4 deletions biopython_convert/__version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__version__ = [1, 0, 0]

__versionstr__ = '.'.join([str(i) for i in __version__])
from pbr.version import VersionInfo
_v = VersionInfo('mock').semantic_version()
__version__ = _v.release_string()

if __name__ == '__main__':
print(__versionstr__)
print(__version__)

0 comments on commit 0b50c9d

Please sign in to comment.