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
12 changes: 8 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ on:
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0 #Necessary for poetry-dynamic-versioning to work with the tags.

- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
Expand All @@ -41,8 +42,11 @@ jobs:
- name: Install pypa/build
run: python3 -m pip install build --user

- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Install and configure Poetry
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a

- name: Install using poetry
run: poetry build

- name: Store the distribution packages
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
Expand Down
47 changes: 43 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
###############################################################
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################

[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=2.0", "poetry-dynamic-versioning>=1.5.2,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[project]
name = "tractusx_sdk"
version = "0.0.2"
description = "Eclipse Tractus-X Software Development KIT - The Dataspace & Industry Foundation Middleware"
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.12,<4.0"

dependencies = [
"annotated-types (==0.7.0)",
"anyio (==4.8.0)",
Expand Down Expand Up @@ -75,13 +92,35 @@ dependencies = [
"watchfiles (==1.0.4)",
"websockets (==14.2)"
]
dynamic = ["version"]

[project.urls]
repository = "https://github.com/eclipse-tractusx/tractusx-sdk"
documentation = "https://github.com/eclipse-tractusx/tractusx-sdk/tree/main/docs"
"Issues" = "https://github.com/eclipse-tractusx/tractusx-sdk/issues"
"Changelog" = "https://github.com/eclipse-tractusx/tractusx-sdk/blob/main/CHANGELOG.md"

[tool.poetry]
version = "0.0.0" #Base version for plugin to work

[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.5.2,<2.0.0", extras = ["plugin"] }

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
latest-tag = true
style = "semver" #Ensures semver versioning standard is used - Eclipse Foundation requirement
strict = true

[tool.poetry-dynamic-versioning.substitution]
files = ["*/__init__.py", "src/*/*/__init__.py"]
patterns = [
"(__version__ = ')[0-9]+\\.[0-9]+\\.[0-9]+(')",
"(__version__ = \")[0-9]+\\.[0-9]+\\.[0-9]+(\")"
]


[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
Loading