Skip to content

Commit 4dc58cd

Browse files
authored
Added azure-messaging-nspkg (Azure#18266)
1 parent e2b5a4a commit 4dc58cd

File tree

6 files changed

+83
-0
lines changed

6 files changed

+83
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include *.md
2+
include azure/__init__.py
3+
include azure/messaging/__init__.py
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure Messaging namespace package.
4+
5+
This package is not intended to be installed directly by the end user.
6+
7+
Since version 3.0, this is Python 2 package only, Python 3.x SDKs will use [PEP420](https://www.python.org/dev/peps/pep-0420/) as namespace package strategy.
8+
To avoid issues with package servers that does not support `python_requires`, a Python 3 package is installed but is empty.
9+
10+
It provides the necessary files for other packages to extend the azure.messaging namespace.
11+
12+
If you are looking to install the Azure client libraries, see the
13+
[azure sdk python release](https://aka.ms/azsdk/python/all).
14+
15+
16+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-messaging-nspkg%2FREADME.png)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[packaging]
2+
auto_update = false
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
import sys
9+
from setuptools import setup
10+
11+
# azure v0.x is not compatible with this package
12+
# azure v0.x used to have a __version__ attribute (newer versions don't)
13+
try:
14+
import azure
15+
try:
16+
ver = azure.__version__
17+
raise Exception(
18+
'This package is incompatible with azure=={}. '.format(ver) +
19+
'Uninstall it with "pip uninstall azure".'
20+
)
21+
except AttributeError:
22+
pass
23+
except ImportError:
24+
pass
25+
26+
PACKAGES = []
27+
# Do an empty package on Python 3 and not python_requires, since not everybody is ready
28+
# https://github.com/Azure/azure-sdk-for-python/issues/3447
29+
# https://github.com/Azure/azure-sdk-for-python/issues/3481
30+
if sys.version_info[0] < 3:
31+
PACKAGES = ['azure.messaging']
32+
33+
setup(
34+
name='azure-messaging-nspkg',
35+
version='1.0.0',
36+
description='Microsoft Messaging Namespace Package [Internal]',
37+
long_description=open('README.md', 'r').read(),
38+
long_description_content_type='text/markdown',
39+
license='MIT License',
40+
author='Microsoft Corporation',
41+
author_email='azpysdkhelp@microsoft.com',
42+
url='https://github.com/Azure/azure-sdk-for-python',
43+
classifiers=[
44+
'Development Status :: 5 - Production/Stable',
45+
'Programming Language :: Python',
46+
'Programming Language :: Python :: 2',
47+
'Programming Language :: Python :: 2.7',
48+
'Programming Language :: Python :: 3',
49+
'Programming Language :: Python :: 3.4',
50+
'Programming Language :: Python :: 3.5',
51+
'Programming Language :: Python :: 3.6',
52+
'Programming Language :: Python :: 3.7',
53+
'License :: OSI Approved :: MIT License',
54+
],
55+
zip_safe=False,
56+
packages=PACKAGES,
57+
install_requires=[
58+
'azure-nspkg>=3.0.0',
59+
]
60+
)

0 commit comments

Comments
 (0)