Skip to content

Commit 60b35e7

Browse files
committed
Add a pyproject.toml file for modern installers.
1 parent 19a80a1 commit 60b35e7

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

AUTHORS.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ Patches and suggestions
6464
- Hugo van Kemenade
6565
- Mark Vasilkov
6666

67+
68+
HTML5Lib-modern
69+
---------------
70+
71+
- Ashley Sommer

pyproject.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "html5lib-modern"
7+
authors = [
8+
# HTML5Lib-modern author:
9+
{name = "Ashley Sommer", email = "[email protected]"},
10+
# Original HTML5Lib author:
11+
{name = "James Graham", email = "[email protected]"},
12+
]
13+
description = "HTML parser based on the WHATWG HTML specification"
14+
requires-python = ">=3.8"
15+
license = {file = "LICENSE"}
16+
classifiers = [
17+
'Development Status :: 5 - Production/Stable',
18+
'Intended Audience :: Developers',
19+
'License :: OSI Approved :: MIT License',
20+
'Operating System :: OS Independent',
21+
'Programming Language :: Python',
22+
'Programming Language :: Python :: 3',
23+
'Programming Language :: Python :: 3.8',
24+
'Programming Language :: Python :: 3.9',
25+
'Programming Language :: Python :: 3.10',
26+
'Programming Language :: Python :: 3.11',
27+
'Programming Language :: Python :: Implementation :: CPython',
28+
'Programming Language :: Python :: Implementation :: PyPy',
29+
'Topic :: Software Development :: Libraries :: Python Modules',
30+
'Topic :: Text Processing :: Markup :: HTML'
31+
]
32+
dependencies = []
33+
dynamic = ["version", "readme"]
34+
35+
[tool.setuptools.dynamic]
36+
version = {attr = "html5lib.__version__"} # any module attribute compatible with ast.literal_eval
37+
readme = {file = ["README.rst", "AUTHORS.rst"]}
38+
39+
[tool.setuptools.packages.find]
40+
where = ["."] # list of folders that contain the packages (["."] by default)
41+
include = ["html5lib*"] # package names should match these glob patterns (["*"] by default)
42+
exclude = ["html5lib.tests*"] # exclude packages matching these glob patterns (empty by default)
43+
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def default_environment():
6262
'License :: OSI Approved :: MIT License',
6363
'Operating System :: OS Independent',
6464
'Programming Language :: Python',
65-
'Programming Language :: Python :: 2',
6665
'Programming Language :: Python :: 3',
6766
'Programming Language :: Python :: 3.8',
6867
'Programming Language :: Python :: 3.9',

0 commit comments

Comments
 (0)