Skip to content

Commit acba5ea

Browse files
authored
nidaqmx: Migrate pyproject.toml to Poetry 2.x format (#835)
* nidaqmx: Migrate pyproject.toml to Poetry 2.x format * chore: Update poetry.lock * docs: Update changelog * docs: Use Poetry 2.1.4 for ReadTheDocs * nidaqmx: Add application-import-names to fix import sorting * docs: Update conf.py to use the new project section
1 parent 1f92791 commit acba5ea

File tree

5 files changed

+317
-50
lines changed

5 files changed

+317
-50
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build:
88
python: "3.11"
99
jobs:
1010
post_create_environment:
11-
- pip install poetry==1.8.2
11+
- pip install poetry==2.1.4
1212
post_install:
1313
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --only main,docs
1414

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ All notable changes to this project will be documented in this file.
4646
* The `nidaqmx` distribution package now specifies only a lower bound for `click`.
4747
* Clarify PyPy support and enable unit testing with PyPy.
4848
* Adopt ni-python-styleguide for hand-written code.
49+
* Upgrade to Poetry 2.x and migrate `pyproject.toml` format.
4950

5051
* ### Known Issues
5152
* ...

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
pyproj_file = root_path / "pyproject.toml"
2828
proj_config = toml.loads(pyproj_file.read_text())
2929

30-
project = proj_config["tool"]["poetry"]["name"]
30+
project = proj_config["project"]["name"]
3131
company = "National Instruments"
3232
author = company
3333
copyright = f"2017-%Y, {company}"
3434

3535
# Release is the full version, version is only the major component
36-
release = proj_config["tool"]["poetry"]["version"]
36+
release = proj_config["project"]["version"]
3737
version = ".".join(release.split(".")[:2])
38-
description = proj_config["tool"]["poetry"]["description"]
38+
description = proj_config["project"]["description"]
3939

4040
language = "en"
4141

0 commit comments

Comments
 (0)