Skip to content

Add segno package recipe and runtime tests#557

Open
anxkhn wants to merge 1 commit intopyodide:mainfrom
anxkhn:add-segno-package
Open

Add segno package recipe and runtime tests#557
anxkhn wants to merge 1 commit intopyodide:mainfrom
anxkhn:add-segno-package

Conversation

@anxkhn
Copy link
Copy Markdown

@anxkhn anxkhn commented Apr 4, 2026

Summary

  • add a new segno recipe (1.6.6) as a pure Python wheel
  • set package metadata (home, PyPI, summary, license, maintainer)
  • add import smoke test in recipe metadata
  • add package runtime tests in packages/segno/test_segno.py

Why

segno is a useful QR Code and Micro QR Code generator that fits Pyodide packaging well:

  • pure Python distribution
  • no native extension dependency chain
  • useful for browser-only workflows and demos

Testing

Built recipe locally:

  • pyodide build-recipes segno --install --log-dir build-logs

Prepared runtime:

  • ./tools/copy_pyodide_runtime.sh ./dist

Ran package tests:

  • pytest -v --dist-dir=./dist --runner=selenium --rt chrome packages/segno/test_segno.py

Result:

  • 2 passed

Closes #556

Add a new segno package recipe in pyodide-recipes and include browser runtime tests for QR generation, micro QR detection, structured append, and serialization.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2026

Package Build Results

Total packages built: 24
Total build time: 0:05:17

Package Build Times (click to expand)
Package Build Time
libopenblas 4m 49s
libf2c 28s
cffi 12s
regex 9s
MarkupSafe 4s
atomicwrites 3s
pycparser 3s
pydoc_data 3s
py 1s
pytest-asyncio 1s
segno 1s
Jinja2 1s
pytest 1s
more-itertools 1s
exceptiongroup 1s
setuptools 1s
micropip 1s
pluggy 1s
pyparsing 1s
pytz 1s
iniconfig 1s
attrs 1s
tblib 1s
six 1s

Longest build: libopenblas (4m 49s)
Packages built in more than 10 minutes: 0

@ryanking13
Copy link
Copy Markdown
Member

As this is a pure python package, you should be able to install it directly from PyPI without adding it to Pyodide lockfile. Is there a specific reason you want to add it here?

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.

Package request: segno (QR Code and Micro QR Code generator)

2 participants