Skip to content

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Oct 16, 2024

What does this Pull Request accomplish?

Update the dependency versions in pyproject.toml to be compatible with Python 3.13. For per-Python version constraints, make sure the last version is ^3.13 so that it will also cover 3.14, etc.

Loosen protobuf version constraint to allow protobuf 5.x because grpcio-tools 1.67 requires protobuf 5.x.

Enable running unit tests with Python 3.13 for the PR/CI workflows. I didn't do this for system tests yet because we need to update our self-hosted runner image.

Fix a couple of system test failures:

  • A couple of example tests were failing due to new examples that time out if there is no signal. We didn't catch these before because they are skipped in the PR/CI workflows.
  • test_in_stream.py had incorrect constants for +/-full-scale int16 values, which causes an overflow error with the updated numpy.

Why should this Pull Request be merged?

Partially fixes #644

What testing has been done?

poetry run pytest -v

=============================================== short test summary info ===============================================
FAILED tests/component/system/test_device_properties.py::test___ext_cal_last_date_and_time___no_errors[library_init_kwargs] - assert 2009 > 2009
FAILED tests/component/system/test_device_properties.py::test___ext_cal_last_date_and_time___no_errors[grpc_init_kwargs] - assert 2009 > 2009
========================= 2 failed, 2286 passed, 48 skipped, 11 xfailed in 200.26s (0:03:20) ==========================

The failures are expected, I have a really old X Series board that has never been recalibrated.

Copy link
Contributor

github-actions bot commented Oct 16, 2024

Test Results

    36 files  +  2      36 suites  +2   53m 27s ⏱️ + 1m 27s
 2 348 tests ±  0   1 994 ✅ ±  0    354 💤 ±0  0 ❌ ±0 
42 692 runs  +420  36 440 ✅ +420  6 252 💤 ±0  0 ❌ ±0 

Results for commit ecd6806. ± Comparison against base commit 41cb6ba.

♻️ This comment has been updated with latest results.

@bkeryan bkeryan merged commit ee791a3 into master Oct 16, 2024
19 checks passed
@bkeryan bkeryan deleted the users/bkeryan/python-3.13 branch October 16, 2024 22:08
bkeryan added a commit that referenced this pull request Oct 17, 2024
* tests: Fix OverflowError: Python integer 36767 out of bounds for int16

* tests: Skip more examples

* nidaqmx: Update dependency versions for Python 3.13 support

* Update poetry.lock

* GitHub: Enable unit tests on Python 3.13

* tests: Reformat with black

* tests: Fix E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

* nidaqmx: Allow newer types-protobuf

* nidaqmx: Update poetry.lock

(cherry picked from commit ee791a3)
bkeryan added a commit that referenced this pull request Oct 17, 2024
* nidaqmx: Fix installation with Python 3.13 (#645)

* tests: Fix OverflowError: Python integer 36767 out of bounds for int16

* tests: Skip more examples

* nidaqmx: Update dependency versions for Python 3.13 support

* Update poetry.lock

* GitHub: Enable unit tests on Python 3.13

* tests: Reformat with black

* tests: Fix E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

* nidaqmx: Allow newer types-protobuf

* nidaqmx: Update poetry.lock

(cherry picked from commit ee791a3)

* tox: Enable Python 3.13 (#646)

(cherry picked from commit dab722c)

* nidaqmx: Add Python 3.13 trove classifier and update changelog (#649)

* nidaqmx: Add Python 3.13 trove classifier

* nidaqmx: Update changelog

(cherry picked from commit ba8a962)
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.

nidaqmx doesn't support Python 3.13+

2 participants