Skip to content

Migrate dependencies to pyproject.toml#261

Merged
freakboy3742 merged 3 commits into
beeware:mainfrom
gwdio:236-pyproject-migration
May 19, 2026
Merged

Migrate dependencies to pyproject.toml#261
freakboy3742 merged 3 commits into
beeware:mainfrom
gwdio:236-pyproject-migration

Conversation

@gwdio
Copy link
Copy Markdown
Contributor

@gwdio gwdio commented May 18, 2026

Move test and dev dependencies into PEP 735 dependency groups. Update tox.ini and ci.yml to install via --dependency-group.

requirements.txt retained as a stub until beeware/.github#355 lands; see #236 for context.

Migrate the repo's dependency declaration from requirements.txt to pyproject.toml using PEP 735 dependency groups (test and dev). Update tox.ini and ci.yml to install via --dependency-group instead of -r requirements.txt, including a pip upgrade step where needed for --dependency-group support.

requirements.txt is retained as a minimal stub because app-create-verify.yml in beeware/.github hardcodes a reference to it (see beeware/.github#355). A follow-up PR will remove it once that's resolved.

The repo was using requirements.txt for its test/dev dependencies. Moving to pyproject.toml consolidates dependency declarations into the modern standard location and enables more granular grouping (test vs dev) as requested in the issue.

Refs #236

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool

Assisted-by: Claude Opus 4.7, Claude Code (Sonnet 4.6)

gwdio added 3 commits May 18, 2026 18:37
Move test and dev dependencies into PEP 735 dependency groups.
Update tox.ini and ci.yml to install via --dependency-group.

requirements.txt retained as a stub until beeware/.github#355
lands; see beeware#236 for context.
  --dependency-group is not a valid pip flag; the correct flag
  introduced in pip 25.1 (PEP 735) is --group.
Copy link
Copy Markdown
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome - thanks for the fix!

@freakboy3742 freakboy3742 merged commit 2a4a308 into beeware:main May 19, 2026
26 checks passed
@gwdio gwdio mentioned this pull request May 19, 2026
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.

2 participants