diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2021-01-17 03:49:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 12:49:44 +0100 |
commit | 7f48240569973617d7c7e8ece12087eb6149ad23 (patch) | |
tree | fdc0dcb8fffe5b3e52bf3378b7a053466a81b5f2 /setup.py | |
parent | 6e64b3963aaa5c5f9600e12fe4ba5545494d38c7 (diff) | |
download | pygments-git-7f48240569973617d7c7e8ece12087eb6149ad23.tar.gz |
Move setup.py to a declarative setup.cfg (#1621)
Docs: https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
Removes mixing code with configuration. No need to execute custom code
at the build step. The declarative configuration is also more friendly
to scripting.
Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 65 |
1 files changed, 2 insertions, 63 deletions
@@ -1,65 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- -""" -Pygments -~~~~~~~~ +from setuptools import setup -Pygments is a syntax highlighting package written in Python. - -It is a generic syntax highlighter suitable for use in code hosting, forums, -wikis or other applications that need to prettify source code. Highlights -are: - -* a wide range of over 500 languages and other text formats is supported -* special attention is paid to details, increasing quality by a fair amount -* support for new languages and formats are added easily -* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image \ - formats that PIL supports and ANSI sequences -* it is usable as a command-line tool and as a library - -:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. -:license: BSD, see LICENSE for details. -""" - -from setuptools import setup, find_packages - -from pygments import __version__ - -setup( - name = 'Pygments', - version = __version__, - url = 'https://pygments.org/', - license = 'BSD License', - author = 'Georg Brandl', - author_email = 'georg@python.org', - description = 'Pygments is a syntax highlighting package written in Python.', - long_description = __doc__, - keywords = 'syntax highlighting', - packages = find_packages(include=['pygments', 'pygments.*']), - entry_points = { - 'console_scripts': ['pygmentize = pygments.cmdline:main'], - }, - platforms = 'any', - zip_safe = False, - include_package_data = True, - python_requires='>=3.5', - classifiers = [ - 'License :: OSI Approved :: BSD License', - 'Intended Audience :: Developers', - 'Intended Audience :: End Users/Desktop', - 'Intended Audience :: System Administrators', - 'Development Status :: 6 - Mature', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', - 'Operating System :: OS Independent', - 'Topic :: Text Processing :: Filters', - 'Topic :: Utilities', - ], -) +setup() |