Skip to content

Conversation

@claui
Copy link
Contributor

@claui claui commented Feb 11, 2025

The Sphinx extension sphinx-autodoc-typehints requires Python 3.10 or newer. This breaks pip install -e .[dev] when on Python 3.9.

It makes sense to keep supporting local Python 3.9 installs, because that’s the minimum Python version that dataclass_wizard supports.
Contributors may prefer installing that minimum Python version on their local dev environment, because it helps them avoid language elements and batteries that Python 3.9 doesn’t support.

This PR adds a condition to both docs/requirements.txt and docs/conf.py to unblock pip install -e .[dev].

Note that CI never caught this issue, because setup.py conditionally ignores extra dependencies when on CI.

The Sphinx extension `sphinx-autodoc-typehints` requires Python 3.10 or
newer. This breaks `pip install -e .[dev]` when on Python 3.9.

It makes sense to keep supporting local Python 3.9 installs, because
that’s the minimum Python version that dataclass_wizard supports.
Contributors may prefer installing that minimum Python version on their
local dev environment, because it helps them avoid language elements and
batteries that Python 3.9 doesn’t support.

Add a condition in both `docs/requirements.txt` and `docs/conf.py` to
unblock `pip install -e .[dev]`.

Note that CI never caught this issue, because `setup.py` conditionally
ignores extra dependencies when on CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant