forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include *.rst | ||
exclude azure/__init__.py | ||
exclude azure/mgmt/__init__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Microsoft Azure SDK for Python | ||
============================== | ||
|
||
This is the Microsoft Azure DNS Client Library. | ||
|
||
Azure Resource Manager (ARM) is the next generation of management APIs that | ||
replace the old Azure Service Management (ASM). | ||
|
||
This package has been tested with Python 2.7, 3.3, 3.4 and 3.5. | ||
|
||
For the older Azure Service Management (ASM) libraries, see | ||
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library. | ||
|
||
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package. | ||
|
||
|
||
Compatibility | ||
============= | ||
|
||
**IMPORTANT**: If you have an earlier version of the azure package | ||
(version < 1.0), you should uninstall it before installing this package. | ||
|
||
You can check the version using pip: | ||
|
||
.. code:: shell | ||
pip freeze | ||
If you see azure==0.11.0 (or any version below 1.0), uninstall it first: | ||
|
||
.. code:: shell | ||
pip uninstall azure | ||
Usage | ||
===== | ||
|
||
For code examples, see `DNS | ||
<https://azure-sdk-for-python.readthedocs.org/en/latest/dns.html>`__ | ||
on readthedocs.org. | ||
|
||
|
||
Provide Feedback | ||
================ | ||
|
||
If you encounter any bugs or have suggestions, please file an issue in the | ||
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__ | ||
section of the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
|
||
[install] | ||
single-version-externally-managed=1 | ||
record=RECORD.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/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. | ||
#-------------------------------------------------------------------------- | ||
|
||
from setuptools import setup | ||
import re | ||
|
||
# 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('azure/mgmt/dns/version.py', 'r') as fd: | ||
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
fd.read(), re.MULTILINE).group(1) | ||
|
||
if not version: | ||
raise RuntimeError('Cannot find version information') | ||
|
||
setup( | ||
name='azure-mgmt-dns', | ||
version=version, | ||
description='Microsoft Azure dns Library for Python', | ||
long_description=open('README.rst', 'r').read(), | ||
license='MIT License', | ||
author='Microsoft Corporation', | ||
author_email='ptvshelp@microsoft.com', | ||
url='https://github.com/Azure/azure-sdk-for-python', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'License :: OSI Approved :: MIT License', | ||
], | ||
zip_safe=False, | ||
packages=[ | ||
'azure', | ||
'azure.mgmt', | ||
'azure.mgmt.dns', | ||
'azure.mgmt.dns.models', | ||
'azure.mgmt.dns.operations', | ||
], | ||
install_requires=[ | ||
'azure-common[autorest]==1.1.4', | ||
'azure-mgmt-nspkg', | ||
], | ||
) |