Skip to content

Commit 161e2c2

Browse files
cleann, add detal to toml
1 parent 1d59a6e commit 161e2c2

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

pyproject.toml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=61", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling >= 1.26"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "python-project-template"
@@ -20,6 +20,9 @@ classifiers = [
2020
]
2121

2222

23+
[project.urls]
24+
Homepage = "https://github.com/andreascaglioni/python-project-template"
25+
2326
[tool.pytest.ini_options]
2427
testpaths = ["tests"]
2528
addopts = ["-q","--strict-markers", "--disable-warnings", "--cov=src", "--cov-report=term-missing", "--cov-fail-under=85"]
@@ -28,8 +31,7 @@ markers = [
2831
"slow: marks slow tests",
2932
]
3033

31-
32-
# --- Optional dependencies for development, docs, etc.
34+
# --- Optional dependencies for development. Run pip install -e ".[dev]"
3335
[project.optional-dependencies]
3436
dev = [
3537
"pytest",
@@ -40,7 +42,7 @@ dev = [
4042
"mypy",
4143
]
4244

43-
# list of pip-installable package names. Install running: pip install -e ".[docs]"
45+
# --- Optional dependencies for compiling the documentation. Run: pip install -e ".[docs]"
4446
docs = [
4547
"sphinx>=7.0", # provides sphinx.ext.* (autodoc, napoleon, autosummary, viewcode, ...)
4648
"pydata-sphinx-theme", # theme used in docs/conf.py (pydata_sphinx_theme)
@@ -49,12 +51,3 @@ docs = [
4951
"sphinx-copybutton", # provides extension `sphinx_copybutton`
5052
"sphinxcontrib-spelling", # spell-checking documentation
5153
]
52-
53-
54-
# --- SetUpTool options
55-
[tool.setuptools]
56-
package-dir = {"" = "src"}
57-
58-
[tool.setuptools.packages.find]
59-
where = ["src"]
60-
include = ["python_project_template*"]

0 commit comments

Comments
 (0)