From 4e8ae8824b07fc804f66924b2d3a27a8a99aa0c3 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 14:28:15 -0700 Subject: [PATCH 01/11] prepare for release --- .../azure-schemaregistry-avroserializer/CHANGELOG.md | 4 +++- .../azure-schemaregistry-avroserializer/setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md index 46498c8bfd59..4c4189badfcc 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md @@ -1,9 +1,11 @@ # Release History -## 1.0.0b2 (Unreleased) +## 1.0.0b2 (2020-08-17) ### Features Added +- Depends on `azure-schemaregistry==1.0.0b2` which supports client-level caching. + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py b/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py index 488ad631c775..a31cbd1fc226 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/setup.py @@ -65,7 +65,7 @@ zip_safe=False, packages=find_packages(exclude=exclude_packages), install_requires=[ - 'azure-schemaregistry==1.0.0b1', + 'azure-schemaregistry==1.0.0b2', 'avro<2.0.0,>=1.10.0' ] ) From 2fb8c630fa772b64e917c7560c2a1d9227072ef7 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 14:46:08 -0700 Subject: [PATCH 02/11] update date --- .../azure-schemaregistry-avroserializer/CHANGELOG.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md index 4c4189badfcc..0ba21429ce71 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md @@ -1,15 +1,11 @@ # Release History -## 1.0.0b2 (2020-08-17) +## 1.0.0b2 (2021-08-17) ### Features Added - Depends on `azure-schemaregistry==1.0.0b2` which supports client-level caching. -### Breaking Changes - -### Bugs Fixed - ### Other Changes This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. From 4581f72be8118f6127578e0d9bdc09d4eb7bfb82 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 14:54:26 -0700 Subject: [PATCH 03/11] samples readme --- .../azure-schemaregistry-avroserializer/samples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md index 7324035bc577..efb9eca6a478 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md @@ -23,7 +23,7 @@ Several Schema Registry Avro Serializer Python SDK samples are available to you * Receive `EventData` from Event Hubs and deserialize the received bytes. ## Prerequisites -- Python 2.7, 3.5 or later. +- Python 2.7, 3.6 or later. - **Microsoft Azure Subscription:** To use Azure services, including Azure Schema Registry, you'll need a subscription. If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits when you [create an account](https://account.windowsazure.com/Home/Index). From bdf8eb4aa3a0cc1056fbae6e0becaea65b0a546f Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 15:22:25 -0700 Subject: [PATCH 04/11] update --- .../azure-schemaregistry-avroserializer/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md index 0ba21429ce71..8853e83d6b23 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md @@ -8,7 +8,7 @@ ### Other Changes -This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. +This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.9 is no longer supported. ## 1.0.0b1 (2020-09-09) From 0fc79deb13d607f8c9f59f47f3242362472c19ac Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 15:38:12 -0700 Subject: [PATCH 05/11] udpate shared reqs --- shared_requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared_requirements.txt b/shared_requirements.txt index 11da8a8a9fa8..68fc209b1837 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -95,7 +95,7 @@ azure-keyvault-nspkg azure-media-nspkg azure-agrifood-nspkg azure-purview-nspkg -azure-schemaregistry==1.0.0b1 +azure-schemaregistry==1.0.0b2 azure-search-nspkg azure-security-nspkg azure-synapse-nspkg From f16e8d117c3b3ab72d824145829c67edc09b79d7 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 16:22:25 -0700 Subject: [PATCH 06/11] recordings --- ...ializer.test_basic_sr_avro_serializer.yaml | 67 +++---------------- 1 file changed, 8 insertions(+), 59 deletions(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml index 7e6d438ee557..33f4e461a483 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + - azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) X-Schema-Type: - Avro method: PUT - uri: https://fake_resource.servicebus.windows.net/$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04 + uri: https://fake_resource.servicebus.windows.net$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04 response: body: - string: '{"id":"c61bb1044cac49c2913a62d54af3cc3f"}' + string: '{"id":"576838e0558c43f8b85cdaadbd4561f5"}' headers: content-type: - application/json date: - - Thu, 12 Nov 2020 22:12:51 GMT + - Tue, 17 Aug 2021 23:21:42 GMT location: - - https://fake_resource.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04 + - https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04 server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -38,66 +38,15 @@ interactions: transfer-encoding: - chunked x-schema-id: - - c61bb1044cac49c2913a62d54af3cc3f + - 576838e0558c43f8b85cdaadbd4561f5 x-schema-id-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/getschemabyid/c61bb1044cac49c2913a62d54af3cc3f?api-version=2017-04 + - https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/getschemabyid/576838e0558c43f8b85cdaadbd4561f5?api-version=2017-04 x-schema-type: - Avro x-schema-version: - '1' x-schema-versions-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/azsdk_net_test_group/schemas/example.avro.User/versions?api-version=2017-04 - status: - code: 200 - message: OK -- request: - body: '"{\"type\": \"record\", \"name\": \"User\", \"namespace\": \"example.avro\", - \"fields\": [{\"type\": \"string\", \"name\": \"name\"}, {\"type\": [\"int\", - \"null\"], \"name\": \"favorite_number\"}, {\"type\": [\"string\", \"null\"], - \"name\": \"favorite_color\"}]}"' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '265' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azureschemaregistry/1.0.0b1 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) - X-Schema-Type: - - Avro - method: POST - uri: https://fake_resource.servicebus.windows.net/$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04 - response: - body: - string: '{"id":"c61bb1044cac49c2913a62d54af3cc3f"}' - headers: - content-type: - - application/json - date: - - Thu, 12 Nov 2020 22:12:51 GMT - location: - - https://fake_resource.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000 - transfer-encoding: - - chunked - x-schema-id: - - c61bb1044cac49c2913a62d54af3cc3f - x-schema-id-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/getschemabyid/c61bb1044cac49c2913a62d54af3cc3f?api-version=2017-04 - x-schema-type: - - Avro - x-schema-version: - - '1' - x-schema-versions-location: - - https://seankane.servicebus.windows.net:443/$schemagroups/azsdk_net_test_group/schemas/example.avro.User/versions?api-version=2017-04 + - https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/swathip-test-schema/schemas/example.avro.User/versions?api-version=2017-04 status: code: 200 message: OK From fbcbcaf68976598317c373ef78133defd817158f Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 16:46:09 -0700 Subject: [PATCH 07/11] fix recordings --- .../tests/test_avro_serializer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py index 473d493d5c26..6ee7473b821f 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/test_avro_serializer.py @@ -32,7 +32,7 @@ from devtools_testutils import AzureTestCase, PowerShellPreparer -SchemaRegistryPowerShellPreparer = functools.partial(PowerShellPreparer, "schemaregistry", schemaregistry_endpoint="fake_resource.servicebus.windows.net", schemaregistry_group="fakegroup") +SchemaRegistryPowerShellPreparer = functools.partial(PowerShellPreparer, "schemaregistry", schemaregistry_endpoint="fake_resource.servicebus.windows.net/", schemaregistry_group="fakegroup") class SchemaRegistryAvroSerializerTests(AzureTestCase): From 4b5962568b836f7acc86f1342cf11c6b7cc1ce8a Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 18:26:22 -0700 Subject: [PATCH 08/11] changelog --- .../azure-schemaregistry-avroserializer/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md index 8853e83d6b23..0ba21429ce71 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md @@ -8,7 +8,7 @@ ### Other Changes -This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.9 is no longer supported. +This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. ## 1.0.0b1 (2020-09-09) From 5a8ef0425dd247d28aa5969b6e2e91111cf321f1 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 17 Aug 2021 18:34:31 -0700 Subject: [PATCH 09/11] change --- .../azure-schemaregistry-avroserializer/CHANGELOG.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md index 0ba21429ce71..35e4d953dd63 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md @@ -2,14 +2,12 @@ ## 1.0.0b2 (2021-08-17) +This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. + ### Features Added - Depends on `azure-schemaregistry==1.0.0b2` which supports client-level caching. -### Other Changes - -This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. - ## 1.0.0b1 (2020-09-09) Version 1.0.0b1 is the first preview of our efforts to create a user-friendly and Pythonic client library for Azure Schema Registry Avro Serializer. From 17d06f2684352e43ccdb5c641313757b20504a42 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Wed, 18 Aug 2021 08:12:04 -0700 Subject: [PATCH 10/11] recording --- .../test_avro_serializer.test_basic_sr_avro_serializer.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml index 33f4e461a483..7180cd33beea 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/tests/recordings/test_avro_serializer.test_basic_sr_avro_serializer.yaml @@ -20,7 +20,7 @@ interactions: X-Schema-Type: - Avro method: PUT - uri: https://fake_resource.servicebus.windows.net$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04 + uri: https://fake_resource.servicebus.windows.net/$schemagroups/fakegroup/schemas/example.avro.User?api-version=2017-04 response: body: string: '{"id":"576838e0558c43f8b85cdaadbd4561f5"}' @@ -28,7 +28,7 @@ interactions: content-type: - application/json date: - - Tue, 17 Aug 2021 23:21:42 GMT + - Wed, 18 Aug 2021 15:11:19 GMT location: - https://swathip-test-eventhubs.servicebus.windows.net:443/$schemagroups/fakegroup/schemas/example.avro.User/versions/1?api-version=2017-04 server: From 8aab3efcef8381d463ccdc196c36296d9b2a3f20 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Wed, 18 Aug 2021 08:12:43 -0700 Subject: [PATCH 11/11] update release date --- .../azure-schemaregistry-avroserializer/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md index 35e4d953dd63..6c0e72155333 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0b2 (2021-08-17) +## 1.0.0b2 (2021-08-18) This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported.