-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
36 lines (29 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
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', encoding='utf-8') as f:
content = f.read()
return content
def get_version(text):
match = re.search(r"^__version__\s*=\s*['\"](.*)['\"]\s*$", text, re.MULTILINE)
return match.group(1)
setuptools.setup(name='pyptz',
version=get_version(read('pyptz/__init__.py')),
author='Jahongir Yunusov',
license='MIT',
description='PTZ Camera Control using Python',
long_description=read('README.md'),
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
url="https://github.com/jahongir7174/PyPTZ",
classifiers=["Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent", ],
keywords=['ONVIF', 'VAPIX', 'SUNAPI'],
python_requires='>=3.6',
install_requires=['urllib3==1.26.18',
'requests==2.31.0',
'onvif-zeep==0.2.12',
'beautifulsoup4==4.12.3'])