1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import os
- from setuptools import setup, find_packages
- import sys
- here = os.path.abspath(os.path.dirname(__file__))
- version_path = os.path.join(here, 'onvif/version.txt')
- version = open(version_path).read().strip()
- requires = ['zeep >= 3.0.0']
- CLASSIFIERS = [
- 'Development Status :: 3 - Alpha',
- 'Environment :: Console',
- 'Intended Audience :: Customer Service',
- 'Intended Audience :: Developers',
- 'Intended Audience :: Education',
- 'Intended Audience :: Science/Research',
- 'Intended Audience :: Telecommunications Industry',
- 'Natural Language :: English',
- 'Operating System :: POSIX',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- 'Topic :: Multimedia :: Sound/Audio',
- 'Topic :: Utilities',
- "Programming Language :: Python",
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.5",
- ]
- wsdl_files = [os.path.join('wsdl', item) for item in os.listdir('wsdl')]
- wsdl_dst_dir = 'Lib/site-packages/wsdl' if sys.platform == 'win32' else \
- 'lib/python%d.%d/site-packages/wsdl' % (sys.version_info.major,
- sys.version_info.minor)
- setup(
- name='onvif_zeep',
- version=version,
- description='Python Client for ONVIF Camera',
- long_description=open('README.rst', 'r').read(),
- author='Cherish Chen',
- author_email='sinchb128@gmail.com',
- maintainer='sinchb',
- maintainer_email='sinchb128@gmail.com',
- license='MIT',
- keywords=['ONVIF', 'Camera', 'IPC'],
- url='http://github.com/quatanium/python-onvif',
- zip_safe=False,
- packages=find_packages(exclude=['docs', 'examples', 'tests']),
- install_requires=requires,
- include_package_data=True,
- data_files=[(wsdl_dst_dir, wsdl_files)],
- entry_points={
- 'console_scripts': ['onvif-cli = onvif.cli:main']
- }
- )
|