Decommission tornado support in python generators

Merged
WI
4mo ago
+6-500

Contacted the author who added tornado support a while ago and confirmed he's no longer using it in the python client generator.

FYI @cbornet (2017/09) @tomplus (2018/10) @krjakbrjak (2023/02) @fa0311 (2023/10)

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

Summary by cubic

Removed tornado support from Python generators (python and python-pydantic-v1). Tornado templates, code paths, docs, tests, and dependency entries are deleted. Use asyncio, urllib3, or httpx instead.

  • Migration
    • Replace --library tornado with asyncio, urllib3, or httpx.
    • Regenerate clients to drop tornado.gen/httpclient usage and use async/await or sync calls.
    • Remove tornado from your dependencies.