File tree Expand file tree Collapse file tree 6 files changed +23
-16
lines changed Expand file tree Collapse file tree 6 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ jobs:
1313 fail-fast : false
1414 matrix :
1515 python-version :
16- - " 3.7"
17- - " 3.8"
1816 - " 3.9"
1917 - " 3.10"
18+ - " 3.11"
19+ - " 3.12"
20+
2021
2122 steps :
2223 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ It takes care of:
1010
1111It works with [ kafka-python] [ ] , and extra arguments are forwarded to it.
1212
13- [ kafka-python ] : https://github.com/dpkp /kafka-python
13+ [ kafka-python ] : https://github.com/wbarnha /kafka-python-ng
1414
1515
1616## Installing
Original file line number Diff line number Diff line change 1010from kafka .admin import NewTopic
1111from kafka .errors import TopicAlreadyExistsError , NoBrokersAvailable
1212from requests import request
13+ from requests .exceptions import JSONDecodeError
1314
1415logger = logging .getLogger (__name__ )
1516
@@ -86,9 +87,14 @@ def publish_schemas(
8687 'Content-Type' : 'application/json'
8788 }
8889 )
89- if 'id' not in value_resp .json ():
90+ try :
91+ obj = value_resp .json ()
92+ except JSONDecodeError :
93+ logger .error (f'Error decoding response: { value_resp .text } ' )
94+ raise
95+ if 'id' not in obj :
9096 logger .error (f'No id in response: { value_resp .json ()} ' )
91- value_schema_id = value_resp . json () ['id' ]
97+ value_schema_id = obj ['id' ]
9298
9399 key_schema_id = None
94100 if key_schema is not None :
Original file line number Diff line number Diff line change 1- pytest == 6.2.5
2- pytest-cov == 3 .0.0
3- flake8 == 4.0 .1
4- responses == 0.17.0
5- twine == 3.7 .1
6- wheel == 0.37 .1
1+ pytest == 8.3.4
2+ pytest-cov == 6 .0.0
3+ flake8 == 7.1 .1
4+ responses == 0.25.3
5+ twine == 6.0 .1
6+ wheel == 0.45 .1
77
Original file line number Diff line number Diff line change 1- fastavro == 1.4.9
2- kafka-python == 2.0.2
3- requests == 2.27.1
1+ fastavro == 1.9.7
2+ kafka-python-ng == 2.2.3
3+ requests == 2.32.3
Original file line number Diff line number Diff line change 1919 "Changelog" : "https://github.com/flix-tech/kafka-schema-registry/blob/master/CHANGELOG.md" , # noqa
2020 "Source" : 'https://github.com/flix-tech/kafka-schema-registry' ,
2121 },
22- python_requires = '>=3.7 ' ,
22+ python_requires = '>=3.9 ' ,
2323 install_requires = [
2424 'fastavro' ,
25- 'kafka-python' ,
25+ 'kafka-python-ng ' ,
2626 'requests' ,
2727 ],
2828 packages = ['kafka_schema_registry' ],
You can’t perform that action at this time.
0 commit comments