We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f26726 commit bfaaa61Copy full SHA for bfaaa61
2 files changed
apds9960/__init__.py
@@ -1,3 +1,4 @@
1
from apds9960.device import APDS9960, uAPDS9960
2
3
__all__ = [ 'APDS9960', 'uAPDS9960', ]
4
+__version__ = '0.3.0'
setup.py
@@ -2,10 +2,18 @@
from distutils.core import setup
5
+def version():
6
+ with open("apds9960/__init__.py") as fd:
7
+ for line in fd:
8
+ if line.startswith('__version__'):
9
+ delim = '"' if '"' in line else "'"
10
+ return line.split(delim)[1]
11
+ raise RuntimeError("Unable to find version string.")
12
+
13
setup(
14
name = 'apds9960',
15
packages = ['apds9960'],
- version = '0.2',
16
+ version = version(),
17
description = 'Python APDS-9960 Library',
18
author = 'Thomas Liske',
19
author_email = 'thomas@fiasko-nw.net',
0 commit comments