Skip to content

Comments

feat: allow publishing artifacts if version is determined dynamically#10644

Merged
radoering merged 1 commit intopython-poetry:mainfrom
radoering:publish-dynamic-version
Dec 29, 2025
Merged

feat: allow publishing artifacts if version is determined dynamically#10644
radoering merged 1 commit intopython-poetry:mainfrom
radoering:publish-dynamic-version

Conversation

@radoering
Copy link
Member

@radoering radoering commented Dec 7, 2025

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Until now, poetry publish did only upload artifacts that matched the name and the version in the pyproject.toml. This PR changes this constraint so that artifacts of the latest version in the dist directory are uploaded. (The name is still matched.) This is useful if some kind of dynamic versioning is used, e.g.:

Summary by Sourcery

Allow publishing the latest built distribution artifacts regardless of the static version in pyproject, improving support for dynamic versioning scenarios.

New Features:

  • Select distribution files to publish based on the latest available version in the dist directory rather than the version declared in pyproject.toml.
  • Expose the resolved artifact version from the uploader so the publisher can display the actual published version.

Enhancements:

  • Update uploader registration to reuse the selected distribution artifacts instead of requiring a version-matched sdist.
  • Clarify CLI docs for poetry publish to describe how artifacts are selected from the dist directory.

Tests:

  • Add tests verifying that the uploader only considers artifacts for the current project name and only uploads files for the latest version, including local version identifiers.
  • Adjust publisher and uploader tests to reflect the new artifact selection and registration behavior.

@sourcery-ai
Copy link

sourcery-ai bot commented Dec 7, 2025

Reviewer's Guide

Adjusts Poetry’s publish flow so that artifacts are selected based on the latest built distribution version on disk rather than the version in pyproject.toml, updates uploader behavior and messaging to use this detected version, refines registration behavior, and documents the new behavior, with accompanying tests.

Sequence diagram for dynamic version detection during publish

sequenceDiagram
    actor User
    participant PublishCommand
    participant Publisher
    participant Uploader
    participant FileSystem

    User ->> PublishCommand: run poetry publish --build
    PublishCommand ->> PublishCommand: determine dist_dir
    PublishCommand ->> PublishCommand: call build with --output dist_dir
    PublishCommand ->> Publisher: create Publisher(poetry, io, dist_dir)
    Publisher ->> Uploader: create Uploader(poetry, io, dist_dir)

    PublishCommand ->> Publisher: publish(repository, username, password)
    Publisher ->> Uploader: access files
    activate Uploader
    Uploader ->> FileSystem: list dist_dir matching dist_name-*-*.whl
    Uploader ->> FileSystem: list dist_dir matching dist_name-*.tar.gz
    Uploader ->> Uploader: group artifacts by parsed version
    Uploader ->> Uploader: select latest version via Version.parse
    Uploader ->> Uploader: sort artifacts (prefer wheels)
    Uploader -->> Publisher: return files and version
    deactivate Uploader

    Publisher ->> Publisher: log package pretty_name and uploader.version
    loop for each file
        Publisher ->> Uploader: _register(session, url) or upload
        Uploader ->> FileSystem: open file
        Uploader -->> Publisher: upload response
    end

    Publisher -->> PublishCommand: publish result
    PublishCommand -->> User: show publish summary with detected version
Loading

Class diagram for dynamic artifact selection in publish flow

classDiagram
    class PublishCommand {
        +handle() int
    }

    class Publisher {
        -Poetry _poetry
        -IO _io
        -Uploader _uploader
        -Package _package
        +Publisher(poetry, io, dist_dir)
        +publish(repository, username, password) int
    }

    class Uploader {
        -Poetry _poetry
        -string _dist_name
        -IO _io
        -Path _dist_dir
        -string _username
        -string _password
        +Uploader(poetry, io, dist_dir)
        +dist_dir Path
        +files list~Path~
        +version string
        +auth(username, password) void
        +_register(session, url) Response
        +post_data(file) dict
        +_files_and_version tuple~list~Path~~, string~
    }

    PublishCommand --> Publisher : uses
    Publisher --> Uploader : composes
    Uploader --> Poetry : uses
    Uploader --> IO : uses
    Publisher --> Package : reads
