Skip to content

Complete TD-001 and TD-002: Upgrade to Python 3.11+ and OSMnx 2.0.6#9

Merged
PhilipMathieu merged 2 commits intomainfrom
fix-td001-td002-ErTyA
Nov 20, 2025
Merged

Complete TD-001 and TD-002: Upgrade to Python 3.11+ and OSMnx 2.0.6#9
PhilipMathieu merged 2 commits intomainfrom
fix-td001-td002-ErTyA

Conversation

@PhilipMathieu
Copy link
Owner

Summary

This PR completes two technical debt items from the backlog:

TD-001: Python 3.10 Version Lock ✅

  • Updated requires-python to >=3.11 in pyproject.toml
  • Updated tool configurations (Black, Ruff, mypy) for Python 3.11+
  • Updated .python-version to 3.11
  • Updated CI/CD workflows to use Python 3.11
  • Tested compatibility - all dependencies support Python 3.11+

TD-002: Outdated OSMnx Version ✅

  • Updated OSMnx from 1.3.0 to >=2.0.0 (latest: 2.0.6)
  • Verified API compatibility - all functions work correctly
  • No code changes required - backward compatible API
  • Tested imports and function availability

Validation

  • ✅ All 6 validation tests passed
  • ✅ 23/23 pytest tests passed
  • ✅ All project imports working
  • ✅ OSMnx API functions available and compatible

Changes

  • pyproject.toml - Python 3.11+ and OSMnx 2.0.6
  • .python-version - Updated to 3.11
  • .github/workflows/code-quality.yml - Python 3.11
  • .github/workflows/security.yml - Python 3.11
  • BACKLOG.md - Marked TD-001 and TD-002 as completed
  • validate_upgrade.py - New validation script

Testing

Run the validation script:

uv run python validate_upgrade.py

All tests pass successfully.

- TD-001: Python 3.10 Version Lock
  * Updated requires-python to >=3.11 in pyproject.toml
  * Updated tool configs (Black, Ruff, mypy) for Python 3.11+
  * Updated .python-version to 3.11
  * Updated CI/CD workflows to use Python 3.11
  * Tested compatibility - all dependencies support Python 3.11+

- TD-002: Outdated OSMnx Version
  * Updated OSMnx from 1.3.0 to >=2.0.0 (latest: 2.0.6)
  * Verified API compatibility - all functions work correctly
  * No code changes required - backward compatible API
  * Tested imports and function availability

All changes tested and validated.
- Validates Python version (3.11+)
- Validates OSMnx version (2.0+)
- Tests all key imports and API functions
- Includes timeout protection for long operations
- Generates validation log file
@github-actions
Copy link

📦 PR Preview Built

The site has been built and is available as a downloadable artifact in this workflow run.

To preview locally:

  1. Download the artifact from the workflow run
  2. Extract and open index.html in your browser

Or wait for this PR to be merged to see it live on GitHub Pages.

@PhilipMathieu PhilipMathieu merged commit c32ac1f into main Nov 20, 2025
6 of 7 checks passed
@PhilipMathieu PhilipMathieu deleted the fix-td001-td002-ErTyA branch November 20, 2025 03:05
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