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 #812

Merged
merged 1 commit into from
Jan 11, 2025
Merged

Conversation

radoering
Copy link
Member

@radoering radoering commented Jan 11, 2025

Changed

  • Replace the deprecated core metadata field Home-page with Project-URL: Homepage (#807).

Fixed

  • 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

Bump version to 2.0.1 and address several bug fixes related to metadata processing and dependency handling. Replace deprecated metadata field with a new standard.

Bug Fixes:

  • Fix an issue where includes from tool.poetry.packages without a specified format were not initialized with the default value, resulting in a KeyError.
  • Fix an issue where some project.urls entries were not processed correctly, resulting in a KeyError.
  • Fix an issue where dynamic project.dependencies via tool.poetry.dependencies were ignored if project.optional-dependencies were defined.

Enhancements:

  • Replace the deprecated core metadata field Home-page with Project-URL: Homepage.

Chores:

  • Bump version to 2.0.1 in project files.

Copy link

sourcery-ai bot commented Jan 11, 2025

Reviewer's Guide by Sourcery

This pull request updates the version to 2.0.1, replaces a deprecated metadata field in the changelog, and fixes several KeyError issues related to project configuration.

Flow diagram of version update changes

graph TD
    A[Version 2.0.1.dev0] -->|Update version| B[Version 2.0.1]
    C[Home-page metadata field] -->|Replace deprecated field| D[Project-URL: Homepage]
    E[KeyError fixes] -->|Fix 1| F[Initialize default format for tool.poetry.packages]
    E -->|Fix 2| G[Process project.urls entries correctly]
    E -->|Fix 3| H[Handle dynamic project.dependencies with optional-dependencies]
Loading

File-Level Changes

Change Details Files
Updated the version number to 2.0.1.
  • Changed version in pyproject.toml from 2.0.1.dev0 to 2.0.1.
  • Updated version in poetry/core/init.py from 2.0.1.dev0 to 2.0.1.
pyproject.toml
src/poetry/core/__init__.py
Replaced deprecated metadata field in changelog.
  • Replaced 'Home-page' with 'Project-URL: Homepage' in the changelog.
CHANGELOG.md
Fixed issues related to KeyError in project configuration.
  • Fixed KeyError for includes from tool.poetry.packages without a specified format.
  • Fixed KeyError for some project.urls entries not processed correctly.
  • Fixed issue where dynamic project.dependencies were ignored if project.optional-dependencies were defined.
CHANGELOG.md

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 c5547ec into python-poetry:main Jan 11, 2025
18 checks passed
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