Loading

File-Level Changes

Change Details Files
Uploader now discovers artifacts and their version from the dist directory, selecting only the latest version’s files by distribution name.
  • Replaced stored package object with precomputed normalized distribution name based on the project name.
  • Introduced a cached helper that scans the dist directory for wheels and source distributions matching the project name, groups them by parsed version (including local versions), and selects the latest version’s artifacts.
  • Exposed selected artifacts and their detected version via new properties, and ordered artifacts so source distributions precede wheels.
src/poetry/publishing/uploader.py
Publisher and publish command now rely on the uploader’s detected version and correctly handle temporary dist directories created by --build.
  • Changed publish logging to display the uploader’s detected version instead of the static package version.
  • Ensured the Publisher is re-instantiated with the temporary dist directory path after a --build invocation so that artifact discovery runs against the new directory.
  • Kept the existing no-files-to-publish error path but now based it on the uploader’s dynamic file discovery.
src/poetry/publishing/publisher.py
src/poetry/console/commands/publish.py
Registration flow uses the dynamically selected artifact instead of assuming a tarball matching pyproject.toml’s version.
  • Updated the register logic to build its POST payload using the first file returned from the uploader’s file selection instead of constructing a version-specific .tar.gz path.
  • Removed the explicit existence check for the previously assumed sdist file, deferring file presence guarantees to the discovery logic.
src/poetry/publishing/uploader.py
Tests now cover dynamic artifact selection and refined registration behavior, including HTTP interaction expectations.
  • Added a parametrized test to validate that only the latest version’s artifacts (including local versions) for the correct project name are selected and that the detected version string matches the chosen artifacts.
  • Refactored fixtures to expose a reusable Poetry instance to the uploader tests and added tests to assert that registration triggers both upload and submit actions with the correct form payload.
  • Adjusted publisher tests to stub the uploader’s dynamic version property when asserting behavior that depends on the published version string.
tests/publishing/test_uploader.py
tests/publishing/test_publisher.py
Documentation for poetry publish now clarifies that only the latest-version artifacts are uploaded from the dist directory.
  • Expanded the CLI documentation note to mention that publish uploads only artifacts of the latest version and ignores older builds and artifacts of other packages.
  • Reflowed the surrounding documentation text to accommodate the new warning block.
docs/cli.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. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the 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 exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

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 there - I've reviewed your changes - here's some feedback:

  • Using a cached_property for _files_and_version means the file list and version are frozen at first access; if new artifacts are added to the dist directory later in the same process (outside the explicit re-creation in publish), the uploader may operate on stale data, so consider either avoiding caching or tying the cache invalidation explicitly to build/publish lifecycle events.
  • The version extraction logic in _files_and_version relies on specific filename patterns and string operations on stem (including .removesuffix('.tar') and a split on -), which may be brittle for alternative distribution formats or unusual version tags; it might be safer to centralize and/or unit-test this parsing against a broader set of real-world filenames.
  • In _register, using self.files[0] assumes that at least one artifact exists and that the first one is appropriate for registration; it might be clearer and more robust to explicitly select an sdist if present and to fail fast with a descriptive error if no matching artifacts are found.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Using a cached_property for `_files_and_version` means the file list and version are frozen at first access; if new artifacts are added to the dist directory later in the same process (outside the explicit re-creation in `publish`), the uploader may operate on stale data, so consider either avoiding caching or tying the cache invalidation explicitly to build/publish lifecycle events.
- The version extraction logic in `_files_and_version` relies on specific filename patterns and string operations on `stem` (including `.removesuffix('.tar')` and a split on `-`), which may be brittle for alternative distribution formats or unusual version tags; it might be safer to centralize and/or unit-test this parsing against a broader set of real-world filenames.
- In `_register`, using `self.files[0]` assumes that at least one artifact exists and that the first one is appropriate for registration; it might be clearer and more robust to explicitly select an sdist if present and to fail fast with a descriptive error if no matching artifacts are found.

## Individual Comments

