Skip to content

Commit

Permalink
Single-sourcing the package version.
Browse files Browse the repository at this point in the history
  • Loading branch information
taiwaness committed Sep 7, 2017
1 parent 667cbd9 commit b20fcf8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bin/gff3_QC.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
import inter_model
import intra_model
import ERROR # Details of the errors that can be detected.
import version

__version__ = '0.0.1'
__version__ = version.__version__

if __name__ == '__main__':
logger_stderr = logging.getLogger(__name__+'stderr')
Expand Down
4 changes: 3 additions & 1 deletion bin/gff3_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
from gff3_modified import Gff3
sys.path = filter (lambda a: not a.endswith('/bin'), sys.path)
import gff3_merge
__version__ = '0.0.5'
import version

__version__ = version.__version__

def check_replace(gff):
roots = []
Expand Down
3 changes: 2 additions & 1 deletion bin/gff3_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
bin_path = dirname(__file__) + '/../lib'
sys.path.insert(1, bin_path)
from gff3_modified import Gff3
import version

__version__ = '0.0.3'
__version__ = version.__version__


def PositionSort(linelist):
Expand Down
4 changes: 3 additions & 1 deletion bin/gff3_to_fasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
import function4gff
import intra_model
import single_feature
import version

__version__ = version.__version__

__version__ = '0.0.1'

COMPLEMENT_TRANS = string.maketrans('TAGCtagc', 'ATCGATCG')
def complement(seq):
Expand Down
5 changes: 5 additions & 0 deletions bin/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
"""Version of GFF3toolkit"""
VERSION = (1, 1, 0)
__version__ = '.'.join(map(str, VERSION[0:3])) + ''.join(VERSION[3:])

0 comments on commit b20fcf8

Please sign in to comment.