Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/check_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
id: setup-python
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: 2.3.2
# Updating poetry.lock for all of the examples takes over 6 minutes, so it's worth caching.
- name: Cache poetry.lock
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check_nimg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: 2.3.2
- name: Analyze generator
uses: ni/python-actions/analyze-project@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check_nims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: 2.3.2
- name: Analyze generator
uses: ni/python-actions/analyze-project@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check_nims_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
id: setup-python
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: 2.3.2
- name: Install ni-measurement-plugin-sdk-service (all extras, docs)
run: poetry install -v --all-extras --with docs
- name: Build docs and check for errors/warnings
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ env:
"sdk": "ni_measurement_plugin_sdk",
"service": "ni_measurement_plugin_sdk_service"
}
poetry-version: 2.3.2

jobs:
# Do not call check_examples.yml because the examples may depend on the version we are releasing.
Expand All @@ -60,6 +61,8 @@ jobs:
uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: ${{ env.poetry-version }}
- name: Check project version
if: github.event_name == 'release'
uses: ni/python-actions/check-project-version@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
Expand Down Expand Up @@ -109,6 +112,8 @@ jobs:
uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: ${{ env.poetry-version }}
- name: Get version
id: get-version
run: echo "version=$(poetry version --short)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -147,6 +152,8 @@ jobs:
uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: ${{ env.poetry-version }}
# Create one pull request that updates all three packages.
- name: Update generator project version
uses: ni/python-actions/update-project-version@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/run_system_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
id: setup-python
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: 2.3.2
- name: Copy and rename .env.simulation to .env
run: cp examples/.env.simulation .env

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # v0.7.1
with:
poetry-version: 2.3.2

# ni-measurement-plugin-sdk-service, no extras
- name: Restore cached virtualenv (ni-measurement-plugin-sdk-service, no extras)
Expand Down
3 changes: 3 additions & 0 deletions examples/sample_measurement/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ types-protobuf = ">=4.21"
# Uncomment to use prerelease dependencies.
# ni-measurement-plugin-sdk-service = {path = "../../packages/service", develop = true}

[tool.poetry.build-constraints]
grpcio-tools = { setuptools = "<82" }

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down
3 changes: 3 additions & 0 deletions packages/generator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ ni-measurementlink-proto = { version = "^1.0.0" }
ni-measurement-plugin-generator = "ni_measurement_plugin_sdk_generator.plugin:create_measurement"
ni-measurement-plugin-client-generator = "ni_measurement_plugin_sdk_generator.client:create_client"

[tool.poetry.build-constraints]
grpcio-tools = { setuptools = "<82" }

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down
3 changes: 3 additions & 0 deletions packages/service/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ sphinx-click = ">=4.1.0"
# Workaround to docutils error with 0.21.post1 release
docutils = ">=0.16, !=0.21.post1"

[tool.poetry.build-constraints]
grpcio-tools = { setuptools = "<82" }

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down