-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (45 loc) · 1.36 KB
/
setup.py
File metadata and controls
53 lines (45 loc) · 1.36 KB
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
import os
import re
import setuptools
def read(filename):
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), filename)
with open(path, 'r') as f:
return f.read()
def find_version(text):
match = re.search(r"^__version__\s*=\s*['\"](.*)['\"]\s*$", text,
re.MULTILINE)
return match.group(1)
AUTHOR = "Conservation Technology Lab at the San Diego Zoo Wildlife Alliance"
DESC = "Code for ScrubCam: Edge-AI-enabled wildlife field camera."
setuptools.setup(
name='scrubcam',
description=DESC,
long_description=read('README.md'),
license="MIT",
version=find_version(read('scrubcam/__init__.py')),
author=AUTHOR,
packages=['scrubcam'],
install_requires=[
'pyyaml',
'netifaces',
'numpy',
'opencv-python==4.5.4.60',
'imutils',
'pillow',
'camml',
],
extras_require={
'pi': ['dencam',
'picamera',
'rpi.gpio',
'adafruit-circuitpython-ssd1306',
'adafruit-circuitpython-rfm9x']
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Development Status :: 2 - Pre-Alpha",
"Topic :: Scientific/Engineering",
],
entry_points={'console_scripts': ["scrubcam=scrubcam.__main__:main"]},
)