Skip to content

Add Python 3.12 support#14

Merged
leiterrl merged 3 commits intomainfrom
copilot/add-support-for-python-3-12
Mar 24, 2026
Merged

Add Python 3.12 support#14
leiterrl merged 3 commits intomainfrom
copilot/add-support-for-python-3-12

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 24, 2026

Several pinned dependencies predate Python 3.12, and pkg_resources (removed pkgutil.ImpImporter) breaks on 3.12 at import time.

Changes

  • porch/__init__.py: Replace pkg_resources.get_distribution() with importlib.metadata.version() — the standard since Python 3.8
  • requirements.txt: Bump dependencies to versions shipping Python 3.12 wheels:
    • numpy 1.23.1 → 1.26.4 (first release with 3.12 wheels)
    • scipy 1.13.1 (added — was missing entirely, required by porch.geometry)
    • flake8 4.0.1 → 7.0.0
    • matplotlib 3.5.2 → 3.7.5
    • seaborn 0.11.2 → 0.13.2
    • tensorboard 2.9.1 → 2.14.1
    • pytest 7.1.2 → 7.4.4
    • build 0.7.0 → 1.0.3
  • pyproject.toml:
    • Fix readme = "README.rst"README.md (file didn't exist)
    • Add classifiers for Python 3.9–3.12
  • .github/workflows/python-test.yml: Expand build matrix to ['3.10', '3.12']

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI and others added 2 commits March 24, 2026 15:39
Co-authored-by: leiterrl <48442682+leiterrl@users.noreply.github.com>
Agent-Logs-Url: https://github.com/leiterrl/porch/sessions/e5c0a3a1-8d8e-450c-8fb0-3079520d0962
Copilot AI changed the title [WIP] Add support for Python 3.12 Add Python 3.12 support Mar 24, 2026
Copilot AI requested a review from leiterrl March 24, 2026 15:42
@leiterrl leiterrl marked this pull request as ready for review March 24, 2026 16:45
@leiterrl leiterrl merged commit 46e6b18 into main Mar 24, 2026
7 checks passed
@leiterrl leiterrl deleted the copilot/add-support-for-python-3-12 branch March 24, 2026 16:49
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.

2 participants