[PR #619] Fix Python 3.13 compatibility #630

Open
opened 2026-01-29 21:49:10 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TencentARC/GFPGAN/pull/619
Author: @Disty0
Created: 6/11/2025
Status: 🔄 Open

Base: masterHead: master


📝 Commits (3)

📊 Changes

2 files changed (+29 additions, -2 deletions)

View changed files

pyproject.toml (+28 -0)
📝 setup.py (+1 -2)

📄 Description

Fixes Python 3.13 compatibility.

exec doesn't update locals with Python 3.13.
This PR parses the version file as a text instead of running exec.

GFPGAN cannot be installed with Python 3.13 without this PR.

Relevant issue from BasicSR repo is this: https://github.com/XPixelGroup/BasicSR/issues/725
Issue thread is from BasicSR but the issue and the trace is the same in GFPGAN.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TencentARC/GFPGAN/pull/619 **Author:** [@Disty0](https://github.com/Disty0) **Created:** 6/11/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`09b1190`](https://github.com/TencentARC/GFPGAN/commit/09b1190eabbc77e5f15c61fa7c38a2064b403e20) Fix Python 3.13 - [`86c4253`](https://github.com/TencentARC/GFPGAN/commit/86c4253654c883523b9cf01c2ad20b08559a82a2) add pyproject.toml - [`ae0f7e4`](https://github.com/TencentARC/GFPGAN/commit/ae0f7e44fafe0ef4716f3c10067f8f379b74c21c) fix dependencies ### 📊 Changes **2 files changed** (+29 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `pyproject.toml` (+28 -0) 📝 `setup.py` (+1 -2) </details> ### 📄 Description Fixes Python 3.13 compatibility. exec doesn't update locals with Python 3.13. This PR parses the version file as a text instead of running exec. GFPGAN cannot be installed with Python 3.13 without this PR. Relevant issue from BasicSR repo is this: https://github.com/XPixelGroup/BasicSR/issues/725 Issue thread is from BasicSR but the issue and the trace is the same in GFPGAN. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 21:49:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#630