diff --git a/setup.py b/setup.py index 92ca84e..1ad815c 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,10 @@ from setuptools import setup +VERSION="0.1.6~git" + setup ( name='img2pdf', - version='0.1.5', + version=VERSION, author = "Johannes 'josch' Schauer", author_email = 'j.schauer@email.de', description = "Convert images to PDF via direct JPEG inclusion.", @@ -24,7 +26,7 @@ setup ( 'Natural Language :: English', 'Operating System :: OS Independent'], url = 'https://github.com/josch/img2pdf', - download_url = 'https://github.com/josch/img2pdf/archive/0.1.5.tar.gz', + download_url = 'https://github.com/josch/img2pdf/archive/'+VERSION+'.tar.gz', package_dir={"": "src"}, py_modules=['img2pdf', 'jp2'], include_package_data = True, diff --git a/src/img2pdf.py b/src/img2pdf.py index 0029481..aafadb3 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -17,6 +17,8 @@ # License along with this program. If not, see # . +__version__ = "0.1.6~git" + import sys import zlib import argparse @@ -410,6 +412,9 @@ parser.add_argument( '-D', '--nodate', help='do not add timestamps', action="store_true") parser.add_argument( '-v', '--verbose', help='verbose mode', action="store_true") +parser.add_argument( + '-V', '--version', action='version', version='%(prog)s '+__version__, + help="Print version information and exit") def main(args=None): if args is None: