|
| 1 | +############################################################### |
| 2 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License, Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0. |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | +# License for the specific language governing permissions and limitations |
| 15 | +# under the License. |
| 16 | +# |
| 17 | +# SPDX-License-Identifier: Apache-2.0 |
| 18 | +############################################################### |
| 19 | + |
1 | 20 | [build-system]
|
2 |
| -requires = ["poetry-core>=2.0"] |
3 |
| -build-backend = "poetry.core.masonry.api" |
| 21 | +requires = ["poetry-core>=2.0", "poetry-dynamic-versioning>=1.5.2,<2.0.0"] |
| 22 | +build-backend = "poetry_dynamic_versioning.backend" |
4 | 23 |
|
5 | 24 | [project]
|
6 | 25 | name = "tractusx_sdk"
|
7 |
| -version = "0.0.2" |
8 | 26 | description = "Eclipse Tractus-X Software Development KIT - The Dataspace & Industry Foundation Middleware"
|
9 | 27 | license = {text = "Apache-2.0"}
|
10 | 28 | readme = "README.md"
|
11 | 29 | requires-python = ">=3.12,<4.0"
|
12 |
| - |
13 | 30 | dependencies = [
|
14 | 31 | "annotated-types (==0.7.0)",
|
15 | 32 | "anyio (==4.8.0)",
|
@@ -71,13 +88,35 @@ dependencies = [
|
71 | 88 | "watchfiles (==1.0.4)",
|
72 | 89 | "websockets (==14.2)"
|
73 | 90 | ]
|
| 91 | +dynamic = ["version"] |
74 | 92 |
|
75 | 93 | [project.urls]
|
76 | 94 | repository = "https://github.com/eclipse-tractusx/tractusx-sdk"
|
77 | 95 | documentation = "https://github.com/eclipse-tractusx/tractusx-sdk/tree/main/docs"
|
78 | 96 | "Issues" = "https://github.com/eclipse-tractusx/tractusx-sdk/issues"
|
79 | 97 | "Changelog" = "https://github.com/eclipse-tractusx/tractusx-sdk/blob/main/CHANGELOG.md"
|
80 | 98 |
|
| 99 | +[tool.poetry] |
| 100 | +version = "0.0.0" #Base version for plugin to work |
| 101 | + |
| 102 | +[tool.poetry.requires-plugins] |
| 103 | +poetry-dynamic-versioning = { version = ">=1.5.2,<2.0.0", extras = ["plugin"] } |
| 104 | + |
| 105 | +[tool.poetry-dynamic-versioning] |
| 106 | +enable = true |
| 107 | +vcs = "git" |
| 108 | +latest-tag = true |
| 109 | +style = "semver" #Ensures semver versioning standard is used - Eclipse Foundation requirement |
| 110 | +strict = true |
| 111 | + |
| 112 | +[tool.poetry-dynamic-versioning.substitution] |
| 113 | +files = ["*/__init__.py", "src/*/*/__init__.py"] |
| 114 | +patterns = [ |
| 115 | + "(__version__ = ')[0-9]+\\.[0-9]+\\.[0-9]+(')", |
| 116 | + "(__version__ = \")[0-9]+\\.[0-9]+\\.[0-9]+(\")" |
| 117 | +] |
| 118 | + |
| 119 | + |
81 | 120 | [tool.pytest.ini_options]
|
82 | 121 | minversion = "6.0"
|
83 | 122 | testpaths = ["tests"]
|
0 commit comments