### Comment 1
<location> `tests/publishing/test_uploader.py:35-42` </location>
<code_context>
+    return Uploader(poetry, NullIO())
+
+
[email protected](
+    ("files", "expected_files", "expected_version"),
+    [
+        (
+            ["simple_project-1.2.3.tar.gz", "simple_project-1.2.3-py3-none-any.whl"],
+            ["simple_project-1.2.3.tar.gz", "simple_project-1.2.3-py3-none-any.whl"],
+            "1.2.3",
+        ),
+        (  # other names are ignored
+            [
</code_context>

<issue_to_address>
**suggestion (testing):** Extend `test_uploader_files_only_latest` parametrization to cover empty dist and pre-release version ordering.

To exercise `_files_and_version` more thoroughly, consider adding two parameter sets:

1. Empty dist directory: no matching artifacts, expecting `uploader.files == []` and `uploader.version == ""` to cover the `case 0` branch.
2. Pre-release vs final: e.g. `1.2.3rc1` and `1.2.3`, asserting that `1.2.3` is selected to confirm `Version.parse` ordering and correct handling of pre-releases in the new dynamic resolution.

These will round out the spec for the artifact selection logic.

Suggested implementation:

```python
@pytest.fixture
def uploader(poetry: Poetry) -> Uploader:
    return Uploader(poetry, NullIO())


@pytest.mark.parametrize(
    ("files", "expected_files", "expected_version"),
    [
        (
            ["simple_project-1.2.3.tar.gz", "simple_project-1.2.3-py3-none-any.whl"],
            ["simple_project-1.2.3.tar.gz", "simple_project-1.2.3-py3-none-any.whl"],
            "1.2.3",
        ),
        (  # empty dist directory -> no files, no version
            [],
            [],
            "",
        ),
        (  # pre-release vs final: final wins
            [
                "simple_project-1.2.3rc1.tar.gz",
                "simple_project-1.2.3rc1-py3-none-any.whl",
                "simple_project-1.2.3.tar.gz",
                "simple_project-1.2.3-py3-none-any.whl",
            ],
           [
               "simple_project-1.2.3.tar.gz",
               "simple_project-1.2.3-py3-none-any.whl",
           ],
            "1.2.3",
        ),
        (  # other names are ignored
            [
                "simple_project-1.2.3.tar.gz",
                "other_project-1.2.3.tar.gz",
                "simple_project-1.2.3-py3-none-any.whl",

```

I assumed that:
- These parametrized values are consumed by `test_uploader_files_only_latest` (or similar) and that `expected_files` and `expected_version` are asserted against `uploader.files` and `uploader.version`.
- The empty dist case is represented by passing an empty `files` list into the test, which should exercise the branch where `_files_and_version` yields no version (`""`) and an empty file list.
- The pre-release vs final case is meant to assert that when both `1.2.3rc1` and `1.2.3` artifacts exist, only the `1.2.3` artifacts are selected, confirming that `Version.parse` ranks the final release higher than the pre-release.

If the test currently derives `files` from an actual directory rather than directly from this `files` argument, you may need to:
1. Ensure the test uses the `files` param to set up the dist directory contents (e.g. by touching files in a tmp path).
2. Confirm that the no-files case leads to `uploader.version == ""` (or adjust `expected_version` if the implementation uses `None` or some other sentinel).
</issue_to_address>

### Comment 2
<location> `tests/publishing/test_uploader.py:194-203` </location>
<code_context>


 def test_uploader_registers_for_appropriate_400_errors(
-    mocker: MockerFixture, http: responses.RequestsMock, uploader: Uploader
+    http: responses.RequestsMock, uploader: Uploader
 ) -> None:
-    register = mocker.patch("poetry.publishing.uploader.Uploader._register")
     http.post("https://foo.com", status=400, body="No package was ever registered")

     with pytest.raises(UploadError):
         uploader.upload("https://foo.com")

-    assert register.call_count == 1
+    assert len(http.calls) == 2
+    assert b'name=":action"\r\n\r\nfile_upload\r\n' in (
+        http.calls[0].request.body or b""
+    )
+    assert b'name=":action"\r\n\r\nsubmit\r\n' in (http.calls[1].request.body or b"")


</code_context>

<issue_to_address>
**suggestion (testing):** Add a dedicated test for `_register` behavior when only wheel artifacts are present.

The new assertions on `http.calls` improve verification of the registration flow, but `_register` now uses `self.files[0]` instead of a specific sdist path. This changes behavior when only wheels exist: previously `_register` failed due to missing sdist; now it will register using the first file (a wheel).

Please add a dedicated test (e.g. `test_uploader_register_uses_wheel_if_no_sdist`) that:
- populates `dist_dir` with only a wheel for the latest version,
- triggers `_register` (directly or via the 400 upload flow), and
- asserts that the wheel is used (via `post_data` or `http.calls`).

This will document and lock in the new behavior when no sdist is available.

Suggested implementation:

```python
def test_uploader_properly_handles_400_errors(




def test_uploader_register_uses_wheel_if_no_sdist(
    http: responses.RequestsMock,
    poetry: "Poetry",
    tmp_path: "Path",
) -> None:
    wheel = tmp_path / "foo-1.2.3-py3-none-any.whl"
    wheel.write_bytes(b"wheel-binary")

    uploader = Uploader(poetry, NullIO(), dist_dir=tmp_path)

    http.post("https://foo.com", status=400, body="No package was ever registered")

    with pytest.raises(UploadError):
        uploader.upload("https://foo.com")

    assert len(http.calls) == 2

    wheel_name = wheel.name.encode()
    assert wheel_name in (http.calls[0].request.body or b"")
    assert wheel_name in (http.calls[1].request.body or b"")


if TYPE_CHECKING:

```

This new test assumes:

1. `Uploader`, `UploadError`, `NullIO`, and `pytest` are already imported at the top of `tests/publishing/test_uploader.py`, consistent with the rest of the test file.
2. The `http` fixture of type `responses.RequestsMock`, the `poetry` fixture of type `Poetry`, and the `tmp_path` fixture are already available (which is typical for this test module).
3. The registry URL `"https://foo.com"` matches the one used in the other uploader tests, so that the `responses` mock intercepts the calls.

If the actual filename pattern for the wheel differs (e.g. project name or version), adjust `"foo-1.2.3-py3-none-any.whl"` accordingly to match what `poetry` produces for the latest version in your fixtures.
</issue_to_address>

### Comment 3
<location> `tests/publishing/test_publisher.py:53` </location>
<code_context>
     config: Config,
     fixture_name: str,
 ) -> None:
+    mocker.patch("poetry.publishing.uploader.Uploader.version", "1.2.3")
     uploader_auth = mocker.patch("poetry.publishing.uploader.Uploader.auth")
     uploader_upload = mocker.patch("poetry.publishing.uploader.Uploader.upload")
</code_context>

<issue_to_address>
**suggestion (testing):** Strengthen publisher test to assert the printed version matches the uploader's dynamic version.

Patching `Uploader.version` stabilizes the version used in the test, but it doesn’t yet verify the new behavior. Please extend this test (or add a sibling) to assert on the captured console output after running the command—for example, that it includes `Publishing simple-project (1.2.3) to ...`—so we confirm the publisher is actually using `self._uploader.version` rather than the static package version.

Suggested implementation:

```python
    config: Config,
    fixture_name: str,
    capsys: CaptureFixture[str],
) -> None:
    mocker.patch("poetry.publishing.uploader.Uploader.version", "1.2.3")
    uploader_auth = mocker.patch("poetry.publishing.uploader.Uploader.auth")
    uploader_upload = mocker.patch("poetry.publishing.uploader.Uploader.upload")

    # After running the publish command, ensure we printed the uploader's version
    captured = capsys.readouterr()
    assert "Publishing simple-project (1.2.3) to " in captured.out

```

To make this compile and behave correctly, a couple of surrounding adjustments are likely needed:

1. **Import the capture fixture type**  
   At the top of `tests/publishing/test_publisher.py`, add:
   ```python
   from pytest import CaptureFixture
   ```
   (or `import pytest` and then use `pytest.CaptureFixture[str]` in the signature, depending on existing conventions in this file).

2. **Place the assertion after the publish command is executed**  
   The assertion added above must run *after* whatever code actually triggers the publishing (e.g., a CLI runner, command tester, or direct `Publisher.publish()` call).  
   If the publish command is currently invoked *after* the snippet you provided, you should move the `captured = capsys.readouterr()` and `assert ...` lines to immediately after that invocation. For example:
   ```python
   # existing code that triggers the publish (example)
   result = app.invoke(["publish"])

   captured = capsys.readouterr()
   assert "Publishing simple-project (1.2.3) to " in captured.out
   ```

3. **Ensure the project name matches**  
   If the fixture under test uses a different project name than `"simple-project"`, update the expected string to match the actual project name that appears in the publish message (keeping `(1.2.3)` as the version).

These adjustments will ensure the test both stabilizes the uploader version and verifies that the publisher’s user-facing output reflects `self._uploader.version`.
</issue_to_address>

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.

@radoering radoering force-pushed the publish-dynamic-version branch from db8c902 to af24949 Compare December 14, 2025 16:02
@radoering radoering force-pushed the publish-dynamic-version branch from af24949 to ef9ae28 Compare December 29, 2025 12:03
@radoering radoering added the impact/docs Contains or requires documentation changes label Dec 29, 2025
@github-actions
Copy link

github-actions bot commented Dec 29, 2025

Deploy preview for website ready!

✅ Preview
https://website-7em4da44c-python-poetry.vercel.app

Built with commit a54e418.
This pull request is being automatically deployed with vercel-action

@radoering radoering force-pushed the publish-dynamic-version branch from ef9ae28 to a54e418 Compare December 29, 2025 13:08
@radoering radoering merged commit 364c2c5 into python-poetry:main Dec 29, 2025
55 checks passed
mwalbeck pushed a commit to mwalbeck/docker-python-poetry that referenced this pull request Jan 19, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [poetry](https://github.com/python-poetry/poetry) ([changelog](https://python-poetry.org/history/)) | minor | ` 2.2.1` -> `2.3.0` |

---

### Release Notes

<details>
<summary>python-poetry/poetry (poetry)</summary>

### [`v2.3.0`](https://github.com/python-poetry/poetry/blob/HEAD/CHANGELOG.md#230---2026-01-18)

[Compare Source](python-poetry/poetry@2.2.1...2.3.0)

##### Added

- **Add support for exporting `pylock.toml` files with `poetry-plugin-export`** ([#&#8203;10677](python-poetry/poetry#10677)).
- Add support for specifying build constraints for dependencies ([#&#8203;10388](python-poetry/poetry#10388)).
- Add support for publishing artifacts whose version is determined dynamically by the build-backend ([#&#8203;10644](python-poetry/poetry#10644)).
- Add support for editable project plugins ([#&#8203;10661](python-poetry/poetry#10661)).
- Check `requires-poetry` before any other validation ([#&#8203;10593](python-poetry/poetry#10593)).
- Validate the content of `project.readme` when running `poetry check` ([#&#8203;10604](python-poetry/poetry#10604)).
- Add the option to clear all caches by making the cache name in `poetry cache clear` optional ([#&#8203;10627](python-poetry/poetry#10627)).
- Automatically update the cache for packages where the locked files differ from cached files ([#&#8203;10657](python-poetry/poetry#10657)).
- Suggest to clear the cache if running a command with `--no-cache` solves an issue ([#&#8203;10585](python-poetry/poetry#10585)).
- Propose `poetry init` when trying `poetry new` for an existing directory ([#&#8203;10563](python-poetry/poetry#10563)).
- Add support for `poetry publish --skip-existing` for new Nexus OSS versions ([#&#8203;10603](python-poetry/poetry#10603)).
- Show Poetry's own Python's path in `poetry debug info` ([#&#8203;10588](python-poetry/poetry#10588)).

##### Changed

- **Drop support for Python 3.9** ([#&#8203;10634](python-poetry/poetry#10634)).
- **Change the default of `installer.re-resolve` from `true` to `false`** ([#&#8203;10622](python-poetry/poetry#10622)).
- **PEP 735 dependency groups are considered in the lock file hash** ([#&#8203;10621](python-poetry/poetry#10621)).
- Deprecate `poetry.utils._compat.metadata`, which is sometimes used in plugins, in favor of `importlib.metadata` ([#&#8203;10634](python-poetry/poetry#10634)).
- Improve managing free-threaded Python versions with `poetry python` ([#&#8203;10606](python-poetry/poetry#10606)).
- Prefer JSON API to HTML API in legacy repositories ([#&#8203;10672](python-poetry/poetry#10672)).
- When running `poetry init`, only add the readme field in the `pyproject.toml` if the readme file exists ([#&#8203;10679](python-poetry/poetry#10679)).
- Raise an error if no hash can be determined for any distribution link of a package ([#&#8203;10673](python-poetry/poetry#10673)).
- Require `dulwich>=0.25.0` ([#&#8203;10674](python-poetry/poetry#10674)).

##### Fixed

- Fix an issue where `poetry remove` did not work for PEP 735 dependency groups with `include-group` items ([#&#8203;10587](python-poetry/poetry#10587)).
- Fix an issue where `poetry remove` caused dangling `include-group` references in PEP 735 dependency groups ([#&#8203;10590](python-poetry/poetry#10590)).
- Fix an issue where `poetry add` did not work for PEP 735 dependency groups with `include-group` items ([#&#8203;10636](python-poetry/poetry#10636)).
- Fix an issue where PEP 735 dependency groups were not considered in the lock file hash ([#&#8203;10621](python-poetry/poetry#10621)).
- Fix an issue where wrong markers were locked for a dependency that was required by several groups with different markers ([#&#8203;10613](python-poetry/poetry#10613)).
- Fix an issue where non-deterministic markers were created in a method used by `poetry-plugin-export` ([#&#8203;10667](python-poetry/poetry#10667)).
- Fix an issue where wrong wheels were chosen for installation in free-threaded Python environments if Poetry itself was not installed with free-threaded Python ([#&#8203;10614](python-poetry/poetry#10614)).
- Fix an issue where `poetry publish` used the metadata of the project instead of the metadata of the build artifact ([#&#8203;10624](python-poetry/poetry#10624)).
- Fix an issue where `poetry env use` just used another Python version instead of failing when the requested version was not supported by the project ([#&#8203;10685](python-poetry/poetry#10685)).
- Fix an issue where `poetry env activate` returned the wrong command for `dash` ([#&#8203;10696](python-poetry/poetry#10696)).
- Fix an issue where `data-dir` and `python.installation-dir` could not be set ([#&#8203;10595](python-poetry/poetry#10595)).
- Fix an issue where Python and pip executables were not correctly detected on Windows ([#&#8203;10645](python-poetry/poetry#10645)).
- Fix an issue where invalid template variables in `virtualenvs.prompt` caused an incomprehensible error message ([#&#8203;10648](python-poetry/poetry#10648)).

##### Docs

- Add a warning about `~/.netrc` for Poetry credential configuration ([#&#8203;10630](python-poetry/poetry#10630)).
- Clarify that the local configuration takes precedence over the global configuration ([#&#8203;10676](python-poetry/poetry#10676)).
- Add an explanation in which cases `packages` are automatically detected ([#&#8203;10680](python-poetry/poetry#10680)).

##### poetry-core ([`2.3.0`](https://github.com/python-poetry/poetry-core/releases/tag/2.3.0))

- Normalize versions ([#&#8203;893](python-poetry/poetry-core#893)).
- Fix an issue where unsatisfiable requirements did not raise an error ([#&#8203;891](python-poetry/poetry-core#891)).
- Fix an issue where the implicit main group did not exist if it was explicitly declared as not having any dependencies ([#&#8203;892](python-poetry/poetry-core#892)).
- Fix an issue where `python_full_version` markers with pre-release versions were parsed incorrectly ([#&#8203;893](python-poetry/poetry-core#893)).

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDYuMCIsInVwZGF0ZWRJblZlciI6IjQxLjE0Ni4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.walbeck.it/walbeck-it/docker-python-poetry/pulls/1654
Co-authored-by: renovate-bot <[email protected]>
Co-committed-by: renovate-bot <[email protected]>
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

impact/docs Contains or requires documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant