diff --git a/sdk/nspkg/azure-monitor-nspkg/CHANGELOG.md b/sdk/nspkg/azure-monitor-nspkg/CHANGELOG.md new file mode 100644 index 000000000000..cf818fb2bdeb --- /dev/null +++ b/sdk/nspkg/azure-monitor-nspkg/CHANGELOG.md @@ -0,0 +1,3 @@ +# Release History + +## 1.0.0 (2021-06-08) diff --git a/sdk/nspkg/azure-monitor-nspkg/MANIFEST.in b/sdk/nspkg/azure-monitor-nspkg/MANIFEST.in new file mode 100644 index 000000000000..944d91b3b7df --- /dev/null +++ b/sdk/nspkg/azure-monitor-nspkg/MANIFEST.in @@ -0,0 +1,3 @@ +include *.md +include azure/__init__.py +include azure/monitor/__init__.py diff --git a/sdk/nspkg/azure-monitor-nspkg/README.md b/sdk/nspkg/azure-monitor-nspkg/README.md new file mode 100644 index 000000000000..049095aa81af --- /dev/null +++ b/sdk/nspkg/azure-monitor-nspkg/README.md @@ -0,0 +1,16 @@ +# Microsoft Azure SDK for Python + +This is the Microsoft Azure monitor Services namespace package. + +This package is not intended to be installed directly by the end user. + +Since version 3.0, this is Python 2 package only, Python 3.x SDKs will use `PEP420 ` as namespace package strategy. +To avoid issues with package servers that does not support `python_requires`, a Python 3 package is installed but is empty. + +It provides the necessary files for other packages to extend the azure.ai namespace. + +If you are looking to install the Azure client libraries, see the +`azure `__ bundle package. + + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Ftextanalytics%2Fazure-ai-nspkg%2FREADME.png) \ No newline at end of file diff --git a/sdk/nspkg/azure-monitor-nspkg/azure/__init__.py b/sdk/nspkg/azure-monitor-nspkg/azure/__init__.py new file mode 100644 index 000000000000..69e3be50dac4 --- /dev/null +++ b/sdk/nspkg/azure-monitor-nspkg/azure/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/sdk/nspkg/azure-monitor-nspkg/azure/monitor/__init__.py b/sdk/nspkg/azure-monitor-nspkg/azure/monitor/__init__.py new file mode 100644 index 000000000000..69e3be50dac4 --- /dev/null +++ b/sdk/nspkg/azure-monitor-nspkg/azure/monitor/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/sdk/nspkg/azure-monitor-nspkg/sdk_packaging.toml b/sdk/nspkg/azure-monitor-nspkg/sdk_packaging.toml new file mode 100644 index 000000000000..e7687fdae93b --- /dev/null +++ b/sdk/nspkg/azure-monitor-nspkg/sdk_packaging.toml @@ -0,0 +1,2 @@ +[packaging] +auto_update = false \ No newline at end of file diff --git a/sdk/nspkg/azure-monitor-nspkg/setup.py b/sdk/nspkg/azure-monitor-nspkg/setup.py new file mode 100644 index 000000000000..3c5449f2c305 --- /dev/null +++ b/sdk/nspkg/azure-monitor-nspkg/setup.py @@ -0,0 +1,59 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- +import sys +from setuptools import setup + +# 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 + +PACKAGES = [] +# Do an empty package on Python 3 and not python_requires, since not everybody is ready +# https://github.com/Azure/azure-sdk-for-python/issues/3447 +# https://github.com/Azure/azure-sdk-for-python/issues/3481 +if sys.version_info[0] < 3: + PACKAGES = ['azure.monitor'] + +setup( + name='azure-monitor-nspkg', + version='1.0.0', + description='Microsoft Azure monitor Namespace Package [Internal]', + long_description=open('README.md', 'r').read(), + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + packages=PACKAGES, + install_requires=[ + 'azure-nspkg>=3.0.0', + ] +) diff --git a/sdk/nspkg/ci.yml b/sdk/nspkg/ci.yml index ffb881ee82fe..a0a616ddd8ab 100644 --- a/sdk/nspkg/ci.yml +++ b/sdk/nspkg/ci.yml @@ -59,6 +59,9 @@ extends: - name: azure-messaging-nspkg safeName: azuremessagingnspkg skipVerifyChangeLog: true + - name: azure-monitor-nspkg + safeName: azuremonitornspkg + skipVerifyChangeLog: true - name: azure-purview-nspkg safeName: azurepurviewnspkg skipVerifyChangeLog: true