Skip to content

Commit 48a1eea

Browse files
committed
drop py2
1 parent 9c6296d commit 48a1eea

File tree

471 files changed

+934
-3473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

471 files changed

+934
-3473
lines changed

sdk/advisor/azure-mgmt-advisor/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

8+
## _Disclaimer_
9+
10+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
11+
812
# Usage
913

1014

sdk/advisor/azure-mgmt-advisor/setup.cfg

-2
This file was deleted.

sdk/advisor/azure-mgmt-advisor/setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, 'version.py')
@@ -63,10 +49,8 @@
6349
classifiers=[
6450
'Development Status :: 5 - Production/Stable',
6551
'Programming Language :: Python',
66-
'Programming Language :: Python :: 2',
67-
'Programming Language :: Python :: 2.7',
52+
'Programming Language :: Python :: 3 :: Only',
6853
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
7054
'Programming Language :: Python :: 3.7',
7155
'Programming Language :: Python :: 3.8',
7256
'Programming Language :: Python :: 3.9',
@@ -85,7 +69,5 @@
8569
'azure-common~=1.1',
8670
'azure-mgmt-core>=1.2.0,<2.0.0',
8771
],
88-
extras_require={
89-
":python_version<'3.0'": ['azure-mgmt-nspkg'],
90-
}
72+
python_requires=">=3.7",
9173
)

sdk/agfood/azure-mgmt-agfood/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

8+
## _Disclaimer_
9+
10+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
11+
812
# Usage
913

1014

sdk/agfood/azure-mgmt-agfood/setup.cfg

-2
This file was deleted.

sdk/agfood/azure-mgmt-agfood/setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, 'version.py')
@@ -63,10 +49,8 @@
6349
classifiers=[
6450
'Development Status :: 4 - Beta',
6551
'Programming Language :: Python',
66-
'Programming Language :: Python :: 2',
67-
'Programming Language :: Python :: 2.7',
52+
'Programming Language :: Python :: 3 :: Only',
6853
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
7054
'Programming Language :: Python :: 3.7',
7155
'Programming Language :: Python :: 3.8',
7256
'Programming Language :: Python :: 3.9',
@@ -85,7 +69,5 @@
8569
'azure-common~=1.1',
8670
'azure-mgmt-core>=1.2.0,<2.0.0',
8771
],
88-
extras_require={
89-
":python_version<'3.0'": ['azure-mgmt-nspkg'],
90-
}
72+
python_requires=">=3.7",
9173
)

sdk/agrifood/azure-mgmt-agrifood/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

8+
## _Disclaimer_
9+
10+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
11+
812
# Usage
913

1014

sdk/agrifood/azure-mgmt-agrifood/setup.cfg

-2
This file was deleted.

sdk/agrifood/azure-mgmt-agrifood/setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, 'version.py')
@@ -63,10 +49,8 @@
6349
classifiers=[
6450
'Development Status :: 4 - Beta',
6551
'Programming Language :: Python',
66-
'Programming Language :: Python :: 2',
67-
'Programming Language :: Python :: 2.7',
52+
'Programming Language :: Python :: 3 :: Only',
6853
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
7054
'Programming Language :: Python :: 3.7',
7155
'Programming Language :: Python :: 3.8',
7256
'Programming Language :: Python :: 3.9',
@@ -85,7 +69,5 @@
8569
'azure-common~=1.1',
8670
'azure-mgmt-core>=1.2.0,<2.0.0',
8771
],
88-
extras_require={
89-
":python_version<'3.0'": ['azure-mgmt-nspkg'],
90-
}
72+
python_requires=">=3.7",
9173
)

sdk/aks/azure-mgmt-devspaces/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

8+
## _Disclaimer_
9+
10+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
11+
812
# Usage
913

1014

sdk/aks/azure-mgmt-devspaces/setup.cfg

-2
This file was deleted.

sdk/aks/azure-mgmt-devspaces/setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, 'version.py')
@@ -63,10 +49,8 @@
6349
classifiers=[
6450
'Development Status :: 4 - Beta',
6551
'Programming Language :: Python',
66-
'Programming Language :: Python :: 2',
67-
'Programming Language :: Python :: 2.7',
52+
'Programming Language :: Python :: 3 :: Only',
6853
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
7054
'Programming Language :: Python :: 3.7',
7155
'Programming Language :: Python :: 3.8',
7256
'Programming Language :: Python :: 3.9',
@@ -85,7 +69,5 @@
8569
'azure-common~=1.1',
8670
'azure-mgmt-core>=1.2.0,<2.0.0',
8771
],
88-
extras_require={
89-
":python_version<'3.0'": ['azure-mgmt-nspkg'],
90-
}
72+
python_requires=">=3.7",
9173
)

