Skip to content
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

[python] switch from _vendor.py to _vendor folder for vendored code #5879

Open
iscai-msft opened this issue Feb 5, 2025 · 0 comments
Open
Assignees
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Comments

@iscai-msft
Copy link
Member

iscai-msft commented Feb 5, 2025

Today when we vendor code in our generated packages, we generate the vendored code in a _vendor.py file. We want to switch this to a folder

There are a few steps to do here:

  1. we want to move from _vendor.py to a _vendor folder. This is so we can easily start vendoring corehttp and coreidentity when we start on that work.
  2. We can clean up the _vendor.py file when we split it into a module with different files.
  3. Switch imports of our current vendored code so we don't have to expose all of our vendored utils in _vendor/__init__.py

This needs to be fixed before we can support #5807

@iscai-msft iscai-msft added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python
Projects
None yet
Development

No branches or pull requests

2 participants