Skip to content

Commit 1948f3f

Browse files
Redo pyproject.toml to use v2 syntax
1 parent e8d3e8a commit 1948f3f

File tree

2 files changed

+35
-36
lines changed

2 files changed

+35
-36
lines changed

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
[tool.poetry]
1+
[project]
22
name = "pyhtml-enhanced"
33
version = "2.2.0"
44
description = "A library for building HTML documents with a simple and learnable syntax"
5-
authors = ["Maddy Guthridge <[email protected]>"]
6-
license = "MIT"
75
readme = "README.md"
8-
packages = [{ include = "pyhtml" }]
9-
10-
repository = "https://github.com/COMP1010UNSW/pyhtml-enhanced"
11-
documentation = "https://comp1010unsw.github.io/pyhtml-enhanced/"
6+
license = "MIT"
7+
authors = [{ name = "Maddy Guthridge", email = "[email protected]" }]
128

139
keywords = ['html', 'template', 'pyhtml', 'markup', 'documentation']
14-
1510
classifiers = [
1611
"Programming Language :: Python :: 3",
1712
"Intended Audience :: Developers",
@@ -23,11 +18,39 @@ classifiers = [
2318
"Typing :: Typed",
2419
]
2520

26-
include = ["py.typed"]
21+
requires-python = ">=3.10"
2722

28-
[tool.poetry.urls]
23+
[project.urls]
24+
homepage = "https://comp1010unsw.github.io/pyhtml-enhanced/"
25+
repository = "https://github.com/COMP1010UNSW/pyhtml-enhanced"
26+
documentation = "https://comp1010unsw.github.io/pyhtml-enhanced/"
2927
"Bug Tracker" = "https://github.com/COMP1010UNSW/pyhtml-enhanced/issues"
3028

29+
[tool.poetry]
30+
include = ["py.typed"]
31+
packages = [{ include = "pyhtml" }]
32+
33+
[tool.poetry.group.dev.dependencies]
34+
pytest = ">=7.4.2,<9.0.0"
35+
mypy = "^1.5.1"
36+
autopep8 = "^2.0.4"
37+
coverage = "^7.3.1"
38+
requests = "^2.31.0"
39+
types-requests = "^2.31.0.2"
40+
pyyaml = "^6.0.1"
41+
types-pyyaml = "^6.0.12.11"
42+
flask = "^3.0.0"
43+
pytest-mypy-plugins = "^3.0.0"
44+
ruff = "^0.9.4"
45+
46+
47+
[tool.poetry.group.docs.dependencies]
48+
mkdocs = "^1.6.1"
49+
mkdocs-material = "^9.5.34"
50+
mkdocstrings = { version = ">=0.26,<0.28", extras = ["python"] }
51+
mkdocs-awesome-pages-plugin = "^2.9.3"
52+
mkdocs-section-index = "^0.3.9"
53+
3154
[tool.mypy]
3255
check_untyped_defs = true
3356
files = ["pyhtml", "tests", "meta"]
@@ -78,30 +101,6 @@ exclude_also = [
78101
'raise NotImplementedError',
79102
]
80103

81-
[tool.poetry.dependencies]
82-
python = "^3.10"
83-
84-
[tool.poetry.group.dev.dependencies]
85-
pytest = ">=7.4.2,<9.0.0"
86-
mypy = "^1.5.1"
87-
autopep8 = "^2.0.4"
88-
coverage = "^7.3.1"
89-
requests = "^2.31.0"
90-
types-requests = "^2.31.0.2"
91-
pyyaml = "^6.0.1"
92-
types-pyyaml = "^6.0.12.11"
93-
flask = "^3.0.0"
94-
pytest-mypy-plugins = "^3.0.0"
95-
ruff = "^0.9.4"
96-
97-
98-
[tool.poetry.group.docs.dependencies]
99-
mkdocs = "^1.6.1"
100-
mkdocs-material = "^9.5.34"
101-
mkdocstrings = { version = ">=0.26,<0.28", extras = ["python"] }
102-
mkdocs-awesome-pages-plugin = "^2.9.3"
103-
mkdocs-section-index = "^0.3.9"
104-
105104
[build-system]
106105
requires = ["poetry-core"]
107106
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)