Skip to content

feat(context): @conditional_on_web_application + @conditional_on_resource (v26.06.40)#67

Merged
ancongui merged 1 commit into
mainfrom
feat/conditional-on-family
Jun 7, 2026
Merged

feat(context): @conditional_on_web_application + @conditional_on_resource (v26.06.40)#67
ancongui merged 1 commit into
mainfrom
feat/conditional-on-family

Conversation

@ancongui
Copy link
Copy Markdown
Contributor

@ancongui ancongui commented Jun 7, 2026

Two more Spring @ConditionalOn* conditions: @conditional_on_web_application() (matches when Starlette/FastAPI is importable) and @conditional_on_resource(path) (matches when the filesystem resource exists). Both wired into the condition evaluator (pass 1) + exported from pyfly.context. @ConditionalOnSingleCandidate stays on the roadmap (needs careful bean-counting vs pyfly's interface-alias registrations). Tests (2). Gates: mypy --strict (619), ruff+format, full suite 3820.

…urce + bump v26.06.40

Two more Spring @ConditionalOn* conditions:
- conditional_on_web_application(): matches when starlette/fastapi importable (find_spec).
- conditional_on_resource(path): matches when the filesystem resource exists.
Both pass-1 (config/class), wired into the condition evaluator + exported from pyfly.context.
(@ConditionalOnSingleCandidate deferred — needs careful bean-counting vs interface aliases.)

Tests: tests/context/test_conditional_on_family.py (2). Gates: mypy --strict (619),
ruff + format, full suite 3820 passed.
@ancongui ancongui merged commit 2c4d9a9 into main Jun 7, 2026
5 checks passed
@ancongui ancongui deleted the feat/conditional-on-family branch June 7, 2026 11:33
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