Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: bump version to 2.0.1 #10020

Merged
merged 1 commit into from
Jan 11, 2025
Merged

Conversation

radoering
Copy link
Member

@radoering radoering commented Jan 11, 2025

Added

  • Add support for poetry search in legacy sources (#9949).
  • Add a message in the poetry source show output when PyPI is implicitly enabled (#9974).

Changed

  • Improve performance for merging markers from overrides at the end of dependency resolution (#10018).

Fixed

  • Fix an issue where poetry sync did not remove packages that were not requested (#9946).
  • Fix an issue where poetry check failed even though there were just warnings and add a --strict option to fail on warnings (#9983).
  • Fix an issue where poetry update, poetry add and poetry remove with --only uninstalled packages from other groups (#10014).
  • Fix an issue where poetry update, poetry add and poetry remove uninstalled all extra packages (#10016).
  • Fix an issue where poetry self update did not recognize Poetry's own environment (#9995).
  • Fix an issue where read-only system site-packages were not considered when loading an environment with system site-packages (#9942).
  • Fix an issue where an error message in poetry install started with Warning: instead of Error: (#9945).
  • Fix an issue where Command.set_poetry, which is used by plugins, was removed (#9981).
  • Fix an issue where the help text of poetry build --clean showed a malformed short option instead of the description (#9994).

Docs

  • Add a FAQ entry for the migration from Poetry-specific fields to the project section (#9996).
  • Fix examples for project.readme and project.urls (#9948).
  • Add a warning that package sources are a Poetry-specific feature that is not included in core metadata (#9935).
  • Replace poetry install --sync with poetry sync in the section about synchronizing dependencies (#9944).
  • Replace poetry shell with poetry env activate in the basic usage section (#9963).
  • Mention that project.name is always required when the project section is used (#9989).
  • Fix the constraint of poetry-plugin-export in the section about poetry export (#9954).

poetry-core (2.0.1)

  • Replace the deprecated core metadata field Home-page with Project-URL: Homepage (#807).
  • Fix an issue where includes from tool.poetry.packages without a specified format were not initialized with the default value resulting in a KeyError (#805).
  • Fix an issue where some project.urls entries were not processed correctly resulting in a KeyError (#807).
  • Fix an issue where dynamic project.dependencies via tool.poetry.dependencies were ignored if project.optional-dependencies were defined (#811).

Summary by Sourcery

Release Poetry version 2.0.1.

New Features:

  • Add support for poetry search in legacy sources.
  • Display a message in poetry source show when PyPI is implicitly enabled.

Tests:

  • Fix an issue where read-only system site-packages were not considered when loading an environment with system site-packages.

Copy link

sourcery-ai bot commented Jan 11, 2025

Reviewer's Guide by Sourcery

This pull request bumps the version to 2.0.1 and introduces several fixes, improvements, and documentation updates. Additionally, support for poetry search in legacy sources has been added, and a message in poetry source show output is displayed when PyPI is implicitly enabled.

Sequence diagram for poetry sync package removal behavior

sequenceDiagram
    actor User
    participant Poetry
    participant PackageManager
    participant Environment

    User->>Poetry: poetry sync
    Poetry->>PackageManager: Check installed packages
    PackageManager->>Environment: Get current packages
    PackageManager->>PackageManager: Compare with requested packages
    PackageManager->>Environment: Remove unrequested packages
    Poetry->>User: Sync complete
Loading

Sequence diagram for poetry update/add/remove package handling

sequenceDiagram
    actor User
    participant Poetry
    participant PackageManager
    participant DependencyGroups

    User->>Poetry: poetry update/add/remove --only group
    Poetry->>DependencyGroups: Check package groups
    DependencyGroups->>PackageManager: Get affected packages
    PackageManager->>PackageManager: Preserve other group packages
    PackageManager->>PackageManager: Preserve extra packages
    Poetry->>User: Operation complete
Loading

Class diagram for poetry-core metadata changes

classDiagram
    class ProjectMetadata {
        +urls: Dict
        +dependencies: Dict
        +optional_dependencies: Dict
        +process_urls()
        +process_dependencies()
    }

    class PackageIncludes {
        +format: str
        +initialize_format()
    }

    note for ProjectMetadata "Changed Home-page to Project-URL: Homepage"
    note for PackageIncludes "Added default format initialization"
Loading

File-Level Changes

Change Details Files
Version bump
  • The version has been updated from 2.0.0 to 2.0.1 in pyproject.toml.
  • The changelog has been updated with the new release information.
  • The lock file has been updated to reflect the new version and dependency changes.
CHANGELOG.md
pyproject.toml
poetry.lock
Add support for poetry search in legacy sources
  • Added support for poetry search in legacy sources.
CHANGELOG.md
Add message for implicitly enabled PyPI source
  • Added a message in the poetry source show output when PyPI is implicitly enabled.
CHANGELOG.md
Improve performance for merging markers from overrides
  • Improved performance for merging markers from overrides at the end of dependency resolution.
CHANGELOG.md
Fix poetry sync not removing unrequested packages
  • Fixed an issue where poetry sync did not remove packages that were not requested.
CHANGELOG.md
Fix poetry check failing on warnings
  • Fixed an issue where poetry check failed even though there were just warnings and added a --strict option to fail on warnings.
CHANGELOG.md
Fix poetry update, add, and remove uninstalling packages from other groups
  • Fixed an issue where poetry update, poetry add, and poetry remove with --only uninstalled packages from other groups.
CHANGELOG.md
Fix poetry update, add, and remove uninstalling all extra packages
  • Fixed an issue where poetry update, poetry add, and poetry remove uninstalled all extra packages.
CHANGELOG.md
Fix poetry self update not recognizing Poetry's own environment
  • Fixed an issue where poetry self update did not recognize Poetry's own environment.
CHANGELOG.md
Fix read-only system site-packages not being considered
  • Fixed an issue where read-only system site-packages were not considered when loading an environment with system site-packages.
CHANGELOG.md
Fix error message in poetry install starting with Warning
  • Fixed an issue where an error message in poetry install started with Warning: instead of Error:.
CHANGELOG.md
Fix Command.set_poetry being removed
  • Fixed an issue where Command.set_poetry, which is used by plugins, was removed.
CHANGELOG.md
Fix help text of poetry build --clean
  • Fixed an issue where the help text of poetry build --clean showed a malformed short option instead of the description.
CHANGELOG.md
Add FAQ entry for migration from Poetry-specific fields
  • Added a FAQ entry for the migration from Poetry-specific fields to the project section.
CHANGELOG.md
Fix examples for project.readme and project.urls
  • Fixed examples for project.readme and project.urls.
CHANGELOG.md
Add warning about package sources being Poetry-specific
  • Added a warning that package sources are a Poetry-specific feature that is not included in core metadata.
CHANGELOG.md
Replace poetry install --sync with poetry sync in documentation
  • Replaced poetry install --sync with poetry sync in the section about synchronizing dependencies.
CHANGELOG.md
Replace poetry shell with poetry env activate in documentation
  • Replaced poetry shell with poetry env activate in the basic usage section.
CHANGELOG.md
Mention project.name being required in documentation
  • Mentioned that project.name is always required when the project section is used.
CHANGELOG.md
Fix constraint of poetry-plugin-export in documentation
  • Fixed the constraint of poetry-plugin-export in the section about poetry export.
CHANGELOG.md
Replace deprecated Home-page with Project-URL: Homepage
  • Replaced the deprecated core metadata field Home-page with Project-URL: Homepage.
CHANGELOG.md
Fix includes from tool.poetry.packages without format
  • Fixed an issue where includes from tool.poetry.packages without a specified format were not initialized with the default value resulting in a KeyError.
CHANGELOG.md
Fix processing of some project.urls entries
  • Fixed an issue where some project.urls entries were not processed correctly resulting in a KeyError.
CHANGELOG.md
Fix dynamic project.dependencies being ignored with project.optional-dependencies
  • Fixed an issue where dynamic project.dependencies via tool.poetry.dependencies were ignored if project.optional-dependencies were defined.
CHANGELOG.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @radoering - I've reviewed your changes and they look great!

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

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@abn abn merged commit bd500dd into python-poetry:main Jan 11, 2025
73 checks passed
Copy link

@Powerjuice900 Powerjuice900 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 improvement os.

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.

3 participants