Skip to content

build(deps): pin calendars, cap sqlalchemy - #66

Open
kcrmin wants to merge 3 commits into
developfrom
build/harden-dependency-ranges
Open

kcrmin wants to merge 3 commits into
developfrom
build/harden-dependency-ranges

Conversation

@kcrmin

@kcrmin kcrmin commented Oct 26, 2026

Copy link
Copy Markdown
Member

What and why

  • pandas-market-calendars 5.4.0 takes its XNYS holidays, early closes and session times from exchange-calendars, which this repo did not constrain. This pins exchange-calendars==4.13.2, extends the CalendarSourceDrift refusal to cover that release, and adds a test that the installed requirements pin both libraries exactly.
  • SQLAlchemy is capped at <2.2 because 2.1 retyped Result. mypy is pinned to 2.3.0, the release backtest-engine uses, and the two scalar_one() sites it flags are annotated.

Depends on #65; this branch starts from it. Paired with the backtest-engine branch of the same name.

Verified

CPython 3.12.13:

Checklist

  • Tests pass
  • Calendar label unchanged (no trading_sessions re-keying)
  • No secrets or personal data

reference.sessions rejects every release but 5.4.0, and fresh installs
now resolve 5.5.0, failing gate3, gate8 and the image calendar path.
pandas-market-calendars 5.4.0 serves XNYS from exchange-calendars, so
the drift refusal now checks both releases and the pin is tested.
SQLAlchemy 2.1 retyped Result; capping the minor and pinning mypy to
the backtest-engine release keeps the type gate from moving by itself.
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