Skip to content

Commit

Permalink
[Mgmt][Drop py2] update README.md, setup.py and delete `setup.cfg…
Browse files Browse the repository at this point in the history
…` for all existing packages (Azure#22240)

* drop py2

* fix broken link

* Update README.md
  • Loading branch information
msyyc authored and rakshith91 committed Apr 10, 2022
1 parent b2c2814 commit 3ea3999
Show file tree
Hide file tree
Showing 472 changed files with 935 additions and 3,475 deletions.
3 changes: 3 additions & 0 deletions sdk/advisor/azure-mgmt-advisor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This is the Microsoft Azure Advisor Client Library.
This package has been tested with Python 2.7, 3.6+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_

_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_

# Usage

Expand Down
2 changes: 0 additions & 2 deletions sdk/advisor/azure-mgmt-advisor/setup.cfg

This file was deleted.

22 changes: 2 additions & 20 deletions sdk/advisor/azure-mgmt-advisor/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
Expand Down Expand Up @@ -63,10 +49,8 @@
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -85,7 +69,5 @@
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
python_requires=">=3.7",
)
4 changes: 4 additions & 0 deletions sdk/agfood/azure-mgmt-agfood/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


## _Disclaimer_

_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_

# Usage


Expand Down
2 changes: 0 additions & 2 deletions sdk/agfood/azure-mgmt-agfood/setup.cfg

This file was deleted.

22 changes: 2 additions & 20 deletions sdk/agfood/azure-mgmt-agfood/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
Expand Down Expand Up @@ -63,10 +49,8 @@
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -85,7 +69,5 @@
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
python_requires=">=3.7",
)
4 changes: 4 additions & 0 deletions sdk/agrifood/azure-mgmt-agrifood/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


## _Disclaimer_

_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_

# Usage


Expand Down
2 changes: 0 additions & 2 deletions sdk/agrifood/azure-mgmt-agrifood/setup.cfg

This file was deleted.

22 changes: 2 additions & 20 deletions sdk/agrifood/azure-mgmt-agrifood/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
Expand Down Expand Up @@ -63,10 +49,8 @@
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -85,7 +69,5 @@
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
python_requires=">=3.7",
)
4 changes: 4 additions & 0 deletions sdk/aks/azure-mgmt-devspaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


## _Disclaimer_

_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_

# Usage


Expand Down
2 changes: 0 additions & 2 deletions sdk/aks/azure-mgmt-devspaces/setup.cfg

This file was deleted.

22 changes: 2 additions & 20 deletions sdk/aks/azure-mgmt-devspaces/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
Expand Down Expand Up @@ -63,10 +49,8 @@
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -85,7 +69,5 @@
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
python_requires=">=3.7",
)
4 changes: 4 additions & 0 deletions sdk/alertsmanagement/azure-mgmt-alertsmanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


## _Disclaimer_

_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_

# Usage


Expand Down
2 changes: 0 additions & 2 deletions sdk/alertsmanagement/azure-mgmt-alertsmanagement/setup.cfg

This file was deleted.

22 changes: 2 additions & 20 deletions sdk/alertsmanagement/azure-mgmt-alertsmanagement/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
Expand Down Expand Up @@ -63,10 +49,8 @@
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -85,7 +69,5 @@
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
python_requires=">=3.7",
)
4 changes: 4 additions & 0 deletions sdk/apimanagement/azure-mgmt-apimanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


## _Disclaimer_

_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_

# Usage


Expand Down
2 changes: 0 additions & 2 deletions sdk/apimanagement/azure-mgmt-apimanagement/setup.cfg

This file was deleted.

22 changes: 2 additions & 20 deletions sdk/apimanagement/azure-mgmt-apimanagement/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
Expand Down Expand Up @@ -63,10 +49,8 @@
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -85,7 +69,5 @@
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
python_requires=">=3.7",
)
4 changes: 4 additions & 0 deletions sdk/appconfiguration/azure-mgmt-appconfiguration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ This package has been tested with Python 2.7, 3.6+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


## _Disclaimer_

_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_

# Usage


Expand Down
2 changes: 0 additions & 2 deletions sdk/appconfiguration/azure-mgmt-appconfiguration/setup.cfg

This file was deleted.

22 changes: 2 additions & 20 deletions sdk/appconfiguration/azure-mgmt-appconfiguration/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
# a-b-c => a.b.c
namespace_name = PACKAGE_NAME.replace('-', '.')

# azure v0.x is not compatible with this package
# azure v0.x used to have a __version__ attribute (newer versions don't)
try:
import azure
try:
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
)
except AttributeError:
pass
except ImportError:
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
Expand Down Expand Up @@ -63,10 +49,8 @@
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -85,7 +69,5 @@
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
python_requires=">=3.7",
)
Loading

0 comments on commit 3ea3999

Please sign in to comment.