Skip to content

fix: resolve initialization manifest bugs and restructure the init module#6294

Open
samrosenf wants to merge 4 commits into
prefix-dev:mainfrom
samrosenf:refactor/pixi-api-init
Open

fix: resolve initialization manifest bugs and restructure the init module#6294
samrosenf wants to merge 4 commits into
prefix-dev:mainfrom
samrosenf:refactor/pixi-api-init

Conversation

@samrosenf

Copy link
Copy Markdown
Contributor

Description

  • Fix incorrect manifest name in bail error when format is Mojoproject (first commit)
  • Fix: Ensure default name is PyPI-safe when extending pyproject by stripping invalid characters (first commit)
  • Add comprehensive integration tests covering all init function manifest creation paths (first commit)
  • Refactor: restructure init module using strategy pattern laying the groundwork for adding init: Allow '--import <ENV_FILE>' and '--format <FORMAT>' together #2523 (second commit)

Fixes #2523 (partially, it's a preparation step)

How Has This Been Tested?

As I said above, I added comprehensive integration tests covering all init function manifest creation paths

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools:
I used Gemini (mostly Flash, a bit of Pro) from the web to ask questions, but not directly from the IDE.
I wrote everything and take responsibility of the code in this PR.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added sufficient tests to cover my changes.

samrosenf added 4 commits June 6, 2026 11:02
- Fix incorrect manifest name in bail error when format is Mojoproject
- Ensure default name is PyPI-safe when extending pyproject by stripping invalid characters
- Add comprehensive integration tests covering all init function manifest creation paths
- Introduce InitStrategy enum to handle manifest creation variations cleanly
- Extract validation, channel resolution, and SCM file creation into helper functions
- Group rendering parameters into a unified RenderContext struct
@samrosenf

Copy link
Copy Markdown
Contributor Author

Hey @baszalmstra, would you mind reviewing my changes? Thank you!

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.

init: Allow '--import <ENV_FILE>' and '--format <FORMAT>' together

1 participant