Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion eng/ci_tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pyOpenSSL==19.1.0
json-delta==2.0
ConfigArgParse==1.2.3
six==1.14.0
vcrpy==3.0.0
pyyaml==5.3.1
pytest==5.4.2; python_version >= '3.5'
pytest==4.6.9; python_version == '2.7'
Expand Down
1 change: 0 additions & 1 deletion eng/test_tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pyOpenSSL==19.1.0
json-delta==2.0
ConfigArgParse==1.2.3
six==1.14.0
vcrpy==3.0.0
pyyaml==5.3.1
packaging==20.4
wheel==0.34.2
Expand Down
1 change: 0 additions & 1 deletion sdk/storage/azure-mgmt-storage/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
5 changes: 3 additions & 2 deletions sdk/storage/azure-mgmt-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ To learn how to use this package, see the [quickstart guide](https://aka.ms/azsd



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/storage?view=azure-python-preview)
Code samples for this package can be found at [Storage Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


# 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.
section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-storage%2FREADME.png)
2 changes: 1 addition & 1 deletion sdk/storage/azure-mgmt-storage/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion sdk/storage/azure-mgmt-storage/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion sdk/storage/azure-mgmt-storage/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-e ../../../tools/vcrpy
-e ../../../tools/azure-sdk-tools
aiohttp>=3.0; python_version >= '3.5'

-e ../../../tools/azure-devtools
1 change: 1 addition & 0 deletions sdk/storage/azure-mgmt-storage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
Expand Down
1 change: 0 additions & 1 deletion sdk/storage/azure-mgmt-storagesync/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
30 changes: 11 additions & 19 deletions sdk/storage/azure-mgmt-storagesync/README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Storage Sync 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.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

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 sdk python release](https://aka.ms/azsdk/python/all).

## Usage
# Usage


To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Storage Sync Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Code samples for this package can be found at [Storage Sync](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Provide Feedback
# 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.

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-mgmt-storagesync%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-storagesync%2FREADME.png)
2 changes: 1 addition & 1 deletion sdk/storage/azure-mgmt-storagesync/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions sdk/storage/azure-mgmt-storagesync/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-e ../../../tools/vcrpy
-e ../../../tools/azure-sdk-tools
-e ../../../tools/azure-devtools
7 changes: 5 additions & 2 deletions sdk/storage/azure-mgmt-storagesync/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
pass

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

Expand Down Expand Up @@ -68,6 +70,7 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
Expand All @@ -79,8 +82,8 @@
]),
install_requires=[
'msrest>=0.6.21',
'msrestazure>=0.4.32,<2.0.0',
'azure-common~=1.1',
'azure-mgmt-core>=1.2.0,<2.0.0',
],
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-e ../../../tools/vcrpy
-e ../../../tools/azure-devtools
-e ../../../tools/azure-sdk-tools
../azure-storage-blob
-e ../../identity/azure-identity
aiohttp>=3.0; python_version >= '3.5'
aiohttp>=3.0; python_version >= '3.5'
1 change: 1 addition & 0 deletions sdk/storage/azure-storage-blob/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-e ../../../tools/vcrpy
-e ../../../tools/azure-devtools
-e ../../../tools/azure-sdk-tools
../../core/azure-core
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-e ../../../tools/vcrpy
-e ../../../tools/azure-devtools
-e ../../../tools/azure-sdk-tools
../../core/azure-core
../azure-storage-blob
-e ../../identity/azure-identity
aiohttp>=3.0; python_version >= '3.5'
adal
adal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-e ../../../tools/vcrpy
-e ../../../tools/azure-devtools
-e ../../../tools/azure-sdk-tools
../../core/azure-core
Expand Down
1 change: 1 addition & 0 deletions sdk/storage/azure-storage-queue/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-e ../../../tools/vcrpy
-e ../../../tools/azure-devtools
-e ../../../tools/azure-sdk-tools
../../core/azure-core
Expand Down
5 changes: 1 addition & 4 deletions tools/azure-devtools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
import io
from setuptools import setup


VERSION = "1.2.1"


CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
Expand All @@ -25,8 +23,7 @@
"License :: OSI Approved :: MIT License",
]


DEPENDENCIES = ["ConfigArgParse>=0.12.0", "six>=1.10.0", "vcrpy==3.0.0"]
DEPENDENCIES = ["ConfigArgParse>=0.12.0", "six>=1.10.0", "vcrpy~=3.0.0"]

with io.open("README.rst", "r", encoding="utf-8") as f:
README = f.read()
Expand Down
7 changes: 7 additions & 0 deletions tools/vcrpy/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2012-2015 Kevin McCarthy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 6 additions & 0 deletions tools/vcrpy/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include README.rst
include LICENSE.txt
include tox.ini
recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
90 changes: 90 additions & 0 deletions tools/vcrpy/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
Metadata-Version: 1.2
Name: vcrpy
Version: 3.0.0
Summary: Automatically mock your HTTP interactions to simplify and speed up testing
Home-page: https://github.com/kevin1024/vcrpy
Author: Kevin McCarthy
Author-email: me@kevinmccarthy.org
License: MIT
Description: |PyPI| |Python versions| |Build Status| |CodeCov| |Gitter| |CodeStyleBlack|

