Skip to content

Commit b78f354

Browse files
author
Rakshith Bhyravabhotla
authored
Azure storage meta package deprecation (#11348)
* Deprecate Azure Storage * version * Apply suggestions from code review * update * docs * omit * Update sdk/storage/azure-storage/setup.py
1 parent 0dbd577 commit b78f354

File tree

7 files changed

+80
-1
lines changed

7 files changed

+80
-1
lines changed

eng/.docsettings.yml

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ known_content_issues:
8383
- ['sdk/storage/azure-storage-blob/swagger/README.md', '#4554']
8484
- ['sdk/storage/azure-storage-file-datalake/swagger/README.md', '#4554']
8585
- ['sdk/storage/azure-storage-file-share/swagger/README.md', '#4554']
86+
- ['sdk/storage/azure-storage/README.md', '#4554']
8687
- ['sdk/storage/azure-storage-nspkg/README.rst', '#4554']
8788
- ['sdk/storage/azure-storage-queue/swagger/README.md', '#4554']
8889
- ['sdk/storage/README.md', '#4554']

scripts/devops_tasks/common_tasks.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"azure-mgmt-scheduler",
4141
"azure",
4242
"azure-mgmt",
43+
"azure-storage",
4344
]
4445
MANAGEMENT_PACKAGE_IDENTIFIERS = [
4546
"mgmt",
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disclaimer
2+
3+
Starting with v0.37.0, this package cannot be installed anymore, please install individual packages.

sdk/storage/azure-storage/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Microsoft Azure Storage SDK for Python
2+
3+
This package was the Microsoft Azure Storage bundle.
4+
5+
Starting with v0.37.0, this package is deprecated. Please install the service specific packages prefixed by `azure-storage` needed for your application.
6+
7+
The complete list of available packages can be found at:
8+
https://aka.ms/azsdk/python/all
9+
10+
Here's a non-exhaustive list of common packages:
11+
12+
- [azure-storage-blob](https://pypi.org/project/azure-storage-blob) : Blob storage client
13+
- [azure-storage-file-share](https://pypi.org/project/azure-storage-file-share) : Storage file share client
14+
- [azure-storage-file-datalake](https://pypi.org/project/azure-storage-file-datalake) : ADLS Gen2 client
15+
- [azure-storage-queue](https://pypi.org/project/azure-storage-queue): Queue storage client
16+
17+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-storage%2FREADME.png)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[packaging]
2+
auto_update = false

sdk/storage/azure-storage/setup.py

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/usr/bin/env python
2+
3+
#-------------------------------------------------------------------------
4+
# Copyright (c) Microsoft Corporation. All rights reserved.
5+
# Licensed under the MIT License. See License.txt in the project root for
6+
# license information.
7+
#--------------------------------------------------------------------------
8+
9+
from setuptools import setup
10+
import sys
11+
12+
13+
message = """
14+
15+
Starting with v0.37.0, the 'azure-storage' meta-package is deprecated and cannot be installed anymore.
16+
Please install the service specific packages prefixed by `azure` needed for your application.
17+
18+
The complete list of available packages can be found at:
19+
https://aka.ms/azsdk/python/all
20+
21+
Here's a non-exhaustive list of common packages:
22+
23+
- [azure-storage-blob](https://pypi.org/project/azure-storage-blob) : Blob storage client
24+
- [azure-storage-file-share](https://pypi.org/project/azure-storage-file-share) : Storage file share client
25+
- [azure-storage-file-datalake](https://pypi.org/project/azure-storage-file-datalake) : ADLS Gen2 client
26+
- [azure-storage-queue](https://pypi.org/project/azure-storage-queue): Queue storage client
27+
"""
28+
29+
if "sdist" in sys.argv:
30+
setup(
31+
name='azure-storage',
32+
version='0.37.0',
33+
description='Microsoft Azure Storage SDK for Python',
34+
long_description=open('README.md', 'r').read(),
35+
long_description_content_type='text/markdown',
36+
license='MIT License',
37+
author='Microsoft Corporation',
38+
author_email='[email protected]',
39+
url='https://github.com/Azure/azure-sdk-for-python',
40+
classifiers=[
41+
'Development Status :: 7 - Inactive',
42+
'Programming Language :: Python',
43+
'Programming Language :: Python :: 2',
44+
'Programming Language :: Python :: 2.7',
45+
'Programming Language :: Python :: 3',
46+
'Programming Language :: Python :: 3.5',
47+
'Programming Language :: Python :: 3.6',
48+
'Programming Language :: Python :: 3.7',
49+
'Programming Language :: Python :: 3.8',
50+
'License :: OSI Approved :: MIT License',
51+
],
52+
zip_safe=False,
53+
)
54+
else:
55+
raise RuntimeError(message)

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
nspkg_packages.sort(key = lambda x: len([c for c in x if c == '-']))
2828

2929
# Meta-packages to ignore
30-
meta_package = ['azure-keyvault', 'azure-mgmt', 'azure']
30+
meta_package = ['azure-keyvault', 'azure-mgmt', 'azure', 'azure-storage']
3131

3232
# content packages are packages that are not meta nor nspkg
3333
content_package = sorted([p for p in packages.keys() if p not in meta_package+nspkg_packages])

0 commit comments

Comments
 (0)