Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 22, 2025

This PR contains the following updates:

Package Type Update Change Pending OpenSSF
psutil project.dependencies minor 7.1.37.2.0 7.2.1 OpenSSF Scorecard
python (source) requires-python minor >=3.13.2,<3.14>=3.14.2,<3.15 OpenSSF Scorecard

Release Notes

giampaolo/psutil (psutil)

v7.2.0

Compare Source

=====

2025-12-23

Enhancements

  • 1275_: new heap_info()_ and heap_trim()_ functions, providing direct
    access to the platform's native C heap allocator (glibc, mimalloc,
    libmalloc). Useful to create tools to detect memory leaks.
  • 2403_, [Linux]: publish wheels for Linux musl.
  • 2680_: unit tests are no longer installed / part of the distribution. They
    now live under tests/ instead of psutil/tests.

Bug fixes

  • 2684_, [FreeBSD], [critical]: compilation fails on FreeBSD 14 due to missing
    include.
  • 2691_, [Windows]: fix memory leak in net_if_stats()_ due to missing
    Py_CLEAR.

Compatibility notes

  • 2680_: import psutil.tests no longer works (but it was never documented to
    begin with).
python/cpython (python)

v3.14.2

Compare Source

v3.14.1

Compare Source

v3.14.0

Compare Source


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the deps: minor label Dec 22, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Dec 22, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: uv.lock
Command failed: uv lock --upgrade-package psutil --upgrade-package python
Using CPython 3.13.8
error: The Python request from `.python-version` resolved to Python 3.13.8, which is incompatible with the project's Python requirement: `>=3.14.2, <3.15` (from `project.requires-python`)
Use `uv python pin` to update the `.python-version` file to a compatible version

@coderabbitai
Copy link

coderabbitai bot commented Dec 22, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sentry
Copy link

sentry bot commented Dec 22, 2025

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@renovate renovate bot force-pushed the renovate/minor branch 2 times, most recently from fb226ad to 41d2094 Compare December 23, 2025 16:38
@renovate renovate bot changed the title chore(deps): update python to >=3.14.2,<3.15 chore(deps): update minor Dec 23, 2025
@renovate renovate bot changed the title chore(deps): update minor chore(deps): update python to >=3.14.2,<3.15 Dec 29, 2025

[project]
name = "tux"
version = "0.1.0"

This comment was marked as outdated.

@renovate renovate bot changed the title chore(deps): update python to >=3.14.2,<3.15 chore(deps): update minor Dec 30, 2025
| datasource     | package | from    | to     |
| -------------- | ------- | ------- | ------ |
| pypi           | psutil  | 7.1.3   | 7.2.0  |
| python-version | python  | 3.13.11 | 3.14.2 |
name = "tux"
version = "0.1.0"
requires-python = ">=3.13.2,<3.14"
requires-python = ">=3.14.2,<3.15"
Copy link

Choose a reason for hiding this comment

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

Bug: The Python 3.14 upgrade is incompatible with the specified minimum versions of pydantic, sqlmodel, and sqlalchemy, which lack support for PEP 649's deferred annotation evaluation.
Severity: CRITICAL | Confidence: High

🔍 Detailed Analysis

The upgrade to Python 3.14.2 makes PEP 649 (deferred annotation evaluation) the default behavior. However, the current dependency constraints (pydantic>=2.11.7, sqlmodel>=0.0.24, sqlalchemy>=2.0.14) specify versions that do not support this fundamental change in how type annotations are processed. Libraries like Pydantic, SQLModel, and SQLAlchemy rely heavily on runtime type annotation introspection. Without the necessary updates, the application will likely fail during startup when loading Pydantic configuration models or during the first database interaction when initializing SQLModel/SQLAlchemy ORM definitions, leading to a crash.

💡 Suggested Fix

Update the dependency constraints in pyproject.toml to versions that officially support Python 3.14 and PEP 649. Specifically, set pydantic>=2.12.0, sqlmodel>=0.0.27, and sqlalchemy>=2.0.45 (or a more recent 2.0.x version).

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: pyproject.toml#L8

Potential issue: The upgrade to Python 3.14.2 makes PEP 649 (deferred annotation
evaluation) the default behavior. However, the current dependency constraints
(`pydantic>=2.11.7`, `sqlmodel>=0.0.24`, `sqlalchemy>=2.0.14`) specify versions that do
not support this fundamental change in how type annotations are processed. Libraries
like Pydantic, SQLModel, and SQLAlchemy rely heavily on runtime type annotation
introspection. Without the necessary updates, the application will likely fail during
startup when loading Pydantic configuration models or during the first database
interaction when initializing SQLModel/SQLAlchemy ORM definitions, leading to a crash.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8067477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant