Skip to content

Fix pip install -e .[dev] on Python 3.9 #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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