Skip to content

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Sep 16, 2025

  • This contribution adheres to CONTRIBUTING.md.
  • I've updated CHANGELOG.md if applicable.
  • I've added tests applicable for this pull request

What does this Pull Request accomplish?

Migrate pyproject.toml to Poetry 2.x format, using https://pypi.org/project/poetry-plugin-migrate/ and instructions from https://dev.azure.com/ni/DevCentral/_wiki/wikis/AppCentral.wiki/144493/How-to-Migrate-from-Poetry-1.x-to-Poetry-2.x (NI internal link)

Update Sphinx versioning to cover all Python versions.

Update ReadTheDocs config to use Poetry 2.1.4.

Add tool.ni-python-styleguide.application-import-names to fix import sorting. This is a workaround for ni/python-styleguide#233

Update docs/conf.py to use the new pyproject.toml format.

Why should this Pull Request be merged?

Resolve warnings about deprecated syntax.

What testing has been done?

  • Ran poetry build and diffed package metadata.
  • PR build.

Copy link
Contributor

github-actions bot commented Sep 16, 2025

Test Results

    38 files  ±0      38 suites  ±0   1h 1m 26s ⏱️ +3s
 2 751 tests ±0   2 236 ✅ ±0    515 💤 ±0  0 ❌ ±0 
48 114 runs  ±0  40 210 ✅ ±0  7 904 💤 ±0  0 ❌ ±0 

Results for commit f49f596. ± Comparison against base commit 1f92791.

♻️ This comment has been updated with latest results.

@bkeryan
Copy link
Collaborator Author

bkeryan commented Sep 16, 2025

metadata 1.2.0 vs. this PR. Most of the changes are unrelated to this PR.

--- C:\Users\bkeryan\AppData\Local\Temp\metadata1.txt	2025-09-16 18:30:03.000000000 -0500
+++ C:\Users\bkeryan\AppData\Local\Temp\metadata2.txt	2025-09-16 18:33:21.000000000 -0500
@@ -1,9 +1,9 @@
 Metadata-Version: 2.3
 Name: nidaqmx
-Version: 1.2.0
+Version: 1.3.0.dev0
 Summary: NI-DAQmx Python API
 License: MIT
 Keywords: nidaqmx,nidaq,daqmx,daq
 Author: NI
 Author-email: [email protected]
 Maintainer: Zach Hindes
@@ -23,24 +23,24 @@
 Classifier: Programming Language :: Python :: 3.12
 Classifier: Programming Language :: Python :: 3.13
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: System :: Hardware :: Hardware Drivers
 Provides-Extra: grpc
-Requires-Dist: click (>=8.0.0) ; python_version >= "3.10" and python_version < "4.0"
-Requires-Dist: click (>=8.0.0,<8.2.0) ; python_version == "3.9"
+Requires-Dist: click (>=8.0.0)
 Requires-Dist: deprecation (>=2.1)
 Requires-Dist: distro (>=1.9.0) ; sys_platform == "linux"
 Requires-Dist: grpcio (>=1.49.0,<2.0) ; extra == "grpc"
 Requires-Dist: hightime (>=0.2.2)
-Requires-Dist: numpy (>=1.22) ; python_version >= "3.9" and python_version < "3.12"
-Requires-Dist: numpy (>=1.26) ; python_version == "3.12"
+Requires-Dist: nitypes (>=0.1.0dev10)
+Requires-Dist: numpy (>=1.22) ; python_version >= "3.9" and python_version < "3.13"
 Requires-Dist: numpy (>=2.1) ; python_version >= "3.13" and python_version < "4.0"
 Requires-Dist: protobuf (>=4.21) ; extra == "grpc"
 Requires-Dist: python-decouple (>=3.8)
 Requires-Dist: requests (>=2.25.0)
+Requires-Dist: typing_extensions (>=4.0.0)
 Requires-Dist: tzlocal (>=5.0,<6.0)
 Project-URL: Documentation, https://nidaqmx-python.readthedocs.io
 Project-URL: Repository, https://github.com/ni/nidaqmx-python
 Description-Content-Type: text/x-rst
 
 +------------+-----------------------------------------------------------+
@@ -97,13 +97,16 @@
 for which versions of the driver support your hardware on a given operating
 system.
 
 Python Version Support
 ----------------------
 
-**nidaqmx** supports CPython 3.9+ and PyPy3.
+**nidaqmx** supports CPython 3.9+.
+
+**nidaqmx** supports PyPy3 for non-gRPC use cases. For the status of PyPy support for gRPC,
+see `PyPy support (grpc/grpc#4221) <https://github.com/grpc/grpc/issues/4221>`_.
 
 Installation
 ============
 
 You can use `pip <http://pypi.python.org/pypi/pip>`_ to download **nidaqmx** from
 `PyPI <https://pypi.org/project/nidaqmx/>`_ and install it::

@bkeryan bkeryan merged commit acba5ea into master Sep 17, 2025
50 of 52 checks passed
@bkeryan bkeryan deleted the users/bkeryan/poetry-2.x branch September 17, 2025 21:17
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.

2 participants