Skip to content

Commit 2353025

Browse files
committed
2 parents a2eed3e + e953e9a commit 2353025

4 files changed

Lines changed: 54 additions & 4 deletions

File tree

src/ai-examples/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Release History
44
===============
55

6+
0.2.6
7+
++++++
8+
* Replace deprecated pkg_resources with packaging for Python 3.13 compatibility
9+
610
0.2.5
711
++++++
812
* Send appropriate User ID hash

src/ai-examples/azext_ai_examples/custom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import json
99
import re
1010
import requests
11-
from pkg_resources import parse_version
11+
from packaging.version import Version
1212

1313
from azure.cli.core import telemetry as telemetry_core
1414
from azure.cli.core import __version__ as core_version
@@ -85,7 +85,7 @@ def ping_aladdin_service():
8585

8686

8787
def call_aladdin_service(query):
88-
version = str(parse_version(core_version))
88+
version = str(Version(core_version))
8989
correlation_id = telemetry_core._session.correlation_id # pylint: disable=protected-access
9090
subscription_id = telemetry_core._get_azure_subscription_id() # pylint: disable=protected-access
9191

src/ai-examples/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
logger.warn("Wheel is not available, disabling bdist_wheel hook")
1616

1717
# HISTORY.rst entry.
18-
VERSION = '0.2.5'
18+
VERSION = '0.2.6'
1919

2020
# The full list of classifiers is available at
2121
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
@@ -42,7 +42,7 @@
4242
HISTORY = f.read()
4343

4444
setup(
45-
name='ai_examples',
45+
name='ai-examples',
4646
version=VERSION,
4747
description='Add AI powered examples to help content.',
4848
author='Matthew Booe',

src/index.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,52 @@
14251425
"version": "0.2.5"
14261426
},
14271427
"sha256Digest": "badbdf5fc2e0b4a85c4124d3fc92859b582adf8f30f5727440ce81942140099a"
1428+
},
1429+
{
1430+
"downloadUrl": "https://azcliprod.blob.core.windows.net/cli-extensions/ai_examples-0.2.6-py2.py3-none-any.whl",
1431+
"filename": "ai_examples-0.2.6-py2.py3-none-any.whl",
1432+
"metadata": {
1433+
"azext.isPreview": true,
1434+
"azext.minCliCoreVersion": "2.2.0",
1435+
"classifiers": [
1436+
"Development Status :: 4 - Beta",
1437+
"Intended Audience :: Developers",
1438+
"Intended Audience :: System Administrators",
1439+
"Programming Language :: Python",
1440+
"Programming Language :: Python :: 2",
1441+
"Programming Language :: Python :: 2.7",
1442+
"Programming Language :: Python :: 3",
1443+
"Programming Language :: Python :: 3.5",
1444+
"Programming Language :: Python :: 3.6",
1445+
"Programming Language :: Python :: 3.7",
1446+
"Programming Language :: Python :: 3.8",
1447+
"License :: OSI Approved :: MIT License"
1448+
],
1449+
"extensions": {
1450+
"python.details": {
1451+
"contacts": [
1452+
{
1453+
"email": "mabooe@microsoft.com",
1454+
"name": "Matthew Booe",
1455+
"role": "author"
1456+
}
1457+
],
1458+
"document_names": {
1459+
"description": "DESCRIPTION.rst"
1460+
},
1461+
"project_urls": {
1462+
"Home": "https://github.com/Azure/azure-cli-extensions/tree/main/src/ai-examples"
1463+
}
1464+
}
1465+
},
1466+
"generator": "bdist_wheel (0.30.0)",
1467+
"license": "MIT",
1468+
"metadata_version": "2.0",
1469+
"name": "ai-examples",
1470+
"summary": "Add AI powered examples to help content.",
1471+
"version": "0.2.6"
1472+
},
1473+
"sha256Digest": "cf91b4e1206b8690501d847cbe46c3ec13f659ef7a4d367add74ed5e8f97d69c"
14281474
}
14291475
],
14301476
"aks-agent": [

0 commit comments

Comments
 (0)