Skip to content

support python 3.11 through 3.14 - #22

Merged
davebiagioni merged 10 commits into
mainfrom
python-3.11-3.14
Nov 13, 2026
Merged

davebiagioni merged 10 commits into
mainfrom
python-3.11-3.14

Conversation

@davebiagioni

@davebiagioni davebiagioni commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

python 3.10 went end of life in october 2026, so this drops it and adds 3.13 and 3.14.

changes

  • requires-python = ">=3.11", relocked. the lock gets ~550 lines shorter because the 3.10-only backports drop out
  • ci only runs 3.14. the org runner pool is congested, and with uv.lock pinning deps, extra versions mostly re-test the same thing. 3.11-3.13 were verified locally (table below)
  • ci passes the matrix version to uv sync, so uv can't quietly pick some other interpreter than the one we think we're testing
  • readme says 3.11 through 3.14

no dependency changes needed. everything already ships wheels for 3.13 and 3.14.

testing

locally on macOS, tests + example notebooks on each:

python tests notebooks
3.11.11 60 passed, 12 xfailed 9 passed
3.12.11 60 passed, 12 xfailed 9 passed
3.13.5 60 passed, 12 xfailed 9 passed
3.14.4 60 passed, 12 xfailed 9 passed

davebiagioni and others added 5 commits November 11, 2026 14:25
bugs:
- PVEnv.reset() returned None
- to_scaled never warned when x was above high (operator precedence)
- FiveZoneROMEnv.step_reward counted upper violations twice, lower never
- building env assigned self.model instead of self.models
- get_bus_voltage_by_name replaced every occurrence of the phase letter
- energy storage obs label typo (stage_of_charge -> state_of_charge)
- energy storage used Timedelta.seconds instead of total_seconds()
- MultiAgentEnv ended episodes one step early (max_episode_steps=250 ran 249)
- reward_structure={"alpha": ...} was silently swallowed by **kwargs; alpha
  is now a real FiveZoneROMThermalEnergyEnv arg (default 0.2, same as before)
  and the dead config is removed from the scenario and notebook

cleanup: run_command -> Command (kills ~2.5k deprecation warnings in tests),
print -> logger, drop duplicate/no-op abstractmethods, mutable defaults, and
dead code.

docs: readme install/test steps, examples index, typos, pyproject metadata,
ci comments.

adds tests/test_regressions.py covering each fix.

Co-Authored-By: Claude <noreply@anthropic.com>
3.10 hit end of life in october 2026. tests and example notebooks pass
on 3.13 and 3.14 with no dependency changes.

- requires-python >=3.11, relock (drops the 3.10-only backport packages)
- ci matrix 3.11-3.14, and pass the matrix version to uv sync so uv
  can't pick a different interpreter than the one under test
- readme

Co-Authored-By: Claude <noreply@anthropic.com>
macos runners are shared across the whole org with a much lower concurrency
cap, so jobs were sitting in the queue. nothing here needs macos.

Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts:
#	.github/workflows/main.yml
@davebiagioni
davebiagioni added this pull request to stack #23 November 11, 2026 21:37
davebiagioni and others added 3 commits November 11, 2026 15:30
Co-Authored-By: Claude <noreply@anthropic.com>
tests were written from signatures and docstrings only, without reading
the implementation. where the code disagrees with its docs the test is
kept and marked xfail(strict=True) with the discrepancy in the reason.

Co-authored-by: davebiagioni <davebiagioni@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Base automatically changed from fix/small-bugs-and-docs to main November 13, 2026 02:52
# Conflicts:
#	.github/workflows/main.yml
#	README.md
#	uv.lock
the org's runner pool is congested, and with uv.lock pinning deps the
extra versions mostly re-test the same thing.
@davebiagioni
davebiagioni merged commit db6c3c4 into main Nov 13, 2026
2 checks passed
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