Skip to content

Commit 25d13ed

Browse files
authored
Remove badges from PyPI readme (#30)
1 parent a474447 commit 25d13ed

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pyproject.toml

+8-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ authors = [
55
{ name = "Frankie Robertson", email = "[email protected]" },
66
{ name = "Philipp Angerer", email = "[email protected]" }
77
]
8-
readme = "README.rst"
98
license = "BSD-3-Clause"
109
urls.Source = "https://github.com/scikit-learn-contrib/sklearn-ann"
1110
urls.Documentation = "https://sklearn-ann.readthedocs.io/"
12-
dynamic = ["version"]
11+
dynamic = ["version", "readme"]
1312
requires-python = "<3.13,>=3.9" # enforced by scipy
1413
dependencies = [
1514
"scikit-learn>=0.24.0",
@@ -49,6 +48,12 @@ annlibs = [
4948
[tool.hatch.version]
5049
source = "vcs"
5150

51+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
52+
content-type = "text/x-rst"
53+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
54+
path = "README.rst"
55+
start-after = ".. inclusion-marker-do-not-remove\n\n"
56+
5257
[tool.pytest.ini_options]
5358
addopts = [
5459
"--import-mode=importlib",
@@ -94,5 +99,5 @@ build-docs = "sphinx-build -M html docs docs/_build"
9499
packages = ["src/sklearn_ann"]
95100

96101
[build-system]
97-
requires = ["hatchling", "hatch-vcs"]
102+
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
98103
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)