Skip to content

Comments

New package ipython#4452

Merged
hoodmane merged 13 commits intopyodide:mainfrom
passagemath:ipython
Feb 26, 2024
Merged

New package ipython#4452
hoodmane merged 13 commits intopyodide:mainfrom
passagemath:ipython

Conversation

@mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Jan 30, 2024

Description

The Sage library uses IPython.lib.pretty
Patches for making at least import IPython work on Pyodide have been upstreamed in 8.22, https://ipython.readthedocs.io/en/stable/whatsnew/version8.html

The other added packages are dependencies of IPython.

Checklists

Carreau added a commit to ipython/ipython that referenced this pull request Jan 31, 2024
…4312)

Delaying the import of `pexpect` to the first use.

This is needed to make `import IPython` work on Pyodide; see
pyodide/pyodide#4452
@hoodmane
Copy link
Member

No action needed on this PR:

conftest.py:96: error: Module has no attribute "pyodide_runtimes"  [attr-defined]
conftest.py:143: error: Module has no attribute "pyodide_dist_dir"  [attr-defined]
conftest.py:259: error: Module has no attribute "pyodide_dist_dir"  [attr-defined]
packages/aiohttp/test_aiohttp.py:27: error: Module has no attribute "pyodide_dist_dir"  [attr-defined]

mypy can't make up its mind whether these are errors or not. It seems to keep going back and forward between failing with a request for # type:ignores on these lines and failing saying that the added type ignore is not needed. Any ideas on how to prevent problems like this @henryiii?

Copy link
Member

@hoodmane hoodmane left a comment

Choose a reason for hiding this comment

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

Generally LGTM, please address my minor comments. It also needs a changelog entry. Thanks again @mkoeppe!

@mkoeppe mkoeppe force-pushed the ipython branch 2 times, most recently from 0732504 to 4823aa5 Compare February 1, 2024 22:03
mkoeppe added a commit to passagemath/downstream-pyodide that referenced this pull request Feb 1, 2024
@hoodmane
Copy link
Member

hoodmane commented Feb 2, 2024

Seems like it failed to apply the IPython patch.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Feb 2, 2024

Yes, sorry, I need to backport it

@mkoeppe mkoeppe marked this pull request as ready for review February 25, 2024 08:35
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Feb 26, 2024

@hoodmane No more patches, and tests pass

@hoodmane
Copy link
Member

Thanks!

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