Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement PEP 735 Dependency Groups#4800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
harshil21 wants to merge9 commits intomaster
base:master
Choose a base branch
Loading
frompep-735
Open

Conversation

harshil21
Copy link
Member

Closes#4795.

Also ran the standard vscode file formatter on pyproject.toml, so if you're wondering about that change, it's that.

Also works withuv:uv sync --all-extras --all-groups

@harshil21harshil21 added the 🛠 code-qualitychange type: code-quality labelMay 23, 2025
@github-actionsgithub-actionsbot removed the 🛠 code-qualitychange type: code-quality labelMay 23, 2025
Copy link

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements PEP 735 dependency groups, removes legacy requirement files, and updates CI/docs workflows to use pip’s--group installs.

  • Definetests,docs, andall dependency groups inpyproject.toml
  • Removerequirements-*.txt files and switch workflows from-r installs to--group flags
  • Reformat array syntax and lint settings inpyproject.toml for consistency

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
requirements-unit-tests.txtRemoved legacy test requirements file
requirements-dev-all.txtRemoved legacy dev-all requirements file
pyproject.tomlAdded[dependency-groups], collapsed arrays, updated optional-dependencies
docs/requirements-docs.txtRemoved legacy docs requirements file
.readthedocs.ymlUpdated RTD install step—now onlypip install .
.github/workflows/unit_tests.ymlSwitched topip install . --group tests, removed old installs
.github/workflows/test_official.ymlSwitched topip install .[all] --group tests
.github/workflows/docs-linkcheck.ymlSwitched topip install .[all] --group all
.github/workflows/docs-admonitions.ymlSwitched topip install . --group all
.github/workflows/chango.ymlSwitched topip install . --group docs
.github/CONTRIBUTING.rstUpdated contributor setup to use--group all
Comments suppressed due to low confidence (3)

.readthedocs.yml:20

  • The ReadTheDocs config no longer installs documentation dependencies. You should add an install argument to include thedocs group (e.g.,args: ["--group", "docs"]) so Sphinx requirements are pulled in.
    - method: pip      path: .

.github/workflows/unit_tests.yml:41

  • [nitpick] Thetests dependency group already includespytest-xdist, so this extra installation is redundant and can be removed.
python -W ignore -m pip install pytest-xdist

.github/workflows/docs-admonitions.yml:34

  • With the old requirements files removed, the cache no longer tracks dependency changes. Consider addingcache-dependency-path: 'pyproject.toml' (or similar) to ensure the cache is invalidated when dependencies are updated.
-          cache-dependency-path: '**/requirements*.txt'

@harshil21harshil21 added the 🛠 code-qualitychange type: code-quality labelMay 23, 2025
Copy link
Member

@Bibo-JoshiBibo-Joshi left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Really nice seeing that PEP in action!


build:
os: ubuntu-22.04
tools:
python: "3" # latest stable cpython version
jobs:
install:
- pip install -U pip
- pip install .[all] --group 'all' # install all the dependency groups
Copy link
Member

Choose a reason for hiding this comment

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

[all] is probably duplicate here, right? It's already listed in line 22

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

yeah that's whateaee924 was about. It apparently doesn't see that? I can just remove line 22 then..

Comment on lines 1 to 3
dependencies ="Implement PEP 735 Dependency Groups"
documentation ="Implement PEP 735 Dependency Groups"
internal ="Implement PEP 735 Dependency Groups"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
dependencies ="Implement PEP 735 Dependency Groups"
documentation ="Implement PEP 735 Dependency Groups"
internal ="Implement PEP 735 Dependency Groups"
dependencies ="Implement PEP 735 Dependency Groups for Development Dependencies"

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I don't really remember how chango works, do I need to modify this message after it creates a commit on here, or can I somehow do this change locally first?

Copy link
Member

Choose a reason for hiding this comment

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

You can also create the file locally withchango new --uid <uid>. The auto-creation is just for convenience and for making sure that there is one :)

@harshil21harshil21 mentioned this pull requestMay 24, 2025
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Bibo-JoshiBibo-JoshiBibo-Joshi requested changes

Copilot code reviewCopilotCopilot left review comments

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
🛠 code-qualitychange type: code-quality
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Support PEP 735 Dependency Groups
2 participants
@harshil21@Bibo-Joshi

[8]ページ先頭

©2009-2025 Movatter.jp