-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
66 lines (57 loc) · 1.7 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
59
60
61
62
63
64
65
66
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import codecs
from setuptools import setup, find_packages
with open("README.md") as f:
LONG_DESCRIPTION = f.read()
if sys.argv[-1] == "publish":
os.system("python setup.py sdist bdist_wheel upload")
sys.exit()
required = [
"scipy",
"numpy",
"pandas",
"scikit-learn",
"python-xlib",
"Pillow",
"simplejson",
"pyinotify",
"watchdog",
"cachetools",
"pynput",
]
extras_require = {'whereami': ['whereami']}
# poor man's version parser
with open("brightml/__init__.py") as f:
for line in f:
version = line.strip().split()[-1].strip('"')
break
setup(
name='brightml',
version=version,
description='Machine Learned Auto brightness',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author='Pascal van Kooten',
author_email='[email protected]',
url='https://github.com/kootenpv/brightml',
packages=find_packages(),
install_requires=required,
license='MIT',
entry_points={'console_scripts': ['brightml = brightml.__main__:main']},
extras_require=extras_require,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
)