Skip to content

Commit 973acf6

Browse files
committed
Prep for v0.1.4
1 parent fd1c8d1 commit 973acf6

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

library/CHANGELOG.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.1.4
2+
-----
3+
4+
* Shim Thread.isAlive() for Python >=3.9
5+
* Fix R_INPUT_4_THRESH constant
6+
17
0.1.3
28
-----
39

library/cap1xxx.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
import signal
1212
import threading
1313
import time
14-
from sys import exit, version_info
14+
from sys import version_info
1515

1616
try:
1717
from smbus import SMBus
1818
except ImportError:
1919
if version_info[0] < 3:
20-
exit("This library requires python-smbus\nInstall with: sudo apt-get install python-smbus")
20+
raise ImportError("This library requires python-smbus\nInstall with: sudo apt-get install python-smbus")
2121
elif version_info[0] == 3:
22-
exit("This library requires python3-smbus\nInstall with: sudo apt-get install python3-smbus")
22+
raise ImportError("This library requires python3-smbus\nInstall with: sudo apt-get install python3-smbus")
2323

2424
try:
2525
import RPi.GPIO as GPIO
2626
except ImportError:
27-
exit("This library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO")
27+
raise ImportError("This library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO")
2828

29-
__version__ = '0.1.3'
29+
__version__ = '0.1.4'
3030

3131
# DEVICE MAP
3232
DEFAULT_ADDR = 0x28

library/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
setup(
3838
name = 'Cap1xxx',
39-
version = '0.1.3',
39+
version = '0.1.4',
4040
author = 'Philip Howard',
4141
author_email = '[email protected]',
4242
description = 'A module to drive various Microchip cap1xxx touch ICs',

0 commit comments

Comments
 (0)