Skip to content

start droping 3.11#15121

Merged
Carreau merged 16 commits intoipython:mainfrom
Carreau:drop-311
Feb 11, 2026
Merged

start droping 3.11#15121
Carreau merged 16 commits intoipython:mainfrom
Carreau:drop-311

Conversation

@Carreau
Copy link
Copy Markdown
Member

@Carreau Carreau commented Feb 2, 2026

No description provided.

@Carreau
Copy link
Copy Markdown
Member Author

Carreau commented Feb 4, 2026

One more try

Comment thread tests/test_zzz_autoreload.py Outdated
self.shell.run_code("assert number == 1")
if sys.version_info < (3, 12):
self.shell.run_code("assert TestEnum.B.value == 'added'")
self.shell.run_code("assert TestEnum.B.value == 'added'")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.shell.run_code("assert TestEnum.B.value == 'added'")

@Carreau Carreau merged commit 2f9aa10 into ipython:main Feb 11, 2026
19 of 20 checks passed
@Carreau Carreau added this to the 9.10 milestone Feb 18, 2026
@Carreau Carreau modified the milestones: 9.10, 9.11 Mar 4, 2026
@ulgens
Copy link
Copy Markdown

ulgens commented Mar 13, 2026

Hey, looking at this PR as an outsider, I couldn't find any related discussion / reasoning. Is there a policy about Python support, or a discussion about this specific change I could check?

@Carreau
Copy link
Copy Markdown
Member Author

Carreau commented Mar 16, 2026

Yes, the README should say we (or mostly I as I'm one of the rare maintainer still active) are trying to follow SPEC0.

Carreau pushed a commit that referenced this pull request Mar 30, 2026
Reverts the Python 3.11 drop from PR #15121. This restores:

- requires-python >= 3.11 in pyproject.toml
- typing_extensions conditional dependency for Python < 3.12
- Conditional imports for TypedDict, Protocol, TypeAliasType from
  typing_extensions on Python < 3.12
- The find_pre_312 tokenizer path in inputtransformer2.py for
  system assignments (a = !foo) where ! is ERRORTOKEN on 3.11
- Version-gated sys.last_exc usage (added in Python 3.12)
- Python 3.11 in CI test matrix and oldest-deps job
- Version check in setup.py and IPython/__init__.py
- Enum autoreload test for Python < 3.12

https://claude.ai/code/session_01JwJQgDRfX7EZkJuKoksUJY
Carreau pushed a commit that referenced this pull request Apr 2, 2026
Reverts the Python 3.11 drop from PR #15121. This restores:

- requires-python >= 3.11 in pyproject.toml
- typing_extensions conditional dependency for Python < 3.12
- Conditional imports for TypedDict, Protocol, TypeAliasType from
  typing_extensions on Python < 3.12
- The find_pre_312 tokenizer path in inputtransformer2.py for
  system assignments (a = !foo) where ! is ERRORTOKEN on 3.11
- Version-gated sys.last_exc usage (added in Python 3.12)
- Python 3.11 in CI test matrix and oldest-deps job
- Version check in setup.py and IPython/__init__.py
- Enum autoreload test for Python < 3.12

Add tip about D.E. Shaw funding Python 3.11 support

On Python < 3.12, include a random tip noting that IPython support
for Python versions outside of SPEC-0 is funded by D.E. Shaw.

Partial revert of #15121
Carreau added a commit that referenced this pull request Apr 2, 2026
Reverts the Python 3.11 drop from PR #15121. This restores:

- requires-python >= 3.11 in pyproject.toml
- typing_extensions conditional dependency for Python < 3.12
- Conditional imports for TypedDict, Protocol, TypeAliasType from
  typing_extensions on Python < 3.12
- The find_pre_312 tokenizer path in inputtransformer2.py for
  system assignments (a = !foo) where ! is ERRORTOKEN on 3.11
- Version-gated sys.last_exc usage (added in Python 3.12)
- Python 3.11 in CI test matrix and oldest-deps job
- Version check in setup.py and IPython/__init__.py
- Enum autoreload test for Python < 3.12

Add tip about D.E. Shaw funding Python 3.11 support

On Python < 3.12, include a random tip noting that IPython support
for Python versions outside of SPEC-0 is funded by D.E. Shaw.

Partial revert of #15121
Carreau added a commit to Carreau/ipython that referenced this pull request Apr 3, 2026
Reverts the Python 3.11 drop from PR ipython#15121. This restores:

- requires-python >= 3.11 in pyproject.toml
- typing_extensions conditional dependency for Python < 3.12
- Conditional imports for TypedDict, Protocol, TypeAliasType from
  typing_extensions on Python < 3.12
- The find_pre_312 tokenizer path in inputtransformer2.py for
  system assignments (a = !foo) where ! is ERRORTOKEN on 3.11
- Version-gated sys.last_exc usage (added in Python 3.12)
- Python 3.11 in CI test matrix and oldest-deps job
- Version check in setup.py and IPython/__init__.py
- Enum autoreload test for Python < 3.12

Add tip about D.E. Shaw funding Python 3.11 support

On Python < 3.12, include a random tip noting that IPython support
for Python versions outside of SPEC-0 is funded by D.E. Shaw.

Partial revert of ipython#15121
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.

2 participants