Skip to content

test: add pure-Python mode (.py) fixture#89

Merged
henryiii merged 2 commits into
mainfrom
feat/pure-python-mode
Jul 10, 2026
Merged

test: add pure-Python mode (.py) fixture#89
henryiii merged 2 commits into
mainfrom
feat/pure-python-mode

Conversation

@henryiii

@henryiii henryiii commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖

Adds a test fixture and test verifying that cython_transpile works with a pure-Python .py source file (Cython's pure Python mode), and documents it in the README.

No CMake changes were needed — cython_transpile was already filename-agnostic (NAME_WE -> foo.c) and worked out of the box.

Addresses item 4 of #84.

henryiii added 2 commits July 9, 2026 16:32
Cython compiles .py files, and cython_transpile is filename-agnostic
already, so this just adds a fixture and test to verify it, and notes
it in the README.

Addresses item 4 of #84.

Assisted-by: ClaudeCode:claude-sonnet-5
Fixture sources under tests/packages/ are build inputs, not project
Python code: the pure-Python fixture's square.py tripped
name-tests-test, mypy (no cython stubs), and ruff ERA001 (the
'# cython:' directive line), which only run at --hook-stage manual.

Assisted-by: ClaudeCode:claude-fable-5
@henryiii henryiii marked this pull request as ready for review July 9, 2026 21:38
@henryiii henryiii merged commit 939c80e into main Jul 10, 2026
28 checks passed
@henryiii henryiii deleted the feat/pure-python-mode branch July 10, 2026 16:07
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.

1 participant