Skip to content

Commit

Permalink
Add version information - close #57
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Jan 27, 2021
1 parent c7f6f41 commit 23582d4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[bumpversion]
commit = True
tag = True
tag_message = Version {new_version}
current_version = 0.5.1-dev
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}

[bumpversion:file:sashimi-plot.py]

[bumpversion:part:release]
optional_value = gamma
values =
dev
gamma

12 changes: 12 additions & 0 deletions sashimi-plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
import sys, re, copy, os, codecs, gzip
from collections import OrderedDict


__version__ = "0.5.1-dev"


def get_version():
"""Return version information."""
prog = 'ggsashimi'
version = '{} v{}'.format(prog, __version__)
return version


def define_options():
# Argument parsing
parser = ArgumentParser(description='Create sashimi plot for a given genomic region')
Expand Down Expand Up @@ -60,6 +71,7 @@ def define_options():
help="Output file format: <pdf> <svg> <png> <jpeg> <tiff> [default=%(default)s]")
parser.add_argument("-R", "--out-resolution", type=int, default=300, dest="out_resolution",
help="Output file resolution in PPI (pixels per inch). Applies only to raster output formats [default=%(default)s]")
parser.add_argument('--version', action='version', version=get_version())
# parser.add_argument("-s", "--smooth", action="store_true", default=False, help="Smooth the signal histogram")
return parser

Expand Down

0 comments on commit 23582d4

Please sign in to comment.