Skip to content

PySpec local import support and API consolidation#651

Draft
joehendrix wants to merge 1 commit intomainfrom
jhx/pyspec_local_import_v2
Draft

PySpec local import support and API consolidation#651
joehendrix wants to merge 1 commit intomainfrom
jhx/pyspec_local_import_v2

Conversation

@joehendrix
Copy link
Copy Markdown
Contributor

@joehendrix joehendrix commented Mar 24, 2026

Combine several smaller PRs (each reviewed separately) to add Python relative import support and consolidate the Python analysis API.

Depends on #645, #647. Once those are merged, this will be rebased and ready for review.

  • Move PySpecPipeline.lean into Strata/SimpleAPI/Python.lean and extract PySpecMClass into its own file
  • Introduce ModuleName-based internal API with a path-based wrapper (pyAnalyzeLaurelFromPaths) for the CLI
  • Make readDispatchOverloads, OverloadTable, Specs.ModuleName public through SimpleAPI.Python

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@joehendrix joehendrix requested a review from a team March 24, 2026 22:07
@joscoh joscoh added the Python label Mar 24, 2026
@joehendrix joehendrix marked this pull request as draft March 24, 2026 23:05
@joehendrix joehendrix force-pushed the jhx/pyspec_local_import_v2 branch 3 times, most recently from d91778a to c1914f8 Compare March 25, 2026 21:48
Move PySpecPipeline.lean to SimpleAPI/Python.lean and migrate
Python-specific code (pySpecsDir, pyTranslateLaurel, WarningOutput,
discoverModules, pySpecOutputPath) from SimpleAPI.lean into the new
module. Minimize public imports to reduce downstream coupling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@joehendrix joehendrix force-pushed the jhx/pyspec_local_import_v2 branch from c1914f8 to 61f9e50 Compare March 26, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants