setup.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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',
  18. 'cached-property>=1.2.0',
  19. 'argparse>=1.4.0',
  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. packages=find_packages(exclude=['tests', 'tests.*']),
  28. classifiers=[
  29. 'Development Status :: 3 - Alpha',
  30. 'Environment :: Console',
  31. 'Intended Audience :: System Administrators',
  32. 'Intended Audience :: Developers',
  33. 'Topic :: Security',
  34. 'Topic :: Software Development :: Quality Assurance',
  35. 'Topic :: Software Development :: Testing'
  36. ],
  37. include_package_data=True,
  38. )