Skip to content

Commit 3ea3999

Browse files
msyycrakshith91
authored andcommitted
[Mgmt][Drop py2] update README.md, setup.py and delete setup.cfg for all existing packages (Azure#22240)
* drop py2 * fix broken link * Update README.md
1 parent b2c2814 commit 3ea3999

File tree

472 files changed

+935
-3475
lines changed

Some content is hidden

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

472 files changed

+935
-3475
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ This is the Microsoft Azure Advisor Client Library.
44
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

7+
## _Disclaimer_
8+
9+
_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_
710

811
# Usage
912

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

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 2 additions & 20 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 2 additions & 20 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 2 additions & 20 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 2 additions & 20 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 2 additions & 20 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 2 additions & 20 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 0 additions & 2 deletions
This file was deleted.

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

Lines changed: 2 additions & 20 deletions
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)