Pep 753#9969
Merged
abn merged 3 commits intopython-poetry:mainfrom Jan 11, 2025
Merged
Conversation
Reviewer's Guide by SourceryThis PR refactors the Sequence diagram for create_pyproject_from_package metadata handlingsequenceDiagram
participant Package
participant Factory
participant TOMLDocument
Factory->>Package: Get documentation_url
alt has documentation_url
Package-->>Factory: Return documentation_url
Factory->>TOMLDocument: Set documentation field
end
Factory->>Package: Get repository_url
alt has repository_url
Package-->>Factory: Return repository_url
Factory->>TOMLDocument: Set repository field
end
Factory->>Package: Get homepage
alt has homepage
Package-->>Factory: Return homepage
Factory->>TOMLDocument: Set homepage field
end
Factory->>Package: Get maintainers
alt has maintainers
Package-->>Factory: Return maintainers
Factory->>TOMLDocument: Set maintainers field
end
Factory->>Package: Get keywords
alt has keywords
Package-->>Factory: Return keywords
Factory->>TOMLDocument: Set keywords field
end
Class diagram for Package and Factory relationshipclassDiagram
class Package {
+documentation_url: str
+repository_url: str
+homepage: str
+maintainers: list
+keywords: list
+classifiers: list
}
class Factory {
+create_pyproject_from_package(package: Package) TOMLDocument
}
Factory ..> Package : uses
note for Factory "Refactored to use individual
if statements for metadata fields"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @dimbleby - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please expand the PR description to provide more context about which aspects of PEP 753 are being implemented and why these changes are necessary.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
abn
approved these changes
Jan 11, 2025
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
companion to python-poetry/poetry-core#807
Summary by Sourcery
Chores: