Skip to content

Commit 1b33c9b

Browse files
mrm9084Copilot
andauthored
Updating dependencies (#75)
* Updating dependencies * 9.1.0 requires a higher min python version * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * review comments * Update pyproject.toml --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 8ead0ca commit 1b33c9b

2 files changed

Lines changed: 21 additions & 16 deletions

File tree

featuremanagement/_featuremanagerbase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import hashlib
99
import logging
1010
from abc import ABC
11-
from typing import List, Optional, Dict, Tuple, Any, Mapping, Callable, cast
11+
from typing import List, Optional, Dict, Tuple, Any, Mapping, Callable
1212
from ._models import FeatureFlag, Variant, VariantAssignmentReason, TargetingContext, EvaluationEvent, VariantReference
1313

1414
FEATURE_MANAGEMENT_KEY = "feature_management"
@@ -293,4 +293,4 @@ def _get_feature_flags(self) -> List[Any]:
293293
feature_flags = feature_management.get(FEATURE_FLAG_KEY)
294294
if not feature_flags or not isinstance(feature_flags, list):
295295
return []
296-
return cast(List[Any], feature_flags)
296+
return feature_flags

pyproject.toml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[tool.pytest.ini_options]
2+
asyncio_mode = "auto"
3+
addopts = "--import-mode=importlib"
4+
markers = [
5+
"asyncio: mark a test as an asyncio test",
6+
]
27
pythonpath = [
38
"."
49
]
@@ -58,21 +63,21 @@ Homepage = "https://github.com/microsoft/FeatureManagement-Python"
5863
Issues = "https://github.com/microsoft/FeatureManagement-Python/issues"
5964

6065
[project.optional-dependencies]
61-
AzureMonitor = ["opentelemetry-sdk~=1.20"]
66+
AzureMonitor = ["opentelemetry-sdk~=1.44.0"]
6267
test = [
63-
"azure-monitor-opentelemetry < 2.0.0",
68+
"azure-monitor-opentelemetry < 1.8.9",
6469
]
6570
dev = [
66-
"pytest >= 7.0.0, < 10.0.0",
67-
"pytest-cov >= 4.0.0, < 8.0.0",
68-
"pytest-asyncio >= 0.21.0, < 2.0.0",
69-
"black >= 23.0.0, < 27.0.0",
70-
"pylint >= 3.0.0, < 5.0.0",
71-
"mypy >= 1.0.0, < 2.0.0",
72-
"sphinx >= 7.0.0, < 10.0.0",
73-
"sphinx_rtd_theme >= 2.0.0, < 4.0.0",
74-
"sphinx-toolbox >= 3.0.0, < 5.0.0",
75-
"myst_parser >= 2.0.0, < 6.0.0",
76-
"opentelemetry-api~=1.20",
77-
"opentelemetry-sdk~=1.20",
71+
"pytest >= 9.1.1, < 10.0.0",
72+
"pytest-cov >= 7.1.0, < 8.0.0",
73+
"pytest-asyncio >= 1.4.0, < 2.0.0",
74+
"black >= 26.5.1, < 27.0.0",
75+
"pylint >= 4.0.7, < 5.0.0",
76+
"mypy >= 2.3.0, < 3.0.0",
77+
"sphinx >= 8.1.3, < 10.0.0",
78+
"sphinx_rtd_theme >= 3.1.0, < 4.0.0",
79+
"sphinx-toolbox >= 4.3.0, < 5.0.0",
80+
"myst_parser >= 4.0.1, < 6.0.0",
81+
"opentelemetry-api~=1.44.0",
82+
"opentelemetry-sdk~=1.44.0",
7883
]

0 commit comments

Comments
 (0)