Skip to content

Commit 71e5327

Browse files
committed
Drop support for python 3.8
1 parent a277323 commit 71e5327

File tree

3 files changed

+29
-45
lines changed

3 files changed

+29
-45
lines changed

.github/workflows/pytest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
16+
python-version: ["3.12", "3.11", "3.10", "3.9", "3.9"]
1717
os: [ubuntu-latest, windows-latest, macOS-latest]
1818
fail-fast: false
1919
defaults:

htmltools/_core.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,7 @@ def _repr_html_(self) -> str: ...
254254
# =============================================================================
255255
# TagList class
256256
# =============================================================================
257-
if sys.version_info > (3, 8):
258-
_TagListParentClass = UserList[TagNode]
259-
else:
260-
# In Python 3.8 and earlier, `UserList` does not like to be subclassed
261-
_TagListParentClass = UserList
262-
263-
264-
class TagList(_TagListParentClass):
257+
class TagList(UserList[TagNode]):
265258
"""
266259
Create an HTML tag list (i.e., a fragment of HTML)
267260

pyproject.toml

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,47 @@
11
[build-system]
2-
requires = [
3-
"setuptools",
4-
"wheel"
5-
]
2+
requires = ["setuptools", "wheel"]
63
build-backend = "setuptools.build_meta"
74

85
[project]
96
name = "htmltools"
107
dynamic = ["version"]
11-
authors = [{name = "Carson Sievert", email = "[email protected]"}]
8+
authors = [{ name = "Carson Sievert", email = "[email protected]" }]
129
description = "Tools for HTML generation and output."
1310
readme = "README.md"
14-
license = {file = "LICENSE"}
11+
license = { file = "LICENSE" }
1512
keywords = ["html"]
1613
classifiers = [
17-
"Development Status :: 5 - Production/Stable",
18-
"Intended Audience :: Developers",
19-
"License :: OSI Approved :: MIT License",
20-
"Programming Language :: Python",
21-
"Programming Language :: Python :: 3.8",
22-
"Programming Language :: Python :: 3.9",
23-
"Programming Language :: Python :: 3.10",
24-
"Programming Language :: Python :: 3.11",
25-
"Programming Language :: Python :: Implementation :: PyPy",
26-
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
27-
"Topic :: Software Development :: Libraries :: Python Modules",
28-
"Topic :: Text Processing :: Markup :: HTML"
29-
]
30-
dependencies = [
31-
"typing-extensions>=3.10.0.0",
32-
"packaging>=20.9",
14+
"Development Status :: 5 - Production/Stable",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: MIT License",
17+
"Programming Language :: Python",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: Implementation :: PyPy",
23+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
24+
"Topic :: Software Development :: Libraries :: Python Modules",
25+
"Topic :: Text Processing :: Markup :: HTML",
3326
]
34-
requires-python = ">=3.8"
27+
dependencies = ["typing-extensions>=3.10.0.0", "packaging>=20.9"]
28+
requires-python = ">=3.9"
3529

3630
[project.urls]
3731
"Bug Tracker" = "https://github.com/rstudio/py-htmltools/issues"
3832
Source = "https://github.com/rstudio/py-htmltools"
3933

4034
[project.optional-dependencies]
41-
test = [
42-
"pytest>=6.2.4",
43-
"syrupy>=4.6.0"
44-
]
35+
test = ["pytest>=6.2.4", "syrupy>=4.6.0"]
4536
dev = [
46-
"black>=24.2.0",
47-
"flake8>=6.0.0",
48-
"Flake8-pyproject",
49-
"isort>=5.11.2",
50-
"pyright>=1.1.348",
51-
"pre-commit>=2.15.0",
52-
"wheel",
53-
"build"
37+
"black>=24.2.0",
38+
"flake8>=6.0.0",
39+
"Flake8-pyproject",
40+
"isort>=5.11.2",
41+
"pyright>=1.1.348",
42+
"pre-commit>=2.15.0",
43+
"wheel",
44+
"build",
5445
]
5546

5647
[tool.setuptools]
@@ -59,7 +50,7 @@ include-package-data = true
5950
zip-safe = false
6051

6152
[tool.setuptools.dynamic]
62-
version = {attr = "htmltools.__version__"}
53+
version = { attr = "htmltools.__version__" }
6354

6455
[tool.setuptools.package-data]
6556
htmltools = ["py.typed"]

0 commit comments

Comments
 (0)