setup.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import re
  2. from setuptools import setup, find_packages
  3. with open('gixy/__init__.py', 'r') as fd:
  4. version = re.search(r'^version\s*=\s*[\'"]([^\'"]*)[\'"]',
  5. fd.read(), re.MULTILINE).group(1)
  6. if not version:
  7. raise RuntimeError('Cannot find version information')
  8. setup(
  9. name='gixy',
  10. version=version,
  11. description='Nginx configuration [sec]analyzer',
  12. keywords='nginx security lint static-analysis',
  13. author='Yandex IS Team',
  14. author_email='buglloc@yandex.ru',
  15. url='https://github.com/yandex/gixy',
  16. install_requires=[
  17. 'pyparsing>=1.5.5,<3',
  18. 'cached-property>=1.2.0',
  19. 'argparse>=1.4.0;python_version<"3.2"',
  20. 'six>=1.1.0',
  21. 'Jinja2>=2.8',
  22. 'ConfigArgParse>=0.11.0'
  23. ],
  24. entry_points={
  25. 'console_scripts': ['gixy=gixy.cli.main:main'],
  26. },
  27. test_suite='nose.collector',
  28. packages=find_packages(exclude=['tests', 'tests.*']),
  29. classifiers=[
  30. 'Development Status :: 3 - Alpha',
  31. 'Environment :: Console',
  32. 'Intended Audience :: System Administrators',
  33. 'Intended Audience :: Developers',
  34. 'Topic :: Security',
  35. 'Topic :: Software Development :: Quality Assurance',
  36. 'Topic :: Software Development :: Testing'
  37. ],
  38. include_package_data=True
  39. )