sdk/alertsmanagement/azure-mgmt-alertsmanagement/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

8+
## _Disclaimer_
9+
10+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
11+
812
# Usage
913

1014

sdk/alertsmanagement/azure-mgmt-alertsmanagement/setup.cfg

-2
This file was deleted.

sdk/alertsmanagement/azure-mgmt-alertsmanagement/setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, 'version.py')
@@ -63,10 +49,8 @@
6349
classifiers=[
6450
'Development Status :: 4 - Beta',
6551
'Programming Language :: Python',
66-
'Programming Language :: Python :: 2',
67-
'Programming Language :: Python :: 2.7',
52+
'Programming Language :: Python :: 3 :: Only',
6853
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
7054
'Programming Language :: Python :: 3.7',
7155
'Programming Language :: Python :: 3.8',
7256
'Programming Language :: Python :: 3.9',
@@ -85,7 +69,5 @@
8569
'azure-common~=1.1',
8670
'azure-mgmt-core>=1.2.0,<2.0.0',
8771
],
88-
extras_require={
89-
":python_version<'3.0'": ['azure-mgmt-nspkg'],
90-
}
72+
python_requires=">=3.7",
9173
)

sdk/apimanagement/azure-mgmt-apimanagement/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

8+
## _Disclaimer_
9+
10+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
11+
812
# Usage
913

1014

sdk/apimanagement/azure-mgmt-apimanagement/setup.cfg

-2
This file was deleted.

sdk/apimanagement/azure-mgmt-apimanagement/setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, 'version.py')
@@ -63,10 +49,8 @@
6349
classifiers=[
6450
'Development Status :: 4 - Beta',
6551
'Programming Language :: Python',
66-
'Programming Language :: Python :: 2',
67-
'Programming Language :: Python :: 2.7',
52+
'Programming Language :: Python :: 3 :: Only',
6853
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
7054
'Programming Language :: Python :: 3.7',
7155
'Programming Language :: Python :: 3.8',
7256
'Programming Language :: Python :: 3.9',
@@ -85,7 +69,5 @@
8569
'azure-common~=1.1',
8670
'azure-mgmt-core>=1.2.0,<2.0.0',
8771
],
88-
extras_require={
89-
":python_version<'3.0'": ['azure-mgmt-nspkg'],
90-
}
72+
python_requires=">=3.7",
9173
)

sdk/appconfiguration/azure-mgmt-appconfiguration/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

8+
## _Disclaimer_
9+
10+
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
11+
812
# Usage
913

1014

sdk/appconfiguration/azure-mgmt-appconfiguration/setup.cfg

-2
This file was deleted.

sdk/appconfiguration/azure-mgmt-appconfiguration/setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
# a-b-c => a.b.c
2121
namespace_name = PACKAGE_NAME.replace('-', '.')
2222

23-
# azure v0.x is not compatible with this package
24-
# azure v0.x used to have a __version__ attribute (newer versions don't)
25-
try:
26-
import azure
27-
try:
28-
ver = azure.__version__
29-
raise Exception(
30-
'This package is incompatible with azure=={}. '.format(ver) +
31-
'Uninstall it with "pip uninstall azure".'
32-
)
33-
except AttributeError:
34-
pass
35-
except ImportError:
36-
pass
3723

3824
# Version extraction inspired from 'requests'
3925
with open(os.path.join(package_folder_path, 'version.py')
@@ -63,10 +49,8 @@
6349
classifiers=[
6450
'Development Status :: 4 - Beta',
6551
'Programming Language :: Python',
66-
'Programming Language :: Python :: 2',
67-
'Programming Language :: Python :: 2.7',
52+
'Programming Language :: Python :: 3 :: Only',
6853
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.6',
7054
'Programming Language :: Python :: 3.7',
7155
'Programming Language :: Python :: 3.8',
7256
'Programming Language :: Python :: 3.9',
@@ -85,7 +69,5 @@
8569
'azure-common~=1.1',
8670
'azure-mgmt-core>=1.2.0,<2.0.0',
8771
],
88-
extras_require={
89-
":python_version<'3.0'": ['azure-mgmt-nspkg'],
90-
}
72+
python_requires=">=3.7",
9173
)

0 commit comments

Comments
 (0)