From 51e5dedddbdec44e9c656d6649f5d8d14edb626d Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Wed, 19 Aug 2026 09:52:54 -0700 Subject: [PATCH 1/5] Updating dependencies --- featuremanagement/_featuremanagerbase.py | 2 +- pyproject.toml | 31 ++++++++++++++---------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/featuremanagement/_featuremanagerbase.py b/featuremanagement/_featuremanagerbase.py index 8ec7ba1..05c16d5 100644 --- a/featuremanagement/_featuremanagerbase.py +++ b/featuremanagement/_featuremanagerbase.py @@ -293,4 +293,4 @@ def _get_feature_flags(self) -> List[Any]: feature_flags = feature_management.get(FEATURE_FLAG_KEY) if not feature_flags or not isinstance(feature_flags, list): return [] - return cast(List[Any], feature_flags) + return feature_flags diff --git a/pyproject.toml b/pyproject.toml index f50d406..422ae85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,9 @@ [tool.pytest.ini_options] +asyncio_mode = "auto" +addopts = "--import-mode=importlib" + +[tool.pytest.ini_options.markers] +asyncio = "mark a test as an asyncio test" pythonpath = [ "." ] @@ -60,19 +65,19 @@ Issues = "https://github.com/microsoft/FeatureManagement-Python/issues" [project.optional-dependencies] AzureMonitor = ["opentelemetry-sdk~=1.20"] test = [ - "azure-monitor-opentelemetry < 2.0.0", + "azure-monitor-opentelemetry < 1.8.9", ] dev = [ - "pytest >= 7.0.0, < 10.0.0", - "pytest-cov >= 4.0.0, < 8.0.0", - "pytest-asyncio >= 0.21.0, < 2.0.0", - "black >= 23.0.0, < 27.0.0", - "pylint >= 3.0.0, < 5.0.0", - "mypy >= 1.0.0, < 2.0.0", - "sphinx >= 7.0.0, < 10.0.0", - "sphinx_rtd_theme >= 2.0.0, < 4.0.0", - "sphinx-toolbox >= 3.0.0, < 5.0.0", - "myst_parser >= 2.0.0, < 6.0.0", - "opentelemetry-api~=1.20", - "opentelemetry-sdk~=1.20", + "pytest >= 9.1.1, < 10.0.0", + "pytest-cov >= 7.1.0, < 8.0.0", + "pytest-asyncio >= 1.4.0, < 2.0.0", + "black >= 26.5.1, < 27.0.0", + "pylint >= 4.0.7, < 5.0.0", + "mypy >= 2.3.0, < 3.0.0", + "sphinx >= 9.1.0, < 10.0.0", + "sphinx_rtd_theme >= 3.1.0, < 4.0.0", + "sphinx-toolbox >= 4.3.0, < 5.0.0", + "myst_parser >= 5.1.0, < 6.0.0", + "opentelemetry-api~=1.44.0", + "opentelemetry-sdk~=1.44.0", ] From a2aebae977731cfad9380d0ec2d2b807939c9a56 Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Wed, 19 Aug 2026 10:10:37 -0700 Subject: [PATCH 2/5] 9.1.0 requires a higher min python version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 422ae85..b7adeb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,7 +74,7 @@ dev = [ "black >= 26.5.1, < 27.0.0", "pylint >= 4.0.7, < 5.0.0", "mypy >= 2.3.0, < 3.0.0", - "sphinx >= 9.1.0, < 10.0.0", + "sphinx >= 9.0.4, < 10.0.0", "sphinx_rtd_theme >= 3.1.0, < 4.0.0", "sphinx-toolbox >= 4.3.0, < 5.0.0", "myst_parser >= 5.1.0, < 6.0.0", From bf24117ec5ad2c270e7040d1917dec376e1fb6f3 Mon Sep 17 00:00:00 2001 From: Matthew Metcalf Date: Wed, 19 Aug 2026 10:18:00 -0700 Subject: [PATCH 3/5] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b7adeb5..a537146 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [tool.pytest.ini_options] asyncio_mode = "auto" addopts = "--import-mode=importlib" - -[tool.pytest.ini_options.markers] -asyncio = "mark a test as an asyncio test" +markers = [ + "asyncio: mark a test as an asyncio test", +] pythonpath = [ "." ] From 719f32ed94c395f3dad0673a7adad24557ba390f Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Wed, 19 Aug 2026 10:20:21 -0700 Subject: [PATCH 4/5] review comments --- featuremanagement/_featuremanagerbase.py | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/featuremanagement/_featuremanagerbase.py b/featuremanagement/_featuremanagerbase.py index 05c16d5..99e15f0 100644 --- a/featuremanagement/_featuremanagerbase.py +++ b/featuremanagement/_featuremanagerbase.py @@ -8,7 +8,7 @@ import hashlib import logging from abc import ABC -from typing import List, Optional, Dict, Tuple, Any, Mapping, Callable, cast +from typing import List, Optional, Dict, Tuple, Any, Mapping, Callable from ._models import FeatureFlag, Variant, VariantAssignmentReason, TargetingContext, EvaluationEvent, VariantReference FEATURE_MANAGEMENT_KEY = "feature_management" diff --git a/pyproject.toml b/pyproject.toml index a537146..bce75b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,7 +63,7 @@ Homepage = "https://github.com/microsoft/FeatureManagement-Python" Issues = "https://github.com/microsoft/FeatureManagement-Python/issues" [project.optional-dependencies] -AzureMonitor = ["opentelemetry-sdk~=1.20"] +AzureMonitor = ["opentelemetry-sdk~=1.44.0"] test = [ "azure-monitor-opentelemetry < 1.8.9", ] @@ -74,7 +74,7 @@ dev = [ "black >= 26.5.1, < 27.0.0", "pylint >= 4.0.7, < 5.0.0", "mypy >= 2.3.0, < 3.0.0", - "sphinx >= 9.0.4, < 10.0.0", + "sphinx >= 8.1.3, < 10.0.0", "sphinx_rtd_theme >= 3.1.0, < 4.0.0", "sphinx-toolbox >= 4.3.0, < 5.0.0", "myst_parser >= 5.1.0, < 6.0.0", From addb0a38c290db0b5d56e3d2d1856dfb0a7befec Mon Sep 17 00:00:00 2001 From: Matt Metcalf Date: Wed, 19 Aug 2026 10:25:09 -0700 Subject: [PATCH 5/5] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bce75b8..70b9bb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,7 @@ dev = [ "sphinx >= 8.1.3, < 10.0.0", "sphinx_rtd_theme >= 3.1.0, < 4.0.0", "sphinx-toolbox >= 4.3.0, < 5.0.0", - "myst_parser >= 5.1.0, < 6.0.0", + "myst_parser >= 4.0.1, < 6.0.0", "opentelemetry-api~=1.44.0", "opentelemetry-sdk~=1.44.0", ]