VCR.py
======

.. image:: https://raw.github.com/kevin1024/vcrpy/master/vcr.png
:alt: vcr.py

This is a Python version of `Ruby's VCR
library <https://github.com/vcr/vcr>`__.

Source code
https://github.com/kevin1024/vcrpy

Documentation
https://vcrpy.readthedocs.io/

Rationale
---------

VCR.py simplifies and speeds up tests that make HTTP requests. The
first time you run code that is inside a VCR.py context manager or
decorated function, VCR.py records all HTTP interactions that take
place through the libraries it supports and serializes and writes them
to a flat file (in yaml format by default). This flat file is called a
cassette. When the relevant piece of code is executed again, VCR.py
will read the serialized requests and responses from the
aforementioned cassette file, and intercept any HTTP requests that it
recognizes from the original test run and return the responses that
corresponded to those requests. This means that the requests will not
actually result in HTTP traffic, which confers several benefits
including:

- The ability to work offline
- Completely deterministic tests
- Increased test execution speed

If the server you are testing against ever changes its API, all you need
to do is delete your existing cassette files, and run your tests again.
VCR.py will detect the absence of a cassette file and once again record
all HTTP interactions, which will update them to correspond to the new
API.

License
=======

This library uses the MIT license. See `LICENSE.txt <LICENSE.txt>`__ for
more details

.. |PyPI| image:: https://img.shields.io/pypi/v/vcrpy.svg
:target: https://pypi.python.org/pypi/vcrpy
.. |Python versions| image:: https://img.shields.io/pypi/pyversions/vcrpy.svg
:target: https://pypi.python.org/pypi/vcrpy
.. |Build Status| image:: https://secure.travis-ci.org/kevin1024/vcrpy.svg?branch=master
:target: http://travis-ci.org/kevin1024/vcrpy
.. |Gitter| image:: https://badges.gitter.im/Join%20Chat.svg
:alt: Join the chat at https://gitter.im/kevin1024/vcrpy
:target: https://gitter.im/kevin1024/vcrpy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
.. |CodeCov| image:: https://codecov.io/gh/kevin1024/vcrpy/branch/master/graph/badge.svg
:target: https://codecov.io/gh/kevin1024/vcrpy
:alt: Code Coverage Status
.. |CodeStyleBlack| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: black

Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
64 changes: 64 additions & 0 deletions tools/vcrpy/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
|PyPI| |Python versions| |Build Status| |CodeCov| |Gitter| |CodeStyleBlack|

VCR.py
======

.. image:: https://raw.github.com/kevin1024/vcrpy/master/vcr.png
:alt: vcr.py

This is a Python version of `Ruby's VCR
library <https://github.com/vcr/vcr>`__.

Source code
https://github.com/kevin1024/vcrpy

Documentation
https://vcrpy.readthedocs.io/

Rationale
---------

VCR.py simplifies and speeds up tests that make HTTP requests. The
first time you run code that is inside a VCR.py context manager or
decorated function, VCR.py records all HTTP interactions that take
place through the libraries it supports and serializes and writes them
to a flat file (in yaml format by default). This flat file is called a
cassette. When the relevant piece of code is executed again, VCR.py
will read the serialized requests and responses from the
aforementioned cassette file, and intercept any HTTP requests that it
recognizes from the original test run and return the responses that
corresponded to those requests. This means that the requests will not
actually result in HTTP traffic, which confers several benefits
including:

- The ability to work offline
- Completely deterministic tests
- Increased test execution speed

If the server you are testing against ever changes its API, all you need
to do is delete your existing cassette files, and run your tests again.
VCR.py will detect the absence of a cassette file and once again record
all HTTP interactions, which will update them to correspond to the new
API.

License
=======

This library uses the MIT license. See `LICENSE.txt <LICENSE.txt>`__ for
more details

.. |PyPI| image:: https://img.shields.io/pypi/v/vcrpy.svg
:target: https://pypi.python.org/pypi/vcrpy
.. |Python versions| image:: https://img.shields.io/pypi/pyversions/vcrpy.svg
:target: https://pypi.python.org/pypi/vcrpy
.. |Build Status| image:: https://secure.travis-ci.org/kevin1024/vcrpy.svg?branch=master
:target: http://travis-ci.org/kevin1024/vcrpy
.. |Gitter| image:: https://badges.gitter.im/Join%20Chat.svg
:alt: Join the chat at https://gitter.im/kevin1024/vcrpy
:target: https://gitter.im/kevin1024/vcrpy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
.. |CodeCov| image:: https://codecov.io/gh/kevin1024/vcrpy/branch/master/graph/badge.svg
:target: https://codecov.io/gh/kevin1024/vcrpy
:alt: Code Coverage Status
.. |CodeStyleBlack| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: black
7 changes: 7 additions & 0 deletions tools/vcrpy/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[bdist_wheel]
universal = 1

[egg_info]
tag_build =
tag_date = 0

Loading