AllenNeuralDynamics / AllenNeuralDynamics/aind-metadata-mapper

Add support for Python 3.12 and 3.13 testing

オープン
#263 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
0
フォーク
2
平均マージ
1日 7時間
マージ済み PR(30日)
1

説明

## Feature Request
Add Python 3.12 and 3.13 to our GitHub Actions test matrix. Currently, we test against Python 3.9-3.11.

## Motivation
- Python 3.12 was released in October 2023
- Python 3.13 was released in ~December~ October 2024
- We should ensure compatibility with all currently released Python versions

## Known Issues to Address
1. Python 3.12 removes several deprecated unittest methods:
- `TestCase.assertEquals()` -> `assertEqual()`
- `TestCase.assertNotEquals()` -> `assertNotEqual()`
- `TestCase.assertAlmostEquals()` -> `assertAlmostEqual()`
- And others (see [Python 3.12 changelog](https://docs.python.org/3/whatsnew/3.12.html#unittest))

2. Our test suite currently uses some of these deprecated methods, particularly in:
- `tests/test_open_ephys/test_utils/test_behavior_utils.py`
- `tests/test_open_ephys/test_utils/test_stim_utils.py`

## Implementation Steps
1. Update `.github/workflows/run_dev_tests.yml` to include Python 3.12 and 3.13:
```yaml
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
```
2. Update deprecated unittest assertions
3. Test and fix any other compatibility issues that arise

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。