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

Feature Request: Send a unique User-Agent header #1816

Open
ewdurbin opened this issue Nov 19, 2024 · 0 comments · May be fixed by #1827
Open

Feature Request: Send a unique User-Agent header #1816

ewdurbin opened this issue Nov 19, 2024 · 0 comments · May be fixed by #1827

Comments

@ewdurbin
Copy link
Member

When recently debugging an issue with implementation of PEP 639 in PyPI, I noticed that hatch sends a generic header of python-httpx/0.27.0 (or similar based on version of httpx).

I believe by setting a User-Agent header when constructing an index client here, all interactions with PyPI would be a bit more traceable when determine what publishing tool is interacting with the index.

I would reccommend something like hatch/v1.13.0 or potentially including major Python version or critical dependencies like hatch/v1.13.0 CPython/3.13.0 httpx/0.27.2. This will help in debugging any future interop issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant