Skip to content

Commit c89ed51

Browse files
author
Tim Bird
committed
Version 1.9.2
Also, change way grabserial stores it's version number.
1 parent 30b6a6c commit c89ed51

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

grabserial

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# * buffer output chars??
1717
#
1818
# CHANGELOG:
19+
# 2016.07.01 - Version 1.9.2 - change how version is stored
1920
# 2016.05.10 - Version 1.9.1 - allow skipping the tty check with -S
2021
# 2016.05.10 - Version 1.9.0 - support use as a python module
2122
# Note that the main module routine will be grabserial.grab(args,[outputfd])
@@ -43,9 +44,7 @@
4344
# 2008-06-02 - Version 1.1.0 add support for sending a command to
4445
# the serial port before grabbing output
4546

46-
MAJOR_VERSION=1
47-
MINOR_VERSION=9
48-
REVISION=1
47+
VERSION=(1,9,2)
4948

5049
import os, sys
5150
import getopt
@@ -262,7 +261,7 @@ def grab(arglist, outputfd=sys.stdout):
262261
if opt in ["-v", "--verbose"]:
263262
verbose=1
264263
if opt in ["-V", "--version"]:
265-
print("grabserial version %d.%d.%d" % (MAJOR_VERSION, MINOR_VERSION, REVISION))
264+
print("grabserial version %d.%d.%d" % VERSION)
266265
sd.close()
267266
sys.exit(0)
268267
if opt in ["-S"]:

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
import os
55
from setuptools import setup
66

7-
VERSION = '1.9.1'
7+
VERSION = '1.9.2'
88

99
setup(
1010
name='grabserial',
1111
version=VERSION,
1212
scripts=['grabserial',],
13+
#packages=['grabserial',],
1314
author='Tim Bird',
1415
author_email='[email protected]',
1516

0 commit comments

Comments
 (0)