| 1 |
[build-system] |
| 2 |
requires = ["hatchling>=1.27"] |
| 3 |
build-backend = "hatchling.build" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "Pygments" |
| 7 |
dynamic = ["version"] |
| 8 |
requires-python = ">=3.9" |
| 9 |
license = "BSD-2-Clause" |
| 10 |
license-files = ["AUTHORS", "LICENSE"] |
| 11 |
authors = [ |
| 12 |
{name = "Georg Brandl", email = "[email protected]"} |
| 13 |
] |
| 14 |
maintainers = [ |
| 15 |
{name = "Georg Brandl", email = "[email protected]"}, |
| 16 |
{name = "Matthäus G. Chajdas"}, |
| 17 |
{name = "Jean Abou Samra", email = "[email protected]"}, |
| 18 |
] |
| 19 |
description = "Pygments is a syntax highlighting package written in Python." |
| 20 |
# For PyPI, use a shorter description than README.rst. |
| 21 |
readme = {file = "description.rst", content-type = "text/x-rst"} |
| 22 |
keywords = ["syntax highlighting"] |
| 23 |
classifiers = [ |
| 24 |
"Development Status :: 6 - Mature", |
| 25 |
"Intended Audience :: Developers", |
| 26 |
"Intended Audience :: End Users/Desktop", |
| 27 |
"Intended Audience :: System Administrators", |
| 28 |
"Operating System :: OS Independent", |
| 29 |
"Programming Language :: Python", |
| 30 |
"Programming Language :: Python :: 3", |
| 31 |
"Programming Language :: Python :: 3.9", |
| 32 |
"Programming Language :: Python :: 3.10", |
| 33 |
"Programming Language :: Python :: 3.11", |
| 34 |
"Programming Language :: Python :: 3.12", |
| 35 |
"Programming Language :: Python :: 3.13", |
| 36 |
"Programming Language :: Python :: 3.14", |
| 37 |
"Programming Language :: Python :: Implementation :: CPython", |
| 38 |
"Programming Language :: Python :: Implementation :: PyPy", |
| 39 |
"Topic :: Text Processing :: Filters", |
| 40 |
"Topic :: Utilities", |
| 41 |
] |
| 42 |
|
| 43 |
[project.optional-dependencies] |
| 44 |
plugins = [] # kept for backwards compatibility |
| 45 |
windows-terminal = ["colorama >= 0.4.6"] |
| 46 |
|
| 47 |
[project.urls] |
| 48 |
Homepage = "https://pygments.org" |
| 49 |
Documentation = "https://pygments.org/docs" |
| 50 |
Source = "https://github.com/pygments/pygments" |
| 51 |
"Bug Tracker" = "https://github.com/pygments/pygments/issues" |
| 52 |
Changelog = "https://github.com/pygments/pygments/blob/master/CHANGES" |
| 53 |
|
| 54 |
[project.scripts] |
| 55 |
pygmentize = "pygments.cmdline:main" |
| 56 |
|
| 57 |
# Temporary workaround for https://github.com/pypa/hatch/issues/1054 |
| 58 |
[tool.hatch.build.targets.wheel] |
| 59 |
packages = ["pygments"] |
| 60 |
|
| 61 |
[tool.hatch.version] |
| 62 |
path = "pygments/__init__.py" |
| 63 |
|
| 64 |
[tool.ruff] |
| 65 |
target-version = "py39" |
| 66 |
lint.extend-select = [ |
| 67 |
"UP", # "pyupgrade" |
| 68 |
] |
| 69 |
extend-exclude = [ |
| 70 |
# These Python tests are purposefully invalid. |
| 71 |
"tests/snippets", |
| 72 |
"tests/examplefiles", |
| 73 |
] |