/vendor/packages/Pygments/setup.py

https://github.com/openhatch/oh-mainline · Python · 90 lines · 58 code · 4 blank · 28 comment · 6 complexity · ea0edce4bd6d958bb058abca57c5d887 MD5 · raw file

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. Pygments
  5. ~~~~~~~~
  6. Pygments is a syntax highlighting package written in Python.
  7. It is a generic syntax highlighter for general use in all kinds of software
  8. such as forum systems, wikis or other applications that need to prettify
  9. source code. Highlights are:
  10. * a wide range of common languages and markup formats is supported
  11. * special attention is paid to details, increasing quality by a fair amount
  12. * support for new languages and formats are added easily
  13. * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image \
  14. formats that PIL supports and ANSI sequences
  15. * it is usable as a command-line tool and as a library
  16. * ... and it highlights even Brainfuck!
  17. The `Pygments tip`_ is installable with ``easy_install Pygments==dev``.
  18. .. _Pygments tip:
  19. http://bitbucket.org/birkenfeld/pygments-main/get/default.zip#egg=Pygments-dev
  20. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
  21. :license: BSD, see LICENSE for details.
  22. """
  23. try:
  24. from setuptools import setup, find_packages
  25. have_setuptools = True
  26. except ImportError:
  27. from distutils.core import setup
  28. def find_packages():
  29. return [
  30. 'pygments',
  31. 'pygments.lexers',
  32. 'pygments.formatters',
  33. 'pygments.styles',
  34. 'pygments.filters',
  35. ]
  36. have_setuptools = False
  37. try:
  38. from distutils.command.build_py import build_py_2to3 as build_py
  39. except ImportError:
  40. from distutils.command.build_py import build_py
  41. if have_setuptools:
  42. add_keywords = dict(
  43. entry_points = {
  44. 'console_scripts': ['pygmentize = pygments.cmdline:main'],
  45. },
  46. )
  47. else:
  48. add_keywords = dict(
  49. scripts = ['pygmentize'],
  50. )
  51. setup(
  52. name = 'Pygments',
  53. version = '1.6',
  54. url = 'http://pygments.org/',
  55. license = 'BSD License',
  56. author = 'Georg Brandl',
  57. author_email = 'georg@python.org',
  58. description = 'Pygments is a syntax highlighting package written in Python.',
  59. long_description = __doc__,
  60. keywords = 'syntax highlighting',
  61. packages = find_packages(),
  62. platforms = 'any',
  63. zip_safe = False,
  64. include_package_data = True,
  65. classifiers = [
  66. 'License :: OSI Approved :: BSD License',
  67. 'Intended Audience :: Developers',
  68. 'Intended Audience :: End Users/Desktop',
  69. 'Intended Audience :: System Administrators',
  70. 'Development Status :: 6 - Mature',
  71. 'Programming Language :: Python',
  72. 'Programming Language :: Python :: 2',
  73. 'Programming Language :: Python :: 3',
  74. 'Operating System :: OS Independent',
  75. 'Topic :: Text Processing :: Filters',
  76. 'Topic :: Utilities',
  77. ],
  78. cmdclass = {'build_py': build_py},
  79. **add_keywords
  80. )