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

Set user agent for pip install #2367

Closed
jtrakk opened this issue Apr 30, 2020 · 3 comments
Closed

Set user agent for pip install #2367

jtrakk opened this issue Apr 30, 2020 · 3 comments
Labels
kind/enhancement Not a bug or feature, but improves usability or performance kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@jtrakk
Copy link
Contributor

jtrakk commented Apr 30, 2020

Pip now supports an environment variable PIP_USER_AGENT_USER_DATA that will let PyPI report statistics on how many downloads happen via Poetry. That would be nice for marketing and to inform decisions based on which packages Poetry users use.

@jtrakk jtrakk added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Apr 30, 2020
@pradyunsg
Copy link
Contributor

PyPI's BigQuery database doesn't expose the key that's being set by pip there, so it is unlikely that it would allow for checking download counts.

The best approach would likely be to set the user agent directly, but IIRC, pip hasn't added that functionality yet.

@jtrakk
Copy link
Contributor Author

jtrakk commented Apr 30, 2020

Sure. The custom user-agent feature was only merged into pip last week. There probably isn't a lot of interesting variation in the PyPI data yet. Setting the environment variable from Poetry would make it more worthwhile for PyPI to start presenting that data.

@finswimmer finswimmer added the kind/enhancement Not a bug or feature, but improves usability or performance label Oct 22, 2022
@Secrus Secrus closed this as completed Sep 29, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement Not a bug or feature, but improves usability or performance kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants