Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move metadata to pyproject.toml #2342

Merged
merged 3 commits into from Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion description.rst
Expand Up @@ -15,4 +15,4 @@ are:
* it is usable as a command-line tool and as a library

Copyright 2006-2022 by the Pygments team, see ``AUTHORS``.
Licensed under the BSD, see ``LICENSE`` for details.
Licensed under the BSD, see ``LICENSE`` for details.
62 changes: 58 additions & 4 deletions pyproject.toml
@@ -1,6 +1,60 @@
[build-system]
requires = [
"setuptools >= 40.9.0",
"wheel",
# setuptools added pyproject.toml support in v61.0.0
requires = ["setuptools >= 61"]
build-backend = "setuptools.build_meta"

[project]
name = "Pygments"
dynamic = ["version"]
requires-python = ">=3.7"
license = {text = "BSD-2-Clause"}
authors = [
{name = "Georg Brandl", email = "georg@python.org"}
]
build-backend = "setuptools.build_meta:__legacy__"
maintainers = [
{name = "Georg Brandl", email = "georg@python.org"},
{name = "Matthäus G. Chajdas"},
{name = "Jean Abou Samra", email = "jean@abou-samra.fr"},
]
description = "Pygments is a syntax highlighting package written in Python."
# For PyPI, use a shorter description than README.rst.
readme = {file = "description.rst", content-type = "text/x-rst"}
keywords = ["syntax highlighting"]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Text Processing :: Filters",
"Topic :: Utilities",
]

[project.optional-dependencies]
plugins = ["importlib-metadata;python_version<'3.8'"]

[project.urls]
Homepage = "https://pygments.org"
Documentation = "https://pygments.org/docs"
Source = "https://github.com/pygments/pygments"
"Bug Tracker" = "https://github.com/pygments/pygments/issues"
Changelog = "https://github.com/pygments/pygments/blob/master/CHANGES"

[project.scripts]
pygmentize = "pygments.cmdline:main"

[tool.setuptools.dynamic]
version = {attr = "pygments.__version__" }

[tool.setuptools.packages.find]
include = ["pygments", "pygments.*"]
2 changes: 1 addition & 1 deletion scripts/release-checklist
Expand Up @@ -6,7 +6,7 @@ Release checklist
* LATER when configured properly: ``make pylint``
* ``tox``
* Update version in ``pygments/__init__.py``
* Check setup.py metadata: long description, trove classifiers
* Check pyproject.toml metadata: long description, trove classifiers
* Update release date/code name in ``CHANGES``
* ``git commit``
* Wait for the CI to finish
Expand Down
54 changes: 0 additions & 54 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.