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
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# Release History

## 1.0.0b2 (Unreleased)
## 1.0.0b2 (2021-08-18)

### Features Added

### Breaking Changes

### Bugs Fixed
This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported.

### Other Changes
### Features Added

This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported.
- Depends on `azure-schemaregistry==1.0.0b2` which supports client-level caching.

## 1.0.0b1 (2020-09-09)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,88 +16,37 @@ 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
response:
body:
string: '{"id":"c61bb1044cac49c2913a62d54af3cc3f"}'
string: '{"id":"576838e0558c43f8b85cdaadbd4561f5"}'
headers:
content-type:
- application/json
date:
- Thu, 12 Nov 2020 22:12:51 GMT
- Wed, 18 Aug 2021 15:11:19 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:
- max-age=31536000
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
2 changes: 1 addition & 1 deletion shared_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down