-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
81 lines (73 loc) · 2.16 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import os
from pathlib import Path
from setuptools import setup, find_packages
with (Path(__file__).parent.absolute() / 'README.md').open('rt') as fh:
LONG_DESCRIPTION = fh.read().strip()
with (Path(__file__).parent.absolute() / 'zanzocam' / 'constants.py').open('r') as cs:
for line in cs.readlines():
if line.startswith("VERSION"):
VERSION = line.replace("VERSION", "").replace("=", "").replace('"', "").replace(" ", "").replace("\n", "")
break
REQUIREMENTS: dict = {
'deploy': [
"picamera",
"Pillow",
"requests",
"piexif", # Carry over and edit EXIF information
"uwsgi",
"Flask"
],
'test-on-rpi': [
"picamera",
'Pillow',
'requests',
'piexif',
'pytest',
'pytest-coverage',
'pytest-subprocess',
'freezegun', # Mock datetime objects
],
'ci': [
'Pillow',
'requests',
'piexif',
'pytest',
'pytest-coverage',
'pytest-subprocess',
'freezegun', # Mock datetime objects
'coveralls', # To publish the coverage data on coveralls
],
'docs': [
'sphinx',
'sphinx-rtd-theme',
]
}
setup(
name='zanzocam',
version=VERSION,
author='Sara Zanzottera',
author_email='[email protected]',
description='ZANZOCAM - remote, asynchronous, low frequency webcam for isolated locations and long-term autonomous monitoring',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url='https://zanzocam.github.io/',
packages=find_packages(),
include_package_data=True,
python_requires='>=3.6, <4',
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
setup_requires=['wheel'],
install_requires=[],
extras_require={
**REQUIREMENTS,
'all': [req for reqs in REQUIREMENTS.values() for req in reqs],
},
entry_points={
'console_scripts': [
'z-webcam=zanzocam.webcam.main:main',
'z-ui=zanzocam.web_ui.endpoints:main',
],
},
)