Skip to content

build: allow Python 3.14 - #392

Merged
asukaminato0721 merged 3 commits into
langgenius:mainfrom
Luckyou-d:fix/allow-python-314
Nov 18, 2026
Merged

asukaminato0721 merged 3 commits into
langgenius:mainfrom
Luckyou-d:fix/allow-python-314

Conversation

@Luckyou-d

@Luckyou-d Luckyou-d commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Search existing issues and pull requests to confirm this change is not a duplicate
  3. Open or identify the issue this pull request resolves or advances
  4. Use a Conventional Commits title for this pull request, and mark breaking changes with !
  5. Remember that the pull request title will become the squash merge commit message
  6. If CLA Assistant prompts you, sign CLA.md in the pull request conversation

Related Issue

Fixes #386

Problem

pyproject.toml declares requires-python = '>=3.12,<3.14', so pip install graphon fails on Python 3.14 with "No matching distribution found", although the package appears to work there.

Fix

Summary

Allow <3.15 and add 3.14 to the CI test matrix so it stays covered.

Verification

Tested locally on CPython 3.14.10 (Windows):

  • graphon imports cleanly.
  • Full pytest tests/ results match 3.13 side by side with the same optional dev dependencies installed: 169/169 engine tests pass on both; the remaining failures are identical in kind on both versions (repository-docs metadata fixtures, a Windows path-separator encoder test, missing optional dev deps) and are not Python-3.14-specific.
  • The only new warning on 3.14 is a DeprecationWarning from the unstructured dependency (asyncio.iscoroutinefunction), not from graphon.

The gevent cooperation tests (the most 3.14-sensitive area) pass with gevent>=26.8.0.

Checklist

  • This pull request links the issue it resolves or advances
  • This pull request title follows Conventional Commits, and any breaking change is marked with !
  • If CLA Assistant prompted me, I signed CLA.md in the pull request conversation

No new CLA signing prompt was received during preparation.

requires-python excluded 3.14 while the package appears to work there.
Verified locally on CPython 3.14.10 (Windows): graphon imports, and the
test suite matches the 3.13 results - engine tests 169/169, with the
same environment-related failures (docs metadata fixtures, a Windows
path-separator encoder test, missing optional dev deps) on both
versions and nothing 3.14-specific beyond a DeprecationWarning from the
unstructured dependency (asyncio.iscoroutinefunction).

Add 3.14 to the CI matrix so it stays covered.

Fixes langgenius#386
@asukaminato0721
asukaminato0721 enabled auto-merge (squash) November 17, 2026 07:27

@asukaminato0721 asukaminato0721 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ci

asukaminato0721's review: the lockfile still said requires-python >=3.12,
<3.14, so CI's uv lock --check failed once pyproject opened the range to
<3.15.
auto-merge was automatically disabled November 18, 2026 07:14

Head branch was pushed to by a user without write access

@Luckyou-d

Copy link
Copy Markdown
Contributor Author

Thanks for the review - fixed in 3696d46. The lockfile still said requires-python = ">=3.12, <3.14", so uv lock --check failed as soon as pyproject opened the range to <3.15. Regenerated it against the new range (it now carries 3.13/3.14 resolution markers and cp314 wheels); uv lock --check passes locally.

@asukaminato0721
asukaminato0721 enabled auto-merge (squash) November 18, 2026 07:16
@asukaminato0721
asukaminato0721 self-requested a review November 18, 2026 07:16
@asukaminato0721
asukaminato0721 merged commit 803dcac into langgenius:main Nov 18, 2026
7 checks passed
@Luckyou-d

Copy link
Copy Markdown
Contributor Author

Thanks for the review and the quick merge, @asukaminato0721!

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.

Allow Python 3.14 (requires-python excludes it)

2 participants