-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
54 lines (49 loc) · 2 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
import setuptools
from setuptools.command.install import install
import subprocess
import os
import sys
class ShellInstall(install):
def run(self):
if not sys.platform.startswith("linux"):
print('Your platform {} might not be supported'.format(sys.platform))
else:
print('Running install_tensorflow_models.sh')
subprocess.call(['./sbin/install_tensorflow_models.sh'])
#subprocess.call(['./sbin/install_vidgear.sh']) # Switched to vidgear=0.1.8 stable
install.run(self)
with open("./README.md", "r") as fh:
long_description = fh.read()
with open('scarecrow_server/requirements.txt') as f:
requirements_server = f.read().splitlines()
with open('scarecrow_client/requirements.txt') as f:
requirements_client = f.read().splitlines()
# Combine server and client
requirements = requirements_client + requirements_server
setuptools.setup(
cmdclass={'install': ShellInstall},
name="scarecrow-cam",
version="0.5.4",
author="Christian Hollinger",
author_email="[email protected]",
description="A Raspberry Pi powered edge-computing camera setups that runs a Tensorflow object detection model to determine whether a person is on the camera and plays loud audio to scare them off.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/chollinger93/scarecrow",
packages=setuptools.find_packages(),
setup_requires=['setuptools<=65.5.1', 'Cython==0.29.24', 'numpy==1.19.0', 'anybadge==1.7.0'],
install_requires=requirements,
extras_require={'pygame': ['pygame==1.9.6'] },
classifiers=[
"Programming Language :: Python :: 3",
"License :: GNU :: GPLv3",
"Operating System :: Linux",
],
entry_points={
'console_scripts': [
'scarecrow_server = scarecrow_server.server.receiver:start',
'scarecrow_client = scarecrow_client.client.sender:start',
]
},
python_requires='>=3.6,<=3.9.5',
)