Skip to content

Commit c8390ce

Browse files
Version 0.1.2
1 parent 18398d2 commit c8390ce

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

jambel.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"""
55
Interface to jambit's project traffic lights.
66
7+
jambel.py ADDRESS [OPTIONS] COMMAND [COMMAND ...]
8+
79
COMMANDS:
810
911
status - Will return a list of status codes for the light modules as JSON.
@@ -16,11 +18,12 @@
1618
1719
EXAMPLES:
1820
19-
To remote control a Jambel, simply run this script::
21+
To remote control a Jambel, simply run one of these on the command line::
2022
2123
jambel.py ampel3.dev.jambit.com --debug green=on yellow=blink red=off
2224
jambel.py ampel1.dev.jambit.com:10001 reset green=flash
23-
25+
26+
Type jambel.py --help for more information.
2427
"""
2528

2629
import argparse
@@ -29,7 +32,7 @@
2932
import telnetlib
3033
import re
3134

32-
__version__ = '0.1.1'
35+
__version__ = '0.1.2'
3336

3437
OFF = 0
3538
ON = 1

setup.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
import os
33
import re
44

5+
56
def get_version():
6-
"""
7-
Extracts version directly from Jambel module.
8-
"""
9-
version_reg = re.compile("""^__version__ = '(.*)'""", re.M)
10-
_here = os.path.dirname(os.path.abspath(__file__))
11-
path = os.path.join(_here, 'jambel.py')
12-
m = version_reg.search(open(path).read())
13-
return m.group(1) if m is not None else '?'
14-
15-
7+
"""
8+
Extracts version directly from Jambel module.
9+
"""
10+
version_reg = re.compile("""^__version__ = '(.*)'""", re.M)
11+
_here = os.path.dirname(os.path.abspath(__file__))
12+
path = os.path.join(_here, 'jambel.py')
13+
m = version_reg.search(open(path).read())
14+
return m.group(1) if m is not None else '?'
15+
16+
1617
setup(
1718
name='jambel',
1819
version=get_version(),

0 commit comments

Comments
 (0)