diff --git a/pyproject.toml b/pyproject.toml index aa995cf147d..d10ac58c95c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,6 +82,29 @@ sphinx-autogen = "sphinx.ext.autosummary.generate:main" requires = ["flit_core >=3.9,<4"] build-backend = "flit_core.buildapi" +[tool.flit.module] +name = "sphinx" + +[tool.flit.sdist] +include = [ + "LICENSE.rst", + "AUTHORS.rst", + "CHANGES.rst", + # Documentation + "doc/", + "CODE_OF_CONDUCT.rst", # used as an include in the Documentation + "EXAMPLES.rst", # used as an include in the Documentation + # Tests + "tests/", + "tox.ini", + # Utilities + "utils/", + "babel.cfg", +] +exclude = [ + "doc/_build", +] + [tool.uv] dev-dependencies = [ # docs diff --git a/uv.lock b/uv.lock index 829815ebf4e..976823a9f44 100644 --- a/uv.lock +++ b/uv.lock @@ -482,7 +482,7 @@ wheels = [ [[package]] name = "sphinx" -version = "0.0.0" +version = "8.1.0" source = { editable = "." } dependencies = [ { name = "alabaster" }, @@ -530,7 +530,7 @@ requires-dist = [ { name = "alabaster", specifier = ">=0.7.14" }, { name = "babel", specifier = ">=2.13" }, { name = "colorama", marker = "sys_platform == 'win32'", specifier = ">=0.4.6" }, - { name = "docutils", specifier = "<0.22,>=0.20" }, + { name = "docutils", specifier = ">=0.20,<0.22" }, { name = "imagesize", specifier = ">=1.3" }, { name = "jinja2", specifier = ">=3.1" }, { name = "packaging", specifier = ">=23.0" },