Skip to content

Comments

Updates#37

Closed
nathanchenseanwalter wants to merge 2 commits intomasterfrom
updates
Closed

Updates#37
nathanchenseanwalter wants to merge 2 commits intomasterfrom
updates

Conversation

@nathanchenseanwalter
Copy link
Collaborator

@nathanchenseanwalter nathanchenseanwalter commented Dec 27, 2025

Note

Python version support

  • Sets requires-python to >=3.7, <=3.12 and removes the 3.13 classifier across metadata

Dependencies/packaging

  • Loosens pins for numpy and pydantic in pyproject.toml and corresponding egg-info
  • Minor cleanup to requirements.txt

Metadata

  • Adds maintainer Nathaniel Chen
  • Updates PKG-INFO with a compatibility notice and cloning instructions

CI

  • Normalizes .github/workflows/python-app.yml formatting; maintains matrix for OS and Python 3.9–3.12, linting with ruff, build, and pytest steps

Written by Cursor Bugbot for commit 33b6a11. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

"numpy>=1.13.0",
"pydantic>=1.10,<2",
"numpy",
"pydantic",
Copy link

Choose a reason for hiding this comment

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

Pydantic v2 incompatibility due to removed version constraint

The pydantic dependency constraint was changed from pydantic>=1.10,<2 to just pydantic, removing the upper bound that prevented Pydantic v2 installation. The codebase in types.py uses Pydantic v1-specific APIs including the class Config: inner class pattern and update_forward_refs() method, both of which are incompatible with Pydantic v2. This will cause runtime errors when users install the package with Pydantic v2. Additionally, requirements.txt still has the old constraint pydantic >= 1.10, <2, creating an inconsistency between installation methods.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the project's Python version support and dependency management. The main purpose is to remove Python 3.13 support and modernize dependency constraints while adding a new maintainer.

Key Changes:

  • Restricts Python version support to 3.7-3.12 (removing 3.13)
  • Removes version constraints from numpy and pydantic dependencies
  • Adds Nathaniel Chen as a maintainer
  • Updates the lock file to reflect Python 3.13 removal across all packages

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pyproject.toml Updated Python version constraint to <=3.12, removed numpy and pydantic version pins, added new maintainer, removed Python 3.13 classifier
requirements.txt Removed trailing newline (no functional changes to dependencies)
src/keras2c.egg-info/requires.txt Updated to match pyproject.toml dependency changes
src/keras2c.egg-info/PKG-INFO Added breaking change warning dated July 9th, 2025, updated maintainer list, modified Python version constraint
.github/workflows/python-app.yml Reformatted YAML indentation (no functional changes)
uv.lock Removed all Python 3.13 wheel entries and updated resolution markers to reflect new Python version constraint

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

dynamic = ["version"]
name = "keras2c"
requires-python = ">=3.7"
requires-python = ">=3.7, <=3.12"
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

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

The Python version constraint has been changed to include an upper bound of 3.12, effectively dropping support for Python 3.13. However, this appears inconsistent with the removal of the Python 3.13 classifier (line 50 in the diff). While this change may be intentional to match current compatibility, it would be helpful to ensure this aligns with the project's support policy and that users are properly informed through release notes or documentation.

Copilot uses AI. Check for mistakes.
install: >-
mingw-w64-x86_64-gcc
make
- name: Set up Python 3.10
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

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

The step name "Set up Python 3.10" is misleading since the actual Python version being set up is dynamic based on the matrix variable. The name should be updated to reflect this, for example: "Set up Python ${{ matrix.python-version }}" or simply "Set up Python".

Suggested change
- name: Set up Python 3.10
- name: Set up Python ${{ matrix.python-version }}

Copilot uses AI. Check for mistakes.
Comment on lines +12 to +13
"numpy",
"pydantic",
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

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

The dependency version constraints are inconsistent between pyproject.toml and requirements.txt. In pyproject.toml, numpy and pydantic have no version constraints, but requirements.txt still specifies numpy >= 1.13.0 and pydantic >= 1.10, <2. These files should be kept in sync to avoid confusion and potential installation issues.

Suggested change
"numpy",
"pydantic",
"numpy>=1.13.0",
"pydantic>=1.10,<2",

Copilot uses AI. Check for mistakes.
Comment on lines +12 to +13
"numpy",
"pydantic",
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

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

Removing all version constraints from numpy and pydantic dependencies could lead to compatibility issues. While pydantic was previously constrained to <2, removing this constraint entirely may allow pydantic v2 to be installed, which has breaking changes from v1. Consider maintaining at least an upper bound constraint or testing compatibility with the latest versions before removing constraints entirely.

Suggested change
"numpy",
"pydantic",
"numpy<2.0",
"pydantic<2.0",

Copilot uses AI. Check for mistakes.
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.

1 participant