Skip to content

Commit 86aef22

Browse files
committed
fix setup files and other tomls
1 parent 004b6db commit 86aef22

19 files changed

Lines changed: 195 additions & 30 deletions

File tree

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
import sys
5+
from pathlib import Path
46
from os import environ
57
from setuptools import setup
68

79
# Get version from environment variable set by CI/CD
8-
# This will be set by setuptools-git-versioning in the CI pipeline
910
package_version = environ.get("AGENT365_PYTHON_SDK_PACKAGE_VERSION", "0.0.0")
1011

12+
# Add versioning helper to path
13+
helper_path = Path(__file__).parent.parent.parent / "versioning" / "helper"
14+
sys.path.insert(0, str(helper_path))
15+
16+
from setup_utils import get_dynamic_dependencies
17+
18+
# Use minimum version strategy:
19+
# - Internal packages get: >= current_base_version (e.g., >= 0.1.0)
20+
# - Automatically updates when you build new versions
21+
# - Consumers can upgrade to any higher version
1122
setup(
1223
version=package_version,
13-
)
24+
install_requires=get_dynamic_dependencies(
25+
use_compatible_release=False, # No upper bound
26+
use_exact_match=False, # Not exact match
27+
),
28+
)

libraries/microsoft-agents-a365-observability-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"opentelemetry-exporter-otlp >= 1.36.0",
3131
"pydantic >= 2.0.0",
3232
"typing-extensions >= 4.0.0",
33-
"microsoft-agents-a365-runtime >= 0.1.0.dev0"
33+
"microsoft-agents-a365-runtime >= 0.0.0"
3434
]
3535

3636
[project.urls]
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
import sys
5+
from pathlib import Path
46
from os import environ
57
from setuptools import setup
68

79
# Get version from environment variable set by CI/CD
8-
# This will be set by setuptools-git-versioning in the CI pipeline
910
package_version = environ.get("AGENT365_PYTHON_SDK_PACKAGE_VERSION", "0.0.0")
1011

12+
# Add versioning helper to path
13+
helper_path = Path(__file__).parent.parent.parent / "versioning" / "helper"
14+
sys.path.insert(0, str(helper_path))
15+
16+
from setup_utils import get_dynamic_dependencies
17+
18+
# Use minimum version strategy:
19+
# - Internal packages get: >= current_base_version (e.g., >= 0.1.0)
20+
# - Automatically updates when you build new versions
21+
# - Consumers can upgrade to any higher version
1122
setup(
1223
version=package_version,
13-
)
24+
install_requires=get_dynamic_dependencies(
25+
use_compatible_release=False, # No upper bound
26+
use_exact_match=False, # Not exact match
27+
),
28+
)

libraries/microsoft-agents-a365-observability-extensions-agentframework/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
license = "MIT"
2626
keywords = ["observability", "telemetry", "tracing", "opentelemetry", "agent-framework", "agents", "ai"]
2727
dependencies = [
28-
"microsoft-agents-a365-observability-core >= 0.1.0.dev0",
28+
"microsoft-agents-a365-observability-core >= 0.0.0",
2929
"opentelemetry-api >= 1.36.0",
3030
"opentelemetry-sdk >= 1.36.0",
3131
"opentelemetry-instrumentation >= 0.47b0",
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
import sys
5+
from pathlib import Path
46
from os import environ
57
from setuptools import setup
68

79
# Get version from environment variable set by CI/CD
8-
# This will be set by setuptools-git-versioning in the CI pipeline
910
package_version = environ.get("AGENT365_PYTHON_SDK_PACKAGE_VERSION", "0.0.0")
1011

12+
# Add versioning helper to path
13+
helper_path = Path(__file__).parent.parent.parent / "versioning" / "helper"
14+
sys.path.insert(0, str(helper_path))
15+
16+
from setup_utils import get_dynamic_dependencies
17+
18+
# Use minimum version strategy:
19+
# - Internal packages get: >= current_base_version (e.g., >= 0.1.0)
20+
# - Automatically updates when you build new versions
21+
# - Consumers can upgrade to any higher version
1122
setup(
1223
version=package_version,
13-
)
24+
install_requires=get_dynamic_dependencies(
25+
use_compatible_release=False, # No upper bound
26+
use_exact_match=False, # Not exact match
27+
),
28+
)

