Skip to content

Update dependencies#1

Open
greglboxer wants to merge 1 commit intomasterfrom
update-sqlalchemy-and-python
Open

Update dependencies#1
greglboxer wants to merge 1 commit intomasterfrom
update-sqlalchemy-and-python

Conversation

@greglboxer
Copy link
Collaborator

@greglboxer greglboxer commented Feb 14, 2026

Dependencies Updated:

  • SQLAlchemy: ^1.0 → ^2.0
  • Python: ^3.7 → ^3.10 (required by SQLAlchemy v2)
  • jsonschema: ^3 → ^4
  • PyYAML: ^5 → ^6
  • Flask-SQLAlchemy: ^2 → ^3
  • typing_extensions: ^4.6
  • Removed sqlalchemy-stubs (now built into SQLAlchemy v2)
  • Removed pytest-flake8 (incompatible with flake8 v7.3)

Code Updates:

  • Migrated declarative_base import from sqlalchemy.ext.declarative to sqlalchemy.orm
  • Replaced deprecated engine.execute() with engine.connect() context manager pattern
  • Added text() wrapper for raw SQL queries
  • Removed checks for internal SQLAlchemy relationship attributes (.secondary, .order_by)
  • Updated pytest configuration: --strict → --strict-markers

Test Fixes:

  • Updated version strings to PEP 440 compliant format ("version 1" → "1.0.0")
  • Replaced obsolete wheel import error test with build error test
  • Updated mypy output expectations for SQLAlchemy v2 type hints
  • Fixed 9 test files using old declarative_base import

  Dependencies Updated:

   - SQLAlchemy: ^1.0 → ^2.0
   - Python: ^3.7 → ^3.10 (required by SQLAlchemy v2)
   - jsonschema: ^3 → ^4
   - PyYAML: ^5 → ^6
   - Flask-SQLAlchemy: ^2 → ^3
   - typing_extensions: ^4.6
   - Removed sqlalchemy-stubs (now built into SQLAlchemy v2)
   - Removed pytest-flake8 (incompatible with flake8 v7.3)

  Code Updates:

   - Migrated declarative_base import from sqlalchemy.ext.declarative to sqlalchemy.orm
   - Replaced deprecated engine.execute() with engine.connect() context manager pattern
   - Added text() wrapper for raw SQL queries
   - Removed checks for internal SQLAlchemy relationship attributes (.secondary, .order_by)
   - Updated pytest configuration: --strict → --strict-markers

  Test Fixes:

   - Updated version strings to PEP 440 compliant format ("version 1" → "1.0.0")
   - Replaced obsolete wheel import error test with build error test
   - Updated mypy output expectations for SQLAlchemy v2 type hints
   - Fixed 9 test files using old declarative_base import
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