Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84c689a

Browse files
committed
sync version reporting and releasing
1 parent 3cbd909 commit 84c689a

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

bipython/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
__author__ = 'Paul Ivanov <[email protected]>'
1313
__copyright__ = 'Copyright (c) 2014 Paul Ivanov'
1414
__license__ = 'BSD'
15+
__version__ = '0.1.3'
1516

1617
import sys
1718
import os
@@ -1656,7 +1657,8 @@ def main(args=None, locals_=None, banner=None):
16561657
parser = argparse.ArgumentParser(
16571658
description='the boldly indiscriminate Python interpreter')
16581659
parser.add_argument( '-v','--version', action='version',
1659-
version='%(prog)s 0.1.0 (Python %)' + sys.version.split()[0])
1660+
version='%(prog)s ' +'%s (Python %s)' %
1661+
(__version__, sys.version.split()[0]))
16601662

16611663
parser.parse_known_args()
16621664

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
import warnings
1313
warnings.warn("bipython might not work in Python 3, I'll get to it soon")
1414

15-
VERSION = "0.1"
15+
VERSION = bipython.__version__
16+
M_VERSION = VERSION[:VERSION.rfind('.')]
1617

1718
setup_kwargs = {
18-
"version": VERSION + '.2',
19-
"description": 'bipython: boldly indiscriminate python interpreter',
19+
"version": VERSION,
20+
"description": 'bipython: the boldly indiscriminate python interpreter',
2021
"author": 'Paul Ivanov',
2122
"author_email": '[email protected]',
2223
"url": 'http://bipython.org/',
23-
"download_url": "https://github.com/ivanov/bipython/zipball/" + VERSION,
24+
"download_url": "https://github.com/ivanov/bipython/zipball/" + M_VERSION,
2425
"classifiers": [
2526
"License :: OSI Approved :: BSD License",
2627
"Development Status :: 3 - Alpha",

0 commit comments

Comments
 (0)