libraries/microsoft-agents-a365-observability-extensions-langchain/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
license = {text = "MIT"}
2626
keywords = ["observability", "telemetry", "tracing", "opentelemetry", "langchain", "agents", "ai"]
2727
dependencies = [
28-
"microsoft-agents-a365-observability-core >= 0.1.0.dev0",
28+
"microsoft-agents-a365-observability-core >= 0.0.0",
2929
"langchain >= 0.1.0",
3030
"langchain-core >= 0.1.0",
3131
"opentelemetry-api >= 1.36.0",
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
import sys
5+
from pathlib import Path
46
from os import environ
57
from setuptools import setup
68

79
# Get version from environment variable set by CI/CD
8-
# This will be set by setuptools-git-versioning in the CI pipeline
910
package_version = environ.get("AGENT365_PYTHON_SDK_PACKAGE_VERSION", "0.0.0")
1011

12+
# Add versioning helper to path
13+
helper_path = Path(__file__).parent.parent.parent / "versioning" / "helper"
14+
sys.path.insert(0, str(helper_path))
15+
16+
from setup_utils import get_dynamic_dependencies
17+
18+
# Use minimum version strategy:
19+
# - Internal packages get: >= current_base_version (e.g., >= 0.1.0)
20+
# - Automatically updates when you build new versions
21+
# - Consumers can upgrade to any higher version
1122
setup(
1223
version=package_version,
13-
)
24+
install_requires=get_dynamic_dependencies(
25+
use_compatible_release=False, # No upper bound
26+
use_exact_match=False, # Not exact match
27+
),
28+
)

libraries/microsoft-agents-a365-observability-extensions-openai/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
license = {text = "MIT"}
2626
keywords = ["observability", "telemetry", "tracing", "opentelemetry", "openai", "agents", "ai"]
2727
dependencies = [
28-
"microsoft-agents-a365-observability-core >= 0.1.0.dev0",
28+
"microsoft-agents-a365-observability-core >= 0.0.0",
2929
"openai-agents >= 0.2.6",
3030
"opentelemetry-api >= 1.36.0",
3131
"opentelemetry-sdk >= 1.36.0",
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
import sys
5+
from pathlib import Path
46
from os import environ
57
from setuptools import setup
68

79
# Get version from environment variable set by CI/CD
8-
# This will be set by setuptools-git-versioning in the CI pipeline
910
package_version = environ.get("AGENT365_PYTHON_SDK_PACKAGE_VERSION", "0.0.0")
1011

12+
# Add versioning helper to path
13+
helper_path = Path(__file__).parent.parent.parent / "versioning" / "helper"
14+
sys.path.insert(0, str(helper_path))
15+
16+
from setup_utils import get_dynamic_dependencies
17+
18+
# Use minimum version strategy:
19+
# - Internal packages get: >= current_base_version (e.g., >= 0.1.0)
20+
# - Automatically updates when you build new versions
21+
# - Consumers can upgrade to any higher version
1122
setup(
1223
version=package_version,
13-
)
24+
install_requires=get_dynamic_dependencies(
25+
use_compatible_release=False, # No upper bound
26+
use_exact_match=False, # Not exact match
27+
),
28+
)
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4+
import sys
5+
from pathlib import Path
46
from os import environ
57
from setuptools import setup
68

79
# Get version from environment variable set by CI/CD
8-
# This will be set by setuptools-git-versioning in the CI pipeline
910
package_version = environ.get("AGENT365_PYTHON_SDK_PACKAGE_VERSION", "0.0.0")
1011

12+
# Add versioning helper to path
13+
helper_path = Path(__file__).parent.parent.parent / "versioning" / "helper"
14+
sys.path.insert(0, str(helper_path))
15+
16+
from setup_utils import get_dynamic_dependencies
17+
18+
# Use minimum version strategy:
19+
# - Internal packages get: >= current_base_version (e.g., >= 0.1.0)
20+
# - Automatically updates when you build new versions
21+
# - Consumers can upgrade to any higher version
1122
setup(
1223
version=package_version,
13-
)
24+
install_requires=get_dynamic_dependencies(
25+
use_compatible_release=False, # No upper bound
26+
use_exact_match=False, # Not exact match
27+
),
28+
)

0 commit comments

Comments
 (0)