Skip to content

get updates from azure repo #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 181 commits into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
f053a44
Update tests for msal 1.3.0 (#11307)
chlowell May 12, 2020
ab4f309
Sync eng/common directory with azure-sdk-tools repository (#11387)
azure-sdk May 12, 2020
5379638
Search docs/readme updates (#11391)
bryevdv May 12, 2020
f18c031
[formrecognizer] add AAD auth support (#11275)
kristapratico May 12, 2020
ef77ed4
Persistent caching for interactive credentials on Linux and macOS (#1…
chlowell May 12, 2020
eee2e10
link in to reference docs for sub-clients (#11396)
bryevdv May 12, 2020
7817d44
Network 2020 04 01 (#11405)
chunyu3 May 13, 2020
d27aca7
Release for azure mgmt eventhub (#11403)
dw511214992 May 13, 2020
8033835
[form recognizer] consistency renames for FormTrainingClient (#11390)
iscai-msft May 13, 2020
9d24209
Sync eng/common directory with azure-sdk-tools repository (#11417)
azure-sdk May 13, 2020
e2e5295
[Cosmos] Remove unused files (#11388)
southpolesteve May 13, 2020
2d085f5
Enforce https in search (#11337)
rakshith91 May 13, 2020
cae32ed
release customvision (#11428)
May 14, 2020
24747c2
[form recognizer] Move `get_client` method from FormRecognizer -> For…
iscai-msft May 14, 2020
d91a17b
Typing for appconfiguration (#11427)
xiangyan99 May 14, 2020
aac153f
update (#11424)
xiangyan99 May 14, 2020
d846e0d
ServiceFabric 7.1 (#11451)
lmazuel May 15, 2020
e5815be
Smoke Tests use new workflow for package install (#11438)
danieljurek May 15, 2020
f152b5f
Release azure mgmt eventgrid (#11431)
dw511214992 May 15, 2020
fd43b8f
20200515 run resource live test (#11454)
changlong-liu May 15, 2020
93132ca
Add a snippet to the Samples readme mirroring the core readme, guidin…
KieranBrantnerMagee May 15, 2020
f377d1c
add more content to index crud samples (#11443)
bryevdv May 15, 2020
167264d
Sync eng/common directory with azure-sdk-tools repository (#11469)
azure-sdk May 15, 2020
dc99329
update CODEOWNERS with smoke test owners (#11404)
danieljurek May 15, 2020
91de6c7
[Service Bus] Enable pylint and mypy (#11316)
YijunXieMS May 16, 2020
a5e1447
add ci to azure-mgmt-eventhub (#11459)
dw511214992 May 18, 2020
4e48ee5
Release azure mgmt hybridkubernetes (#11483)
dw511214992 May 18, 2020
0160912
[text analytics] Update ta tests (#11461)
iscai-msft May 18, 2020
146bc86
[formrecognizer] consistency on handling LRO's with failed status (#1…
kristapratico May 18, 2020
74f4fd3
Separate modules for client credential types (#11496)
chlowell May 18, 2020
99668db
[ReleasePR azure-cognitiveservices-vision-computervision] [Cognitive …
openapi-sdkautomation[bot] May 18, 2020
2f2ed37
update parameters to use SubscriptionConfiguration (#11425)
danieljurek May 18, 2020
6e12533
update artifactname to ensure that wheel get's picked up properly (#1…
scbedd May 18, 2020
0077934
[Cosmos] GA release prep (#11468)
annatisch May 18, 2020
88fae6e
[formrecognizer] update docs to specify encoded url input (#11471)
kristapratico May 18, 2020
83915fa
Consistency related changes in form recognizer (#11467)
rakshith91 May 18, 2020
72a895d
release-for-hanaonazure-mgmt (#11441)
qiaozha May 19, 2020
0e82fae
fix AttributeException (#11463)
xiangyan99 May 19, 2020
dfe5b09
[Core] Support multipart changesets (#10972)
annatisch May 19, 2020
016e7c6
Update CODEOWNERS (#11516)
bryevdv May 19, 2020
cb52715
[cosmos] readme review feedback (#11527)
annatisch May 19, 2020
af6b719
rename input parameters (#11518)
kristapratico May 19, 2020
30e60ef
Sync eng/common directory with azure-sdk-tools repository (#11472)
azure-sdk May 19, 2020
06a16ee
update unit test according to the latest uamqp update (#11533)
yunhaoling May 19, 2020
2598959
Search Renames / Regen (#11342)
bryevdv May 19, 2020
9285871
Datashare 2019 11 01 (#11540)
chunyu3 May 20, 2020
197c0c5
update tests (#11534)
kristapratico May 20, 2020
1ff8249
Prevent Key Vault test failure due to operation timing (#11552)
chlowell May 20, 2020
1e94165
Reduce Build Matrix (#11539)
scbedd May 20, 2020
f5bc51a
Add user authentication API to UsernamePasswordCredential (#11528)
chlowell May 20, 2020
01e026a
update pinned versions in autorest_req.txt (#11557)
scbedd May 20, 2020
2e0b286
Updated changelog (#11554)
annatisch May 20, 2020
ef37aa6
Sync eng/common directory with azure-sdk-tools repository (#11562)
azure-sdk May 20, 2020
0667e82
Artifact Powered Docs.MS Release (#11395)
scbedd May 20, 2020
8f5fb10
[formrecognizer] support Copy API (#11372)
kristapratico May 20, 2020
b22a709
Kaihuis maps (#11574)
May 21, 2020
72b0ec0
Search refactoring 1 (#11572)
xiangyan99 May 21, 2020
4c7b8de
Search refactoring 2 (#11584)
xiangyan99 May 21, 2020
bc01929
Make use_training_labels positional required (#11529)
rakshith91 May 21, 2020
e877699
Fix copy tests (#11594)
rakshith91 May 21, 2020
37eea83
Search synonym map (#11590)
xiangyan99 May 22, 2020
7147f50
remove DataSourceCredentials (#11605)
xiangyan99 May 22, 2020
39f2757
Fix Cleanup failing on 3.8.3 (#11607)
lmazuel May 22, 2020
f88d011
Remove unecessary import (#11606)
lmazuel May 22, 2020
a6f20b9
LRO continuation_token (#10801)
lmazuel May 22, 2020
5f2ba44
Add force parameter to SwaggerToSdk CLI (#11609)
lmazuel May 23, 2020
7a432a8
Prepare core 1.6.0 on master (#11610)
lmazuel May 23, 2020
8a70e3e
Release azure mgmt containerregistry (#11460)
dw511214992 May 26, 2020
8518e6d
ignoring value of document status for multipage tests (#11631)
iscai-msft May 26, 2020
0f7a5c6
rename edm to SearchFieldDataType (#11597)
xiangyan99 May 26, 2020
cde2a10
[Batch] Fix issue in latest REST API (#11604)
bgklein May 26, 2020
a8a90d2
[formrecognizer] model_id param validation (#11569)
kristapratico May 26, 2020
b94b42f
Rename to completed_on and requested_on in the CustomFormModel (#11592)
May 26, 2020
45e7d17
Sync eng/common directory with azure-sdk-tools repository (#11566)
azure-sdk May 26, 2020
adf6471
regen swagger and make list_indexes pageable (#11635)
bryevdv May 26, 2020
60f4469
[text analytics] merging feature branch into master (#11632)
iscai-msft May 27, 2020
f61b6e0
[text analytics] update version to b6 (#11660)
iscai-msft May 27, 2020
3ce958f
use CIMultiDict when pickling (#11661)
kristapratico May 27, 2020
fa26e7c
DefaultAzureCredential can configure InteractiveBrowserCredential's t…
chlowell May 27, 2020
661b54c
Increment package version after release of azure_ai_textanalytics (#1…
azure-sdk May 27, 2020
a230e92
InteractiveBrowserCredential is unavailable when it can't bind a port…
chlowell May 27, 2020
c543740
Sync eng/common directory with azure-sdk-tools repository (#11651)
azure-sdk May 28, 2020
dbb879a
Adding conditions to ensure execution of mypy or pylint (#11560)
scbedd May 28, 2020
857fd5f
Sdk automation/azure mgmt loganalytics (#11675)
changlong-liu May 28, 2020
36072c1
[form recognizer] Rename models property of CustomFormModel to submod…
iscai-msft May 28, 2020
af4f29f
map copy status to model status in CustomFormModelInfo (#11666)
kristapratico May 28, 2020
41116fa
code refactoring (#11638)
xiangyan99 May 28, 2020
fdab2c0
Removing H1 to reuse this content in a H2 for docs (#11512)
SnehaGunda May 29, 2020
4a56209
[formrecognizer] expose page_number on FormTable (#11691)
kristapratico May 29, 2020
3a05ac7
update samples & rename datasource methods (#11683)
xiangyan99 May 29, 2020
ee78e5d
Reimplement AadClient without msal.oauth2cli (#11466)
chlowell May 29, 2020
5c9f6d4
Sync eng/common directory with azure-sdk-tools repository (#11692)
azure-sdk May 30, 2020
7bdf96e
Adding digital twins CI configuration. (#11730)
mitchdenny Jun 1, 2020
3160d70
Sdk automation/azure mgmt media (#11680)
changlong-liu Jun 1, 2020
7b69db9
Sdk automation/azure mgmt compute (#11696)
changlong-liu Jun 1, 2020
9471063
Sdk automation/azure mgmt cognitiveservices (#11699)
changlong-liu Jun 1, 2020
8afc0fa
Sdk automation/azure mgmt storage (#11720)
changlong-liu Jun 1, 2020
67542fe
Sdk automation/azure mgmt digitaltwins (#11725)
changlong-liu Jun 1, 2020
a1d0073
Sdk automation/azure mgmt imagebuilder (#11262)
changlong-liu Jun 1, 2020
ff8e5f5
Sdk automation/azure mgmt signalr (#11703)
changlong-liu Jun 1, 2020
bf137c2
Prevent AsyncBearerTokenCredentialPolicy deadlock (#11591)
chlowell Jun 1, 2020
f4aee7e
Update to latest REST API (#11715)
bgklein Jun 1, 2020
537a145
'DefaultSpan' object has no attribute 'start' (#11728)
Jun 1, 2020
d2c6d27
provide a separate method for getting just names (#11739)
xiangyan99 Jun 1, 2020
5e48415
update arguments (#11748)
xiangyan99 Jun 1, 2020
c4beba5
[ServiceBus] Track2 - Dead Letter Queue Receiver Implementation and D…
yunhaoling Jun 1, 2020
5d04dfe
move environment variable setting into sample functions (#11746)
iscai-msft Jun 2, 2020
1812376
change order of inheritance for AsyncLROPoller to make pylint happy f…
kristapratico Jun 2, 2020
36f5e5d
Pin opentelemetry to 0.8b0 (#11756)
rakshith91 Jun 2, 2020
5a40b24
[form recognizer] move environment variable setting into sample funct…
iscai-msft Jun 2, 2020
63497ae
Remove authentication_record property (#11760)
chlowell Jun 2, 2020
379ae6e
[Storage][Bug]request fail when metadata has trailing space (#11677)
xiafu-msft Jun 2, 2020
80f56b8
docs review feedback (#11766)
kristapratico Jun 2, 2020
205a1cb
track2 - servicebus - flaky test and documentation improvements for p…
KieranBrantnerMagee Jun 3, 2020
5693dd4
Whitelist what pickle is serializing in context (#11688)
lmazuel Jun 3, 2020
6123e8f
[text analytics] param to ivar in model docstrings (#11788)
iscai-msft Jun 3, 2020
e49027c
Core 1.6.0 release notes (#11786)
lmazuel Jun 3, 2020
3094344
[form recognizer] Remove US receipt (#11764)
iscai-msft Jun 3, 2020
a9de6f0
[formrecognizer] adds AsyncLROPoller and continuation token support (…
kristapratico Jun 3, 2020
ad179ad
add more logging info for next time model_version comes back None (#1…
iscai-msft Jun 3, 2020
0e07b20
Add AzureCliCredential and VSCodeCredential to public API (#11790)
chlowell Jun 3, 2020
3761730
[HDInsight] Fix hdi test failure (#11806)
aim-for-better Jun 4, 2020
12e2e34
disable some by design bandit warnings (#11495)
xiangyan99 Jun 4, 2020
92d6389
Increment package version after release of azure_core (#11795)
azure-sdk Jun 4, 2020
48d6007
Use subject claim as home_account_id when no client_info (#11639)
chlowell Jun 4, 2020
d4633cf
Refactor ClientCertificateCredential to use AadClient (#11719)
chlowell Jun 4, 2020
0ec1601
Refactor ClientSecretCredential to use AadClient (#11718)
chlowell Jun 4, 2020
9f67111
[Cosmos] Fixed incorrect ID type error (#11798)
annatisch Jun 4, 2020
17161be
[text analytics] Update readme (#11796)
iscai-msft Jun 4, 2020
d4bd596
try something (#11797)
kristapratico Jun 4, 2020
aad9601
Search refactoring 3 (#11804)
xiangyan99 Jun 4, 2020
2a730c7
update targeted pat (#11826)
scbedd Jun 4, 2020
6345cb8
Update ChangeLog of customvision (#11827)
lmazuel Jun 4, 2020
d7c0972
docs: fix typos (#11742)
pgrimaud Jun 4, 2020
da470e0
Add missing dependency for azure-common (#11407)
ad-m Jun 4, 2020
bce84db
fix typing and docs for initial_response parameter of LROPoller (#11717)
iscai-msft Jun 4, 2020
717c419
AzureCliCredential is unavailable when no account is logged in (#11829)
chlowell Jun 5, 2020
4af2070
Fix CI config for appservice directory. (#11842)
mitchdenny Jun 5, 2020
6a0e027
fix readme links (#11849)
kristapratico Jun 5, 2020
b15cede
Persistent caching for service principal credentials (#11824)
chlowell Jun 5, 2020
994c77d
SharedTokenCacheCredential takes an optional AuthenticationRecord (#1…
chlowell Jun 5, 2020
5c4dc31
code refactoring 4 (#11800)
xiangyan99 Jun 5, 2020
7aecf6f
[text analytics] remove all absolute links, reorder linked samples (#…
iscai-msft Jun 5, 2020
8e420a3
[text analytics] docstring fixes (#11857)
iscai-msft Jun 5, 2020
1a62239
adds RecognizedReceipt to init (#11855)
kristapratico Jun 5, 2020
5997c67
[text analytics] update changelog (#11858)
iscai-msft Jun 5, 2020
e264f1e
add backward compatibility in unittest (#11587)
yunhaoling Jun 5, 2020
854304a
Support arbitrary IDs for user-assigned identity configuration (#11789)
chlowell Jun 6, 2020
f2dcb6c
SharedTokenCacheCredential updates (#11853)
chlowell Jun 6, 2020
c35c3a5
[Blob][Bug]Fix Batch Set Tiers and Batch Delete Blobs Bug (#11802)
xiafu-msft Jun 6, 2020
0245fce
[Bug]Concurrent upload (#11668)
xiafu-msft Jun 6, 2020
821f993
[Service Bus] Service Bus Management Client (#11813)
YijunXieMS Jun 6, 2020
93c1027
[ServiceBus] Doc and Sample Updates (#11859)
yunhaoling Jun 6, 2020
7a575f5
Test if samples are running (#11727)
Jun 8, 2020
fdbc6ff
Release opentelemetry 1.0.0b5 (#11867)
Jun 8, 2020
f99bd59
[formrecognizer] more multipage form test coverage (#11854)
kristapratico Jun 8, 2020
e8abae7
update date on changelog (#11879)
kristapratico Jun 8, 2020
a2d23e5
Increment package version after release of azure_core_tracing_opentel…
azure-sdk Jun 8, 2020
5c1af52
add call in logging example (#11885)
iscai-msft Jun 8, 2020
b4171ee
Adjust b2->b3 in docs for release. (#11884)
KieranBrantnerMagee Jun 8, 2020
8b4d109
[formrecognizer] few small doc improvements (#11886)
kristapratico Jun 8, 2020
1799b57
add dict type to docstrings for 'documents' param (#11888)
iscai-msft Jun 8, 2020
2173990
remove --pre from text analytics installation command (#11891)
iscai-msft Jun 8, 2020
7c5339a
Increment package version after release of azure_servicebus (#11890)
azure-sdk Jun 8, 2020
25601b1
seg fault on debian (#11887)
xiangyan99 Jun 9, 2020
78795ca
include service version in changelog (#11893)
iscai-msft Jun 9, 2020
3439f74
last minute fixes (#11917)
iscai-msft Jun 9, 2020
3a8c579
[text analytics] Readme fix (#11919)
iscai-msft Jun 9, 2020
c866cfb
[text analytics] [form recognizer] add py.typed file for exported typ…
iscai-msft Jun 9, 2020
3c2cd50
update error msg if not supported (#11915)
xiangyan99 Jun 9, 2020
67872df
Increment package version after release of azure_ai_textanalytics (#1…
azure-sdk Jun 9, 2020
23d359d
Resolve Breaking Aggregate Reports (#11825)
scbedd Jun 9, 2020
e8ddd56
Increment package version after release of azure_identity (#11931)
azure-sdk Jun 9, 2020
8d54b11
[formrecognizer] update recordings, add delay, switch to westcentralu…
kristapratico Jun 9, 2020
ecad922
Sync eng/common directory with azure-sdk-tools repository (#11925)
azure-sdk Jun 10, 2020
eb9b4e8
update changelog date (#11934)
kristapratico Jun 10, 2020
fffaf82
Remove redundant await_prepared_test (#11930)
chlowell Jun 10, 2020
cdfb3b3
Increment package version after release of azure_ai_formrecognizer (#…
azure-sdk Jun 10, 2020
dc406b4
add the previous versions of azure-servicebus to the regression exclu…
scbedd Jun 10, 2020
2614fa1
Refactor SharedTokenCacheCredential exception handling (#11962)
chlowell Jun 10, 2020
bf5457b
remove test code that works around service bug (fixed) (#11961)
kristapratico Jun 11, 2020
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
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Core
/sdk/core/ @lmazuel @xiangyan99 @johanste
/sdk/core/azure-core/ @xiangyan99 @bryevdv @lmazuel
/sdk/core/azure-core/ @xiangyan99 @lmazuel

# Service team
/sdk/identity/ @chlowell @schaabs
Expand Down Expand Up @@ -40,6 +40,9 @@
/sdk/textanalytics/ @kristapratico @iscai-msft
/sdk/formrecognizer/ @kristapratico @iscai-msft

# Smoke Tests
/common/smoketest/ @lmazuel @chlowell @annatisch @rakshith91 @shurd @southpolesteve

# Management Plane
/**/*mgmt*/ @zikalino

Expand Down
2 changes: 1 addition & 1 deletion common/smoketest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pip install -r requiriments.txt
pip install -r requiriments_async.txt
```

If a python version below 3.5 is being used, it is still possible to run the samples. When it gets to the async tests a message `'Async not suported'` will be displayed.
If a python version below 3.5 is being used, it is still possible to run the samples. When it gets to the async tests a message `'Async not supported'` will be displayed.

## Key concepts

Expand Down
71 changes: 71 additions & 0 deletions common/smoketest/dependencies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import argparse
import pkg_resources

try:
# pip < 20
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
except:
# pip >= 20
from pip._internal.req import parse_requirements
from pip._internal.network.session import PipSession

def combine_requirements(requirements):
name = requirements[0].project_name
specs = []
for req in requirements:
if len(req.specs) == 0:
continue

specs.extend([s[0] + s[1] for s in req.specs])

return name + ",".join(specs)

def get_dependencies(packages):
requirements = []
for package in packages:
package_info = pkg_resources.working_set.by_key[package]

applicable_requirements = [r for r in package_info.requires() if r.marker is None or r.marker.evaluate()]
requirements.extend(applicable_requirements)

return requirements

if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="List dependencies for a given requirements.txt file"
)

parser.add_argument(
"-r",
"--requirements",
dest="requirements_file",
help="File containing list of packages for which to find dependencies",
required=True
)

args = parser.parse_args()
# Get package names from requirements.txt
requirements = parse_requirements(args.requirements_file, session=PipSession())
package_names = [item.req.name for item in requirements]

dependencies = get_dependencies(package_names)

# It may be the case that packages have multiple sets of dependency
# requirements, for example:
# Package A requires Foo>=1.0.0,<2.0.0
# Package B requires Foo>=1.0.0,<1.2.3
# This combines all required versions into one string for pip to resolve
# Output: Foo>=1.0.0,<2.0.0,>=1.0.0,<1.2.3
# Pip parses this value using the Requirement object (https://setuptools.readthedocs.io/en/latest/pkg_resources.html#requirement-objects)
# According to https://packaging.python.org/glossary/#term-requirement-specifier
grouped_dependencies = {}
for dep in dependencies:
if dep.key in grouped_dependencies:
grouped_dependencies[dep.key].append(dep)
else:
grouped_dependencies[dep.key] = [dep]

final_dependencies = [combine_requirements(r) for r in grouped_dependencies.values()]

print("\n".join(final_dependencies))
45 changes: 25 additions & 20 deletions common/smoketest/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,58 @@ jobs:
PythonVersion: '2.7'
InstallAsyncRequirements: false
OSVmImage: ubuntu-18.04
CloudType: AzureCloud
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(azureCloudArmParameters)
Python_37_Linux (AzureCloud):
PythonVersion: '3.7'
OSVmImage: ubuntu-18.04
CloudType: AzureCloud
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(azureCloudArmParameters)
Python_38_Linux (AzureCloud):
PythonVersion: '3.8'
OSVmImage: ubuntu-18.04
CloudType: AzureCloud
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(azureCloudArmParameters)
Python_37_Windows (AzureCloud):
PythonVersion: '3.7'
OSVmImage: windows-2019
CloudType: AzureCloud
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(azureCloudArmParameters)
Python_38_Windows (AzureCloud):
PythonVersion: '3.8'
OSVmImage: windows-2019
CloudType: AzureCloud
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(azureCloudArmParameters)
Python_37_Mac (AzureCloud):
PythonVersion: '3.7'
OSVmImage: macOS-10.15
CloudType: AzureCloud
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(azureCloudArmParameters)
Python_38_Mac (AzureCloud):
PythonVersion: '3.8'
OSVmImage: macOS-10.15
CloudType: AzureCloud
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
ArmTemplateParameters: $(azureCloudArmParameters)
Python_38_Linux (AzureUSGovernment):
PythonVersion: '3.8'
OSVmImage: ubuntu-18.04
CloudType: AzureUSGovernment
SubscriptionConfiguration: $(sub-config-gov-test-resources)
ArmTemplateParameters: $(azureUSGovernmentArmParameters)
Python_37_Windows (AzureUSGovernment):
PythonVersion: '3.7'
OSVmImage: windows-2019
CloudType: AzureUSGovernment
SubscriptionConfiguration: $(sub-config-gov-test-resources)
ArmTemplateParameters: $(azureUSGovernmentArmParameters)
Python_38_Linux (AzureChinaCloud):
PythonVersion: '3.8'
OSVmImage: ubuntu-18.04
CloudType: AzureChinaCloud
SubscriptionConfiguration: $(sub-config-cn-test-resources)
Location: 'chinanorth'
ArmTemplateParameters: $(azureChinaCloudArmParameters)
Python_37_Windows (AzureChinaCloud):
PythonVersion: '3.7'
OSVmImage: windows-2019
CloudType: AzureChinaCloud
SubscriptionConfiguration: $(sub-config-cn-test-resources)
Location: 'chinanorth'
ArmTemplateParameters: $(azureChinaCloudArmParameters)

Expand All @@ -84,29 +84,34 @@ jobs:
pip --version
displayName: pip --version

- script: pip install packaging pkginfo
displayName: Install requirements for dev tools

- script: pip install -r ./common/smoketest/requirements.txt
displayName: "Install requirements.txt"
- script: pip install -r ./common/smoketest/requirements.txt --pre --no-deps --index-url https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple
displayName: Install requirements from dev feed without dependencies

- script: pip install -r ./common/smoketest/requirements_async.txt
displayName: "Install requirements_async.txt"
condition: and(succeeded(), eq(variables['InstallAsyncRequirements'], 'true'))

- script: python ./eng/tox/install_dev_build_dependency.py -r ./common/smoketest/requirements.txt
displayName: "Install dev dependencies from feed"
- script: python ./common/smoketest/dependencies.py -r ./common/smoketest/requirements.txt | tee ./common/smoketest/requirements_dependencies.txt
displayName: Create dependency list from installed dev packages

- script: pip install -r ./common/smoketest/requirements_dependencies.txt
displayName: Install dev package dependencies from PyPI

- script: pip freeze
displayName: Show installed packages (pip freeze)

- template: /eng/common/TestResources/deploy-test-resources.yml
parameters:
ServiceDirectory: '$(Build.SourcesDirectory)/common/smoketest/'
CloudType: $(CloudType)
SubscriptionConfiguration: $(SubscriptionConfiguration)
Location: $(Location)
ArmTemplateParameters: $(ArmTemplateParameters)

- script: python ./common/smoketest/program.py
displayName: "Run Smoke Test"
displayName: Run Smoke Test

- template: /eng/common/TestResources/remove-test-resources.yml
parameters:
ServiceDirectory: '$(Build.SourcesDirectory)/common/smoketest/'
SubscriptionConfiguration: $(SubscriptionConfiguration)

2 changes: 1 addition & 1 deletion doc/dev/mgmt/generating-integration-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ now you can run live integration test:

## Fixing Test

It's obvious that when running test for the first time someting is not going to work.
It's obvious that when running test for the first time something is not going to work.

The best approach is to:
- fix the test manually
Expand Down
2 changes: 1 addition & 1 deletion doc/dev/mgmt/generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ IMPORTANT NOTE: All the commands prefixed by `python` in this page assumes you h

### Autorest versioning

A few notes on [Autorest for Python versionning](https://github.com/Azure/autorest.python/blob/master/ChangeLog.md):
A few notes on [Autorest for Python versioning](https://github.com/Azure/autorest.python/blob/master/ChangeLog.md):
- Autorest for Python v2.x is deprecated, and should not be used anymore for any generation under any circumstances.
- Autorest for Python v3.x is the most currently used one. Should not be used, but still ok if service team are still in v3.x and they want to avoid breaking changes for a given version (rare).
- Autorest for Python v4.x is the current recommendation. This generator can generates async code, but this should be disabled with --no-async. No package should be shipped with async based on v4
Expand Down
4 changes: 2 additions & 2 deletions doc/dev/mgmt/multiapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Because there is different flavors of Azure that are not necessarly provided wit

### Why a multi-api package?

Indeed, a simple solution would be to write down explictly what version of SDK supports what API version. Example: 1.0 supports 2015-06-01, 2.0 supports 2017-07-01, etc. The story for customers then would be to pin the specific SDK version for the specific API version they need. However, this was considered unacceptable in an end-to-end scenario:
Indeed, a simple solution would be to write down explicitly what version of SDK supports what API version. Example: 1.0 supports 2015-06-01, 2.0 supports 2017-07-01, etc. The story for customers then would be to pin the specific SDK version for the specific API version they need. However, this was considered unacceptable in an end-to-end scenario:
- It means you cannot install in the same Python environment packages that would target different cloud (Python doesn't allow installation of different versions of the same package together). Azure CLI or Ansible supports for different clouds would then be extremely complicated.
- This forces customers to use old SDK, that might have been fixed on different axis than API version (security fixes, new SDK features like async, etc.)
- Customers rarely needs only one package, but a set of them (storage, compute, network, etc.) and having to keep track of the correct list of packages is challenging.
Expand Down Expand Up @@ -44,7 +44,7 @@ Network interfaces operations are defines in a [network interface file](https://

**Python multi-api packaging is based on the assumptions that it's true.** If it's not, it's usually ok but requires a little more subtle packaging (see final section here)

Being that a given Swagger defines only *one* fixed API version, doing multi-api version in one package implies shipping several Swagger files into one package. This is achived by the `batch` directive of Autorest. More details on how to write Readme for Swagger in the specific page for it [swagger_conf.md](./swagger_conf.md).
Being that a given Swagger defines only *one* fixed API version, doing multi-api version in one package implies shipping several Swagger files into one package. This is archived by the `batch` directive of Autorest. More details on how to write Readme for Swagger in the specific page for it [swagger_conf.md](./swagger_conf.md).

Python SDK team is responsible to design the correct set of tags to set for the `batch` node. Each line of the batch directive should contains only *one* api version to match the folder name used. this might require adding new tags in the readme.md that are specific to only one API version. These tags are usually suffixed by "-only" ([example with compute](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/compute/resource-manager#tag-package-2019-03-01-only))

Expand Down
2 changes: 1 addition & 1 deletion doc/dev/mgmt/swagger_conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In practical terms, we want to control the version of Autorest used, the output

## Writing the readme

Writing the readme is the responsability of the Python SDK team. There is currently two types of templates for Python readmes:
Writing the readme is the responsibility of the Python SDK team. There is currently two types of templates for Python readmes:
- Readme that handles only one API version, and generates packages that handle one API version only
- Readme that handles several API versions, and generates packages with multiples API and profile supports

Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
'trio': ('https://trio.readthedocs.io/en/stable/', None),
'msal': ('https://msal-python.readthedocs.io/en/latest/', None),
# Azure packages
'azure-core': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/1.1.1/', None),
'azure-identity': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-identity/1.1.0/', None),
'azure-core': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/latest/', None),
'azure-identity': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-identity/latest/', None),
}

autodoc_member_order = 'groupwise'
Expand Down
1 change: 1 addition & 0 deletions eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ known_content_issues:
- ['sdk/graphrbac/azure-graphrbac/README.md', '#4554']
- ['sdk/loganalytics/azure-loganalytics/README.md', '#4554']
- ['sdk/servicebus/azure-servicebus/README.md', '#4554']
- ['sdk/servicebus/azure-servicebus/swagger/README.md', '#4554']
- ['sdk/servicefabric/azure-servicefabric/README.md', '#4554']
- ['sdk/storage/azure-storage-nspkg/README.md', '#4554']
- ['sdk/storage/azure-storage-blob/swagger/README.md', '#4554']
Expand Down
8 changes: 4 additions & 4 deletions eng/autorest_req.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pytest==5.4.1; python_version >= '3.5'
pytest==5.4.2; python_version >= '3.5'
pytest==4.6.9; python_version == '2.7'
pytest-cov==2.8.1
pytest-asyncio==0.10.0; python_version >= '3.5'
pytest-asyncio==0.12.0; python_version >= '3.5'
isodate==0.6.0
msrest==0.6.13
msrest==0.6.14
aiohttp==3.6.2
wheel
wheel==0.34.2
2 changes: 1 addition & 1 deletion eng/ci_tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ setuptools==44.1.0; python_version == '2.7'
setuptools==45.1.0; python_version >= '3.5'
wheel==0.34.2
Jinja2==2.11.1
packaging==20.3
packaging==20.4
tox==3.14.6
tox-monorepo==0.1.2
twine==1.15.0
Expand Down
2 changes: 1 addition & 1 deletion eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ if ($ProvisionerApplicationId) {
}

$provisionerAccount = Retry {
Connect-AzAccount -Tenant $TenantId -Credential $provisionerCredential -ServicePrincipal -Environment $Environment @subscriptionArgs
Connect-AzAccount -Force:$Force -Tenant $TenantId -Credential $provisionerCredential -ServicePrincipal -Environment $Environment @subscriptionArgs
}

$exitActions += {
Expand Down
Loading