Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit dfc7f64

Browse files
authored
[ALL] Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards (#65)
* Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards * Update actions-poetry to use Poetry 2.0.1 in GitHub workflows
1 parent 2bba67f commit dfc7f64

File tree

32 files changed

+561
-159
lines changed

32 files changed

+561
-159
lines changed

.github/workflows/pr_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
python-version: "3.10"
7676
- uses: abatilo/actions-poetry@v2
7777
with:
78-
poetry-version: "1.4.2"
78+
poetry-version: "2.0.1"
7979
- name: Install package dependencies.
8080
run: |
8181
poetry install

.github/workflows/publish-package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
python-version: "3.10"
3434
- uses: abatilo/actions-poetry@v2
3535
with:
36-
poetry-version: "1.7.0"
36+
poetry-version: "2.0.1"
3737
- name: Package naming
3838
run: |
3939
echo "PACKAGE_NAME=$(poetry version --no-interaction | cut -d ' ' -f 1)" >> "$GITHUB_ENV"

inventory/python/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@
3838
# 2.0.0
3939
- Bumped version of frinx-inventory-api to 3.0.0.
4040
- Bumped version of frinx-python-sdk to 2.2.1.
41+
42+
# 3.0.0
43+
- Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards
44+
- Bumped version of frinx-inventory-api to 4.0.0.

inventory/python/poetry.lock

Lines changed: 39 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inventory/python/pyproject.toml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1+
[project]
2+
name = "frinx-inventory-worker"
3+
description = "Conductor worker for Frinx Device Inventory"
4+
authors = [
5+
{ name = "Jozef Volak", email = "[email protected]" }
6+
]
7+
version = "3.0.0"
8+
readme = "README.md"
9+
keywords = ["frinx-machine", "device inventory", "worker"]
10+
license = { text = "Apache-2.0" }
11+
12+
[project.urls]
13+
Homepage = 'https://github.com/FRINXio/frinx-python-sdk'
14+
Source = 'https://github.com/FRINXio/frinx-python-sdk'
15+
116
[build-system]
2-
requires = ["poetry-core"]
17+
requires = ["poetry-core>=2.0.0,<3.0.0"]
318
build-backend = "poetry.core.masonry.api"
419

520
[tool.poetry.dependencies]
621
python = "^3.10"
722
pydantic = "^2"
823
frinx-python-sdk = "^2"
9-
frinx-inventory-api = { git = "https://github.com/FRINXio/frinx-services-python-api.git", tag = "frinx-inventory-api_v3.0.0", subdirectory = "frinx-inventory-server/python" }
24+
frinx-inventory-api = { git = "https://github.com/FRINXio/frinx-services-python-api.git", tag = "frinx-inventory-api_v4.0.0", subdirectory = "frinx-inventory-server/python" }
1025

1126
[tool.poetry.group.dev.dependencies]
1227
ruff = "^0"
@@ -16,17 +31,6 @@ types-requests = "^2.31.0.2"
1631

1732
[tool.poetry]
1833
packages = [{ include = "frinx_worker" }]
19-
name = "frinx-inventory-worker"
20-
description = "Conductor worker for Frinx Device Inventory"
21-
authors = ["Jozef Volak <[email protected]>"]
22-
version = "2.0.0"
23-
readme = ["README.md", "CHANGELOG.md", "RELEASE.md"]
24-
keywords = ["frinx-machine", "device inventory", "worker"]
25-
license = "Apache 2.0"
26-
27-
[project.urls]
28-
Homepage = 'https://github.com/FRINXio/frinx-python-sdk'
29-
Source = 'https://github.com/FRINXio/frinx-python-sdk'
3034

3135
[tool.pyright]
3236
include = ['frinx_worker']

misc/python/conductor-system-test/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
- Upgrade pydantic version to v2
33

44
# 1.0.1
5-
- Updated frinx-python-sdk to version ^1.1
5+
- Updated frinx-python-sdk to version ^1.1
6+
7+
# 2.0.0
8+
- Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards

0 commit comments

Comments
 (0)