You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --build-backend option to usethis init (#1469)
* Initial plan
* feat: add --build-backend option to usethis init
Add a new --build-backend CLI option that allows users to choose which
build backend to use when initializing a project. Supported values
match those of uv init --build-backend: hatch (default), uv, flit,
pdm, setuptools, maturin, scikit, and poetry.
The build backend is stored in usethis_config and used by both the uv
backend (passed through to uv init --build-backend) and the none
backend (generates appropriate [build-system] config in pyproject.toml).
Closes#347
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/3d692c70-3b16-43c5-bd5a-8fdc2463c5f9
* style: apply formatting fixes from static checks
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/3d692c70-3b16-43c5-bd5a-8fdc2463c5f9
* refactor: limit build backends to hatch and uv, add config dict comprehensiveness test
Reduce BuildBackendEnum to only hatch and uv for simpler maintenance.
Remove tests for flit/setuptools/poetry/etc backends.
Add TestBuildSystemConfig::test_keys_match_enum to verify _BUILD_SYSTEM_CONFIG
keys stay in sync with BuildBackendEnum members.
Update docs/cli/reference.md to only list hatch and uv.
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/69842fd3-e51b-4d58-9bd1-fd5136923fd9
* refactor: use fallback versions and next_breaking_version for build system config
- Add FALLBACK_HATCHLING_VERSION = "1.29.0" to _fallback.py
- Extract next_breaking_version() generic helper into _fallback.py
- Refactor next_breaking_uv_version() to delegate to next_breaking_version()
- Update _BUILD_SYSTEM_CONFIG to use FALLBACK_UV_VERSION, FALLBACK_HATCHLING_VERSION
and next_breaking_version() instead of hard-coded version bounds
- Add TestFallbackHatchlingVersion and TestNextBreakingVersion tests
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/0ab118f5-5448-457b-a6aa-6740f6b46a5d
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Co-authored-by: Nathan McDougall <nathan.j.mcdougall@gmail.com>
0 commit comments