diff --git a/.readthedocs.yml b/.readthedocs.yml index 57476c1e3..974326d6f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,7 +8,7 @@ version: 2 build: os: ubuntu-24.04 tools: - python: "3.13" + python: "3.14" commands: - asdf plugin add uv - asdf install uv latest diff --git a/docs/conf.py b/docs/conf.py index 9419c4114..34a1f4c59 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,7 +21,6 @@ "sphinx.ext.doctest", "sphinx.ext.extlinks", "sphinx.ext.intersphinx", - "sphinx_toolbox.more_autodoc.autotypeddict", ] # General information about the project. diff --git a/docs/metadata.rst b/docs/metadata.rst index 7acaa81f9..5fc2f6b4d 100644 --- a/docs/metadata.rst +++ b/docs/metadata.rst @@ -47,6 +47,7 @@ Low Level Interface .. autoclass:: packaging.metadata.RawMetadata :members: + :undoc-members: .. autofunction:: packaging.metadata.parse_email diff --git a/pyproject.toml b/pyproject.toml index 8a396d3aa..580d3ddd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,6 @@ test = [ ] docs = [ "furo", - "sphinx-toolbox", "typing-extensions>=4.1.0; python_version < '3.9'", ] benchmark = [ @@ -62,7 +61,14 @@ dev = [ [tool.flit.sdist] include = ["tests/", "docs/", "CHANGELOG.rst"] -exclude = ["docs/_build", "tests/manylinux/build-hello-world.sh", "tests/musllinux/build.sh", "tests/hello-world.c", "tests/__pycache__", "build/__pycache__"] +exclude = [ + "docs/_build", + "tests/manylinux/build-hello-world.sh", + "tests/musllinux/build.sh", + "tests/hello-world.c", + "tests/__pycache__", + "build/__pycache__", +] [tool.typos.default.extend-identifiers] iMatix = "iMatix" @@ -82,7 +88,13 @@ source_pkgs = ["packaging"] [tool.coverage.report] show_missing = true fail_under = 100 -exclude_also = ["@(abc.)?abstractmethod", "@(abc.)?abstractproperty", "if (typing.)?TYPE_CHECKING:", "@(typing.)?overload", "def __dir__()"] +exclude_also = [ + "@(abc.)?abstractmethod", + "@(abc.)?abstractproperty", + "if (typing.)?TYPE_CHECKING:", + "@(typing.)?overload", + "def __dir__()", +] [tool.pytest.ini_options] minversion = "6.2" diff --git a/src/packaging/markers.py b/src/packaging/markers.py index 7e178858a..e1007aea8 100644 --- a/src/packaging/markers.py +++ b/src/packaging/markers.py @@ -75,7 +75,7 @@ class UndefinedEnvironmentName(ValueError): class Environment(TypedDict): """ A dictionary that represents a Python environment as captured by - :func:`default_environment`. + :func:`default_environment`. All fields are required. """ implementation_name: str diff --git a/src/packaging/metadata.py b/src/packaging/metadata.py index 967a932f9..b3269a45e 100644 --- a/src/packaging/metadata.py +++ b/src/packaging/metadata.py @@ -67,8 +67,8 @@ class RawMetadata(TypedDict, total=False): Core metadata fields that can be specified multiple times are stored as a list or dict depending on which is appropriate for the field. Any fields - which hold multiple values in a single field are stored as a list. - + which hold multiple values in a single field are stored as a list. All fields + are considered optional. """ # Metadata 1.0 - PEP 241