-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
58 lines (45 loc) · 1.35 KB
/
setup.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import inspect
import setuptools
from setuptools import setup
__location__ = os.path.join(os.getcwd(), os.path.dirname(inspect.getfile(inspect.currentframe())))
def read_version(package):
data = {}
with open(os.path.join(package, '__init__.py'), 'r') as fd:
exec (fd.read(), data)
return data['__version__']
NAME = 'rgbxy'
MAIN_PACKAGE = 'rgbxy'
VERSION = read_version(MAIN_PACKAGE)
DESCRIPTION = 'RGB conversion tool written in Python for Philips Hue.'
LICENSE = 'MIT'
URL = 'https://github.com/benknight/hue-python-rgb-converter'
AUTHOR = 'Ben Knight'
EMAIL = 'ben@benknight.me'
# Add here all kinds of additional classifiers as defined under
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python',
]
def setup_package():
# Some helper variables
version = VERSION
install_reqs=[],
setup(
name=NAME,
version=version,
url=URL,
description=DESCRIPTION,
author=AUTHOR,
author_email=EMAIL,
license=LICENSE,
keywords='philips hue light rgb xy',
packages=setuptools.find_packages(),
install_requires=install_reqs
)
if __name__ == '__main__':
setup_package()