-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·31 lines (28 loc) · 988 Bytes
/
setup.py
File metadata and controls
executable file
·31 lines (28 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
from distutils.core import setup
def version():
with open("apds9960/__init__.py") as fd:
for line in fd:
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
setup(
name = 'apds9960',
packages = ['apds9960'],
version = version(),
description = 'Python APDS-9960 Library',
author = 'Thomas Liske',
author_email = 'thomas@fiasko-nw.net',
url = 'https://github.com/liske/python-apds9960/',
keywords = 'apds9960',
license='GPLv3+',
long_description=open('README.md', 'r').read(),
long_description_content_type='text/markdown',
classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)