Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
ceeb803
[Batch] Patch TaskOperations.add_collection with convenience function…
bgklein Sep 17, 2018
e2fd2c5
[AutoPR] alertsmanagement/resource-manager (#3342)
AutorestCI Sep 17, 2018
41ff15b
3.4 allowed failure to workaround vcrpy 2.0.0 (#3405)
lmazuel Sep 21, 2018
e14eaf7
Update PR should do nothing on nspkg
lmazuel Sep 21, 2018
da159e1
Revert "3.4 allowed failure to workaround vcrpy 2.0.0" (#3416)
lmazuel Sep 24, 2018
9195624
Auto-update parameter for toml (#3419)
lmazuel Sep 24, 2018
bf3478b
Update Batch patch structure and documentation - no functionality cha…
bgklein Sep 25, 2018
44e09c3
azure nspkg 3.0 (#3412)
lmazuel Sep 25, 2018
c034a52
Update ADL nspkg
lmazuel Sep 25, 2018
ed4dbf6
PEP420 ChangeLog [skip ci]
lmazuel Sep 25, 2018
4817a54
[AutoPR] compute/resource-manager (#3383)
AutorestCI Sep 25, 2018
8ae3866
azure-common 1.1.16 (#3441)
lmazuel Sep 26, 2018
54bdf99
[AutoPR] storage/resource-manager (#3352)
AutorestCI Sep 27, 2018
bd6197a
[AutoPR] servicebus/resource-manager (#3331)
AutorestCI Sep 28, 2018
aea01fa
ChangeLog fixes [skip ci]
lmazuel Sep 28, 2018
9eeaf8d
azure-nspkg 3.0.1 (#3483)
lmazuel Oct 2, 2018
54edddc
azure-mgmt-nspkg 3.0.1
lmazuel Oct 2, 2018
8f41f4c
nspkg 3.0.2 (#3488)
lmazuel Oct 2, 2018
c8cbce3
[AutoPR] compute/resource-manager (#3437)
AutorestCI Oct 3, 2018
a8b56b3
[AutoPR] mediaservices/resource-manager (#3446)
AutorestCI Oct 3, 2018
3f636c3
[AutoPR] containerinstance/resource-manager (#3489)
AutorestCI Oct 8, 2018
70041a3
[AutoPR] cosmos-db/resource-manager (#2781)
AutorestCI Oct 8, 2018
8275dce
[AutoPR] restapi_auto_graphrbac/data-plane (#2032)
lmazuel Oct 10, 2018
2c5f990
GraphRBAC 0.50.0 from #2032
lmazuel Oct 10, 2018
9d51cf2
Generated from dad49351288e4f30220300156d2cfccf9055a949 (#3546) (#3547)
AutorestCI Oct 10, 2018
f8c6958
[AutoPR] mysql/resource-manager (#3469)
AutorestCI Oct 11, 2018
555a4e1
[AutoPR] graphrbac/data-plane (#3570)
AutorestCI Oct 11, 2018
245328c
Make multiapi script better in extracting api_version from inside the…
lmazuel Oct 12, 2018
e85b53b
[AutoPR] advisor/resource-manager (#2843)
AutorestCI Oct 15, 2018
3cce3ea
Fix sdist template
lmazuel Oct 16, 2018
7ebacd6
Compute 4.3.1 (#3619)
lmazuel Oct 16, 2018
d8b0b44
Fixes warning about session reuse. (#3613)
zooba Oct 16, 2018
14205ff
azure-batch 5.1.1 (#3625)
lmazuel Oct 16, 2018
acc1fb5
Fixing broken sdist (#3624)
lmazuel Oct 16, 2018
824468c
ADL nskpkg 3.0.1 (#3631)
lmazuel Oct 17, 2018
f489206
[AutoPR] cognitiveservices/data-plane/Face (#3011)
AutorestCI Oct 17, 2018
934fc3c
Face packaging adjustement
lmazuel Oct 17, 2018
11439f2
Improve venv management [skip ci]
lmazuel Oct 17, 2018
afc2be4
[AutoPR] containerregistry/resource-manager (#3467)
AutorestCI Oct 17, 2018
2b2d26f
[AutoPR] sql/resource-manager (#2671)
AutorestCI Oct 18, 2018
ce09935
Update HISTORY.rst
lmazuel Oct 18, 2018
cf1df01
[AutoPR] eventgrid/resource-manager (#2902)
AutorestCI Oct 26, 2018
4b8b001
[AutoPR] iotcentral/resource-manager (#3137)
AutorestCI Oct 26, 2018
210c630
SBMgmt 0.5.3 (#3708)
lmazuel Oct 29, 2018
45cfb1b
[AutoPR] eventhub/resource-manager (#3240)
AutorestCI Oct 29, 2018
e9e44c9
[AutoPR] graphrbac/data-plane (#3711)
AutorestCI Oct 29, 2018
5628908
[AutoPR] security/resource-manager (#3683)
AutorestCI Oct 29, 2018
a3044d6
[AutoPR] mariadb/resource-manager (#3699)
AutorestCI Oct 30, 2018
f056770
[AutoPR] cosmos-db/resource-manager (#3732)
AutorestCI Nov 5, 2018
bed9b8f
Ignore code_reports [skip ci]
lmazuel Nov 5, 2018
23f8e27
[AutoPR] reservations/resource-manager (#3726)
AutorestCI Nov 5, 2018
9efcde4
[AutoPR] containerinstance/resource-manager (#3736)
AutorestCI Nov 5, 2018
84a7722
[AutoPR] datamigration/resource-manager (#3475)
AutorestCI Nov 5, 2018
bb7509f
[AutoPR] containerregistry/resource-manager (#3739)
AutorestCI Nov 6, 2018
303d984
[AutoPR] network/resource-manager (#3617)
AutorestCI Nov 8, 2018
e975afc
[AutoPR] sql/resource-manager (#3680)
AutorestCI Nov 8, 2018
feb8d61
Add package option to not need msrestazure
lmazuel Nov 9, 2018
5cc435e
[AutoPR] authorization/resource-manager (#3262)
AutorestCI Nov 12, 2018
77f90d5
[AutoPR] containerinstance/resource-manager (#3783)
AutorestCI Nov 12, 2018
1472405
[AutoPR cognitiveservices/data-plane/CustomVision/Training/cognitives…
AutorestCI Nov 15, 2018
ade0c7d
[AutoPR] storage/resource-manager (#3712)
AutorestCI Nov 16, 2018
17f3d57
[AutoPR] graphrbac/data-plane (#3885)
AutorestCI Nov 27, 2018
211bc96
[AutoPR] azure-kusto/resource-manager (#3391)
AutorestCI Nov 27, 2018
667b568
[AutoPR] authorization/resource-manager (#3845)
AutorestCI Nov 27, 2018
ed3ffa1
[AutoPR] network/resource-manager (#3779)
AutorestCI Nov 27, 2018
ec18d0b
[AutoPR] sqlvirtualmachine/resource-manager (#3810)
AutorestCI Nov 27, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
__pycache__/
*.pyc
.pytest_cache
.mypy_cache
.cache

# Virtual environment
env*/
Expand All @@ -26,7 +28,7 @@ build/
# Test results
TestResults/

# Credentials
# Credentials
credentials_real.json
testsettings_local.json
testsettings_local.cfg
Expand Down Expand Up @@ -66,4 +68,6 @@ src/build
*.pubxml

# [begoldsm] ignore virtual env if it exists.
adlEnv/
adlEnv/

code_reports
1 change: 0 additions & 1 deletion azure-applicationinsights/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include *.rst
include azure_bdist_wheel.py
2 changes: 1 addition & 1 deletion azure-applicationinsights/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Application Insights 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 and 3.6.
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.
Expand Down
2 changes: 1 addition & 1 deletion azure-applicationinsights/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
54 changes: 0 additions & 54 deletions azure-applicationinsights/azure_bdist_wheel.py

This file was deleted.

1 change: 0 additions & 1 deletion azure-applicationinsights/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[bdist_wheel]
universal=1
azure-namespace-package=azure-nspkg
18 changes: 9 additions & 9 deletions azure-applicationinsights/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
import os.path
from io import open
from setuptools import find_packages, setup
try:
from azure_bdist_wheel import cmdclass
except ImportError:
from distutils import log as logger
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

# Change the PACKAGE_NAME only to change folder and different name
PACKAGE_NAME = "azure-applicationinsights"
Expand Down Expand Up @@ -76,10 +70,16 @@
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
packages=find_packages(exclude=["tests"]),
packages=find_packages(exclude=[
'tests',
# Exclude packages that will be covered by PEP420 or nspkg
'azure',
]),
install_requires=[
'msrest>=0.5.4,<2.0.0',
'msrest>=0.5.0',
'azure-common~=1.1',
],
cmdclass=cmdclass
extras_require={
":python_version<'3.0'": ['azure-nspkg'],
}
)
32 changes: 26 additions & 6 deletions azure-batch/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
Release History
===============

5.1.1 (2018-10-16)
++++++++++++++++++

**Bugfixes**

- Fix authentication class to allow HTTP session to be re-used

**Note**

- azure-nspkg is not installed anymore on Python 3 (PEP420-based namespace package)

5.1.0 (2018-08-28)
++++++++++++++++++

- Update operation TaskOperations.add_collection with the following added functionality:
- Retry server side errors.
- Automatically chunk lists of more than 100 tasks to multiple requests.
- If tasks are too large to be submitted in chunks of 100, reduces number of tasks per request.
- Add a parameter to specify number of threads to use when submitting tasks.

5.0.0 (2018-08-24)
++++++++++++++++++

Expand All @@ -19,7 +39,7 @@ Release History
- Operation ComputeNodeOperations.disable_scheduling
- Operation ComputeNodeOperations.reboot
- Operation JobOperations.terminate
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.

4.1.3 (2018-04-24)
++++++++++++++++++
Expand Down Expand Up @@ -78,16 +98,16 @@ Release History
- Added a new `allow_low_priority_node` property to `JobManagerTask`, which if `true` allows the `JobManagerTask` to run on a low-priority compute node.
- `PoolResizeParameter` now takes two optional parameters, `target_dedicated_nodes` and `target_low_priority_nodes`, instead of one required parameter `target_dedicated`.
At least one of these two parameters must be specified.
- Added support for uploading task output files to persistent storage, via the `OutputFiles` property on `CloudTask` and `JobManagerTask`.
- Added support for specifying actions to take based on a task's output file upload status, via the `file_upload_error` property on `ExitConditions`.
- Added support for uploading task output files to persistent storage, via the `OutputFiles` property on `CloudTask` and `JobManagerTask`.
- Added support for specifying actions to take based on a task's output file upload status, via the `file_upload_error` property on `ExitConditions`.
- Added support for determining if a task was a success or a failure via the new `result` property on all task execution information objects.
- Renamed `scheduling_error` on all task execution information objects to `failure_information`. `TaskFailureInformation` replaces `TaskSchedulingError` and is returned any
time there is a task failure. This includes all previous scheduling error cases, as well as nonzero task exit codes, and file upload failures from the new output files feature.
time there is a task failure. This includes all previous scheduling error cases, as well as nonzero task exit codes, and file upload failures from the new output files feature.
- Renamed `SchedulingErrorCategory` enum to `ErrorCategory`.
- Renamed `scheduling_error` on `ExitConditions` to `pre_processing_error` to more clearly clarify when the error took place in the task life-cycle.
- Added support for provisioning application licenses to your pool, via a new `application_licenses` property on `PoolAddParameter`, `CloudPool` and `PoolSpecification`.
Please note that this feature is in gated public preview, and you must request access to it via a support ticket.
- The `ssh_private_key` attribute of a `UserAccount` object has been replaced with an expanded `LinuxUserConfiguration` object with additional settings for a user ID and group ID of the
- The `ssh_private_key` attribute of a `UserAccount` object has been replaced with an expanded `LinuxUserConfiguration` object with additional settings for a user ID and group ID of the
user account.
- Removed `unmapped` enum state from `AddTaskStatus`, `CertificateFormat`, `CertificateVisibility`, `CertStoreLocation`, `ComputeNodeFillType`, `OSType`, and `PoolLifetimeOption` as they were not ever used.
- Improved and clarified documentation.
Expand Down Expand Up @@ -124,7 +144,7 @@ Release History

- Added support for joining a CloudPool to a virtual network on using the network_configuration property.
- Added support for application package references on CloudTask and JobManagerTask.
- Added support for automatically terminating jobs when all tasks complete or when a task fails, via the on_all_tasks_complete property and
- Added support for automatically terminating jobs when all tasks complete or when a task fails, via the on_all_tasks_complete property and
the CloudTask exit_conditions property.

0.30.0rc5
Expand Down
3 changes: 2 additions & 1 deletion azure-batch/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include *.rst
include azure_bdist_wheel.py
include azure/__init__.py

7 changes: 4 additions & 3 deletions azure-batch/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Microsoft Azure SDK for Python

This is the Microsoft Azure Batch Client Library.

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
Expand All @@ -28,14 +30,13 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `the Batch samples repo
For code examples, see `the Batch samples repo
<https://github.com/Azure/azure-batch-samples/tree/master/Python>`__
on GitHub or see `Batch
<https://docs.microsoft.com/python/api/overview/azure/batch>`__
on docs.microsoft.com.



Provide Feedback
================

Expand Down
2 changes: 1 addition & 1 deletion azure-batch/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
6 changes: 3 additions & 3 deletions azure-batch/azure/batch/batch_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def __init__(self, account_name, key):
super(SharedKeyCredentials, self).__init__()
self.auth = SharedKeyAuth(self.header, account_name, key)

def signed_session(self):
def signed_session(self, session=None):

session = super(SharedKeyCredentials, self).signed_session()
session = super(SharedKeyCredentials, self).signed_session(session=session)
session.auth = self.auth

return session


4 changes: 4 additions & 0 deletions azure-batch/azure/batch/batch_service_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .operations.task_operations import TaskOperations
from .operations.compute_node_operations import ComputeNodeOperations
from . import models
from .custom.patch import patch_client


class BatchServiceClientConfiguration(AzureConfiguration):
Expand Down Expand Up @@ -112,3 +113,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.compute_node = ComputeNodeOperations(
self._client, self.config, self._serialize, self._deserialize)


patch_client()
Empty file.
19 changes: 19 additions & 0 deletions azure-batch/azure/batch/custom/custom_errors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------


class CreateTasksErrorException(Exception):
""" Aggregate Exception containing details for any failures from a task add operation.

:param str message: Error message describing exit reason
:param [~TaskAddParameter] pending_task_list: List of tasks remaining to be submitted.
:param [~TaskAddResult] failure_tasks: List of tasks which failed to add
:param [~Exception] errors: List of unknown errors forcing early termination
"""
def __init__(self, message, pending_task_list=None, failure_tasks=None, errors=None):
self.message = message
self.pending_tasks = list(pending_task_list)
self.failure_tasks = list(failure_tasks)
self.errors = list(errors)
Loading