diff --git a/pyproject.toml b/pyproject.toml index 40e2f90..ddacbac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,9 @@ version = {attr = "mistune.__version__"} [tool.setuptools.packages.find] where = ["src"] +[tool.setuptools.package-data] +mistune = ["py.typed"] + [tool.pytest.ini_options] pythonpath = ["src", "."] testpaths = ["tests"] diff --git a/setup.py b/setup.py index 61e5973..af8a0fc 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,3 @@ from setuptools import setup -# Metadata goes in setup.cfg. These are here for GitHub's dependency graph. - -setup( - name="mistune", - package_data={"mistune": ["py.typed", ]} -) +setup(name="mistune")