Skip to content

Commit 407fbe5

Browse files
noahpmaxd-nordic
authored andcommitted
Update poetry in ci from 1.4.2->2.2.1
Primarily to get new classifiers for showing supported python version on PyPi (and in the badge in the readme here). It's easy to verify this locally by using `uvx` to run versions of poetry to build the .whl, and examine the wheel metadata: ```bash ❯ uvx --from=poetry==1.4.0 poetry -q build && unzip -q dist/nrfcloud_utils-*-py3-none-any.whl && rg 'Classifier: Programming Language :: Python' nrfcloud_utils-*.dist-info/METADATA && rm -rf nrfcloud_utils* 10:Classifier: Programming Language :: Python :: 3 11:Classifier: Programming Language :: Python :: 3.10 12:Classifier: Programming Language :: Python :: 3.11 ❯ uvx --from=poetry==2.2.1 poetry -q build && unzip -q dist/nrfcloud_utils-*-py3-none-any.whl && rg 'Classifier: Programming Language :: Python' nrfcloud_utils-*.dist-info/METADATA && rm -rf nrfcloud_utils* 10:Classifier: Programming Language :: Python :: 3 11:Classifier: Programming Language :: Python :: 3.10 12:Classifier: Programming Language :: Python :: 3.11 13:Classifier: Programming Language :: Python :: 3.12 14:Classifier: Programming Language :: Python :: 3.13 15:Classifier: Programming Language :: Python :: 3.14 ```
1 parent b9f37c2 commit 407fbe5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
REGISTRY_NAME: ${{ vars.REGISTRY_NAME }}
1313
REGISTRY_URI: ${{ vars.REGISTRY_URI }}
14+
POETRY_VERSION: 2.2.1
1415

1516
jobs:
1617
build:
@@ -30,7 +31,7 @@ jobs:
3031
python-version: ${{ matrix.python-version }}
3132
- name: Install poetry
3233
run: |
33-
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 -
34+
curl -sSL https://install.python-poetry.org | POETRY_VERSION=$POETRY_VERSION python3 -
3435
- name: Install dependencies
3536
run: |
3637
poetry install
@@ -55,7 +56,7 @@ jobs:
5556
python-version: 3.11
5657
- name: Install poetry
5758
run: |
58-
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 -
59+
curl -sSL https://install.python-poetry.org | POETRY_VERSION=$POETRY_VERSION python3 -
5960
- name: Update version in pyproject.toml
6061
run: |
6162
echo $GITHUB_REF_NAME | sed 's/^v//' | xargs poetry version

0 commit comments

Comments
 (0)