Skip to content

Commit 1e1d0e7

Browse files
{Machinelearningservices} remove usage of pkg_resources (#9598)
* fix: remove usage of pkg_resources * refactor: change to patch version bump
1 parent aaee9bb commit 1e1d0e7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/machinelearningservices/CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2026-02-11
2+
3+
### Azure Machine Learning CLI (v2) v 2.41.1
4+
5+
- Replace deprecated pkg_resources for Python 3.13 compatibility
6+
17
## 2026-01-06
28

39
### Azure Machine Learning CLI (v2) v 2.41.0

src/machinelearningservices/azext_mlv2/manual/dependency.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
# Changes may cause incorrect behavior and will be lost if the code is
88
# regenerated.
99
# --------------------------------------------------------------------------
10-
import pkg_resources
1110

1211
REQUIREMENTS = []
1312
with open("azext_mlv2/manual/requirements.txt", "rt") as fd:
14-
REQUIREMENTS = [str(requirement) for requirement in pkg_resources.parse_requirements(fd)]
13+
REQUIREMENTS = [line.strip() for line in fd if line.strip() and not line.strip().startswith('#')]
1514
DEPENDENCIES = REQUIREMENTS

src/machinelearningservices/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from setuptools import setup, find_packages
1111

1212
# HISTORY.rst entry.
13-
VERSION = '2.41.0'
13+
VERSION = '2.41.1'
1414

1515
# The full list of classifiers is available at
1616
# https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)