Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Analysing the code with pylint
run: |
pylint featuremanagement
- uses: psf/black@24.8.0
- uses: psf/black@26.3.0
- name: Run mypy
run: |
mypy featuremanagement
Expand Down
2 changes: 1 addition & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pytest < 9.0.0
pytest-cov < 8.0.0
pytest-asyncio < 2.0.0
black < 26.0.0
black < 27.0.0
pylint < 5.0.0
mypy < 2.0.0
sphinx < 9.0.0
Expand Down
1 change: 0 additions & 1 deletion featuremanagement/_featuremanagerbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from typing import List, Optional, Dict, Tuple, Any, Mapping, Callable
from ._models import FeatureFlag, Variant, VariantAssignmentReason, TargetingContext, EvaluationEvent, VariantReference


FEATURE_MANAGEMENT_KEY = "feature_management"
FEATURE_FLAG_KEY = "feature_flags"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import List
from ._models import RecurrencePatternType, RecurrenceRangeType, Recurrence, RecurrencePattern, RecurrenceRange


DAYS_PER_WEEK = 7
TEN_YEARS = 3650
RECURRENCE_PATTERN = "Pattern"
Expand Down
1 change: 0 additions & 1 deletion featuremanagement/azuremonitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# -------------------------------------------------------------------------
from ._send_telemetry import publish_telemetry, track_event, TargetingSpanProcessor


__all__ = [
"publish_telemetry",
"track_event",
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.8
python_version = 3.10
# Start off with these
warn_unused_configs = True
warn_redundant_casts = True
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@ authors = [
description = "A library for enabling/disabling features at runtime."
readme = "README.md"
license.file = "LICENSE"
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
]

Expand Down
1 change: 0 additions & 1 deletion samples/feature_variant_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from random_filter import RandomFilter
from featuremanagement import FeatureManager, TargetingContext


script_directory = os.path.dirname(os.path.abspath(sys.argv[0]))

with open(script_directory + "/formatted_feature_flags.json", "r", encoding="utf-8") as f:
Expand Down
1 change: 0 additions & 1 deletion samples/feature_variant_sample_with_targeting_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from random_filter import RandomFilter
from featuremanagement import FeatureManager, TargetingContext


script_directory = os.path.dirname(os.path.abspath(sys.argv[0]))

with open(script_directory + "/formatted_feature_flags.json", "r", encoding="utf-8") as f:
Expand Down
1 change: 0 additions & 1 deletion samples/feature_variant_sample_with_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from featuremanagement import FeatureManager
from featuremanagement.azuremonitor import publish_telemetry, track_event


try:
from azure.monitor.opentelemetry import configure_azure_monitor

Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
],
zip_safe=False,
packages=find_packages(),
python_requires=">=3.6",
python_requires=">=3.10",
install_requires=[],
extras_require={
"AzureMonitor": ["azure-monitor-events-extension<2.0.0"],
Expand Down