Skip to content

Support pandas 2/3, modern websockets, and Python 3.12+ - #30

Merged
Gonza10V merged 1 commit into
flapjacksynbio:masterfrom
marpaia:master
Jul 14, 2026
Merged

Support pandas 2/3, modern websockets, and Python 3.12+#30
Gonza10V merged 1 commit into
flapjacksynbio:masterfrom
marpaia:master

Conversation

@marpaia

@marpaia marpaia commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Relax the dependency pins that blocked running alongside a pandas-2 stack (pandas>=2.0, numpy>=1.26, scipy>=1.11, websockets>=12), and widen requires-python to >=3.9. Drop the redundant asyncio backport pin, which does not install on modern Python.

Both PRs for this repo (#25 and #27) won't be necessary if we only pin major and minor versions (see here for more info on semantic versioning).

Relax the dependency pins that blocked running alongside a pandas-2
stack (loica): pandas>=2.0, numpy>=1.26, scipy>=1.11, websockets>=12,
and widen requires-python to >=3.9. Drop the redundant asyncio backport
pin, which does not install on modern Python.

Fix the pandas-2 breakages this surfaces in the client:
- _analysis concatenates result chunks with pd.concat (DataFrame.append
  was removed in pandas 2).
- _measurements and _analysis wrap raw JSON in io.StringIO before
  pd.read_json, which otherwise treats the string as a file path.

Pass an int max_size to websockets.connect; a float tripped the
permessage-deflate decompressor on compressed frames.
@Gonza10V
Gonza10V merged commit 510adfa into flapjacksynbio:master Jul 14, 2026
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