Skip to content

Commit

Permalink
Packaging update of azure-storage-queue
Browse files Browse the repository at this point in the history
  • Loading branch information
AutorestCI committed Jun 22, 2019
1 parent 9c4b0cd commit fdc62ab
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 11 deletions.
9 changes: 9 additions & 0 deletions sdk/storage/azure-storage-queue/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:
Release History
===============

0.1.0 (1970-01-01)
++++++++++++++++++

* Initial Release
5 changes: 3 additions & 2 deletions sdk/storage/azure-storage-queue/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include *.md
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/storage/__init__.py
include LICENSE.txt

33 changes: 33 additions & 0 deletions sdk/storage/azure-storage-queue/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure MyService Management 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.4, 3.5, 3.6 and 3.7.

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.


Usage
=====

For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


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.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-storage-queue%2FREADME.png
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-queue/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: str
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-queue/azure/storage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: str
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
8 changes: 8 additions & 0 deletions sdk/storage/azure-storage-queue/sdk_packaging.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[packaging]
package_name = "azure-storage-queue"
package_nspkg = "azure-storage-nspkg"
package_pprint_name = "MyService Management"
package_doc_id = ""
is_stable = false
is_arm = true
need_msrestazure = true
15 changes: 8 additions & 7 deletions sdk/storage/azure-storage-queue/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import re
import os.path
from io import open
from setuptools import find_packages, setup # type: ignore
from setuptools import find_packages, setup

# Change the PACKAGE_NAME only to change folder and different name
PACKAGE_NAME = "azure-storage-queue"
Expand All @@ -25,7 +25,7 @@
try:
import azure
try:
ver = azure.__version__ # type: ignore
ver = azure.__version__
raise Exception(
'This package is incompatible with azure=={}. '.format(ver) +
'Uninstall it with "pip uninstall azure".'
Expand All @@ -37,23 +37,23 @@

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', # type: ignore
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

if not version:
raise RuntimeError('Cannot find version information')

with open('README.md', encoding='utf-8') as f:
with open('README.rst', encoding='utf-8') as f:
readme = f.read()
with open('HISTORY.md', encoding='utf-8') as f:
with open('HISTORY.rst', encoding='utf-8') as f:
history = f.read()

setup(
name=PACKAGE_NAME,
version=version,
description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME),
long_description=readme + '\n\n' + history,
long_description_content_type='text/markdown',
long_description_content_type='text/x-rst',
license='MIT License',
author='Microsoft Corporation',
author_email='azpysdkhelp@microsoft.com',
Expand All @@ -75,13 +75,14 @@
'tests',
# Exclude packages that will be covered by PEP420 or nspkg
'azure',
'azure.storage',
]),
install_requires=[
'msrest>=0.5.0',
'msrestazure>=0.4.32,<2.0.0',
'azure-common~=1.1',
],
extras_require={
":python_version<'3.0'": ['azure-nspkg'],
":python_version<'3.0'": ['azure-storage-nspkg'],
}
)

0 comments on commit fdc62ab

Please sign in to comment.