Skip to content

chore: update code base for Python 3.13 ; add uv migration and make it compatible with pyodide 2024, used by Marimo#10

Merged
NRaillard merged 16 commits into
Resourcecode-project:mainfrom
logilab:update-dependancies
May 26, 2026
Merged

chore: update code base for Python 3.13 ; add uv migration and make it compatible with pyodide 2024, used by Marimo#10
NRaillard merged 16 commits into
Resourcecode-project:mainfrom
logilab:update-dependancies

Conversation

@chabotsi
Copy link
Copy Markdown
Contributor

Hello there,

This PR bundles a series of updates to modernize the codebase and improve compatibility:

Changes

Compatibility Updates

  • Removed numexpr dependency for full pyiodide compatibility
  • Updated np.trapz → np.trapezoid (numpy API change)
  • Migrated from scipy.stats.mvn to scipy.stats.multivariate_normal
  • Fixed crash in download_data with Python 3.14 and numpy/xarray when opening files
  • Updated dependency versions for marimo wasm compatibility

Bug Fixes

  • Fixed censgaussfit to handle positive semi-definite sigma matrices
  • Updated tests to check values instead of dtypes
  • Set fixed random seed for reproducible tests

Packaging & Tooling

  • Moved config.ini into the package for distribution
  • Migrated project to uv package manager
  • Updated version to 2.0.0

Code Quality

  • Applied black formatting

Testing

All tests pass with the updated dependencies and Python 3.13.

The chosen versions are compatible with Pyodide 2024, used by Marimo to make WASM applications.

@chabotsi chabotsi changed the title chore: update code base for Python 3.13 ; add uv migration and make it compatiblity with pyodide 2024, used by Marimo chore: update code base for Python 3.13 ; add uv migration and make it compatible with pyodide 2024, used by Marimo May 22, 2026
@NRaillard
Copy link
Copy Markdown
Contributor

Hi @chabotsi,
Thanks for this PR.
Would it be possible to update the CICD to use the latest versions of the actions and adapt to uv also the documentation?
Thanks,
Nicolas.

@chabotsi chabotsi force-pushed the update-dependancies branch from 5fd24e9 to d7febc4 Compare May 26, 2026 08:29
@chabotsi
Copy link
Copy Markdown
Contributor Author

Hi @chabotsi, Thanks for this PR. Would it be possible to update the CICD to use the latest versions of the actions and adapt to uv also the documentation? Thanks, Nicolas.

I updated the documentation.yml to use uv too.
I mentioned uv in the documentation, although it's not mandatory for final user to install resourcecode with uv (pip install resourcecode still works.)

@chabotsi chabotsi force-pushed the update-dependancies branch from d7febc4 to 0dbbe16 Compare May 26, 2026 08:36
@NRaillard NRaillard merged commit ea58957 into Resourcecode-project:main May 26, 2026
4 of 6 checks passed
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