Skip to content

Commit

Permalink
[ALL] Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards (
Browse files Browse the repository at this point in the history
#65)

* Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards

* Update actions-poetry to use Poetry 2.0.1 in GitHub workflows
  • Loading branch information
MartinFoka authored Jan 24, 2025
1 parent 2bba67f commit dfc7f64
Show file tree
Hide file tree
Showing 32 changed files with 561 additions and 159 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
python-version: "3.10"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.4.2"
poetry-version: "2.0.1"
- name: Install package dependencies.
run: |
poetry install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
python-version: "3.10"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7.0"
poetry-version: "2.0.1"
- name: Package naming
run: |
echo "PACKAGE_NAME=$(poetry version --no-interaction | cut -d ' ' -f 1)" >> "$GITHUB_ENV"
Expand Down
4 changes: 4 additions & 0 deletions inventory/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@
# 2.0.0
- Bumped version of frinx-inventory-api to 3.0.0.
- Bumped version of frinx-python-sdk to 2.2.1.

# 3.0.0
- Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards
- Bumped version of frinx-inventory-api to 4.0.0.
45 changes: 39 additions & 6 deletions inventory/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 17 additions & 13 deletions inventory/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
[project]
name = "frinx-inventory-worker"
description = "Conductor worker for Frinx Device Inventory"
authors = [
{ name = "Jozef Volak", email = "jozef.volak@elisapolystar.com" }
]
version = "3.0.0"
readme = "README.md"
keywords = ["frinx-machine", "device inventory", "worker"]
license = { text = "Apache-2.0" }

[project.urls]
Homepage = 'https://github.com/FRINXio/frinx-python-sdk'
Source = 'https://github.com/FRINXio/frinx-python-sdk'

[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2"
frinx-python-sdk = "^2"
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" }
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" }

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

[tool.poetry]
packages = [{ include = "frinx_worker" }]
name = "frinx-inventory-worker"
description = "Conductor worker for Frinx Device Inventory"
authors = ["Jozef Volak <jozef.volak@elisapolystar.com>"]
version = "2.0.0"
readme = ["README.md", "CHANGELOG.md", "RELEASE.md"]
keywords = ["frinx-machine", "device inventory", "worker"]
license = "Apache 2.0"

[project.urls]
Homepage = 'https://github.com/FRINXio/frinx-python-sdk'
Source = 'https://github.com/FRINXio/frinx-python-sdk'

[tool.pyright]
include = ['frinx_worker']
Expand Down
5 changes: 4 additions & 1 deletion misc/python/conductor-system-test/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
- Upgrade pydantic version to v2

# 1.0.1
- Updated frinx-python-sdk to version ^1.1
- Updated frinx-python-sdk to version ^1.1

# 2.0.0
- Update pyproject.toml for Poetry 2.0, adopting PEP 621 standards
Loading

0 comments on commit dfc7f64

Please sign in to comment.