setup.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import os
  2. from setuptools import setup, find_packages
  3. import sys
  4. here = os.path.abspath(os.path.dirname(__file__))
  5. version_path = os.path.join(here, 'onvif/version.txt')
  6. version = open(version_path).read().strip()
  7. requires = ['zeep >= 3.0.0']
  8. CLASSIFIERS = [
  9. 'Development Status :: 3 - Alpha',
  10. 'Environment :: Console',
  11. 'Intended Audience :: Customer Service',
  12. 'Intended Audience :: Developers',
  13. 'Intended Audience :: Education',
  14. 'Intended Audience :: Science/Research',
  15. 'Intended Audience :: Telecommunications Industry',
  16. 'Natural Language :: English',
  17. 'Operating System :: POSIX',
  18. 'Topic :: Software Development :: Libraries :: Python Modules',
  19. 'Topic :: Multimedia :: Sound/Audio',
  20. 'Topic :: Utilities',
  21. "Programming Language :: Python",
  22. "Programming Language :: Python :: 2",
  23. "Programming Language :: Python :: 2.7",
  24. "Programming Language :: Python :: 3",
  25. "Programming Language :: Python :: 3.5",
  26. ]
  27. wsdl_files = [os.path.join('wsdl', item) for item in os.listdir('wsdl')]
  28. wsdl_dst_dir = 'Lib/site-packages/wsdl' if sys.platform == 'win32' else \
  29. 'lib/python%d.%d/site-packages/wsdl' % (sys.version_info.major,
  30. sys.version_info.minor)
  31. setup(
  32. name='onvif_zeep',
  33. version=version,
  34. description='Python Client for ONVIF Camera',
  35. long_description=open('README.rst', 'r').read(),
  36. author='Cherish Chen',
  37. author_email='sinchb128@gmail.com',
  38. maintainer='sinchb',
  39. maintainer_email='sinchb128@gmail.com',
  40. license='MIT',
  41. keywords=['ONVIF', 'Camera', 'IPC'],
  42. url='http://github.com/quatanium/python-onvif',
  43. zip_safe=False,
  44. packages=find_packages(exclude=['docs', 'examples', 'tests']),
  45. install_requires=requires,
  46. include_package_data=True,
  47. data_files=[(wsdl_dst_dir, wsdl_files)],
  48. entry_points={
  49. 'console_scripts': ['onvif-cli = onvif.cli:main']
  50. }
  51. )