Skip to content

chore: prefer pyproject.toml over requirements.txt#25

Draft
slack-samples[bot] wants to merge 3 commits intomainfrom
chore/prefer-pyproject-over-requirements
Draft

chore: prefer pyproject.toml over requirements.txt#25
slack-samples[bot] wants to merge 3 commits intomainfrom
chore/prefer-pyproject-over-requirements

Conversation

@slack-samples
Copy link
Copy Markdown
Contributor

@slack-samples slack-samples Bot commented May 7, 2026

Type of change

  • Documentation

Summary

This PR continues our migration away from requirements.txt and toward pyproject.toml as the single source of dependency and packaging metadata.

Using pyproject.toml improves consistency between local setup and CI, reduces duplicated dependency definitions, and keeps optional/dev dependencies structured in one place.

Reviewers

Use this command to create a fresh local copy on the PR branch:

$ slack create -t slack-samples/bolt-python-starter-agent -b chore/prefer-pyproject-over-requirements

Manual checks to perform:

  • Confirm there is no remaining requirements.txt dependency path in docs or CI for the changed scope.
  • Confirm install commands now use pyproject.toml-based flow (e.g., pip install . or pip install -e ".[dev]").
  • Confirm CI workflow changes align with the repo’s Python version matrix and still pass.

Discussion

Please use bolt-python-getting-started-app #7 for cross-repo discussion.

Repo-specific changes

  • Removed per-subdir requirements.txt files from:
    • claude-agent-sdk/requirements.txt
    • openai-agents-sdk/requirements.txt
    • pydantic-ai/requirements.txt
  • Updated each subdir README install command from pip install -r requirements.txt to pip install -e ".[dev]"
  • Updated matrix CI workflows (.github/workflows/tests.yml, .github/workflows/ruff.yml) to install from pyproject.toml metadata in each subdir

Sources

Requirements

  • I have ensured the changes I am contributing align with existing patterns and have tested and linted my code
  • I've read and agree to the Code of Conduct

@slack-samples slack-samples Bot requested a review from a team as a code owner May 7, 2026 06:26
@slack-samples slack-samples Bot added dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation labels May 7, 2026
@salesforce-cla

This comment was marked as outdated.

@slack-samples slack-samples Bot force-pushed the chore/prefer-pyproject-over-requirements branch from be43445 to f58fe8e Compare May 7, 2026 06:32
…efer-pyproject-over-requirements

# Conflicts:
#	claude-agent-sdk/requirements.txt
#	openai-agents-sdk/requirements.txt
#	pydantic-ai/requirements.txt
@slack-samples slack-samples Bot marked this pull request as draft May 7, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants