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

Cannot upload to test.pypi #635

Open
mdbenito opened this issue Jan 13, 2025 · 4 comments
Open

Cannot upload to test.pypi #635

mdbenito opened this issue Jan 13, 2025 · 4 comments
Labels
bug Something isn't working CI GH actions for testing and packaging packaging Library packaging and releasing

Comments

@mdbenito
Copy link
Collaborator

See this error: https://github.com/aai-institute/pyDVL/actions/runs/12468880329/job/34800937561#step:6:705

@janosg do you know who has access? The password I have for user appliedAI doesn't work any more (if it ever did, I'm not sure it's the same account as for the regular pypi?)

@mdbenito mdbenito added bug Something isn't working CI GH actions for testing and packaging packaging Library packaging and releasing labels Jan 13, 2025
@janosg
Copy link
Collaborator

janosg commented Jan 15, 2025

Hi @mdbenito, I don't have access yet but will try to get it.

Looking at the pyDVL page on pypi you are also listed as a maintainer with your personal account. Can you try to upload via that account for now?

@mdbenito
Copy link
Collaborator Author

Looking at the pyDVL page on pypi you are also listed as a maintainer with your personal account. Can you try to upload via that account for now?

Note that this runs in CI. I don't think it's a good idea to use a personal account for it. But also, this is their test repo and my credentials do not work.

@AdrianoKF
Copy link

We've attempted a password reset to see if the account was associated with any of the "official" info@ addresses, but to no avail. Did you by chance receive an email somewhere, @mdbenito?

Otherwise, there seems to be a predicament in how to move forward. The error message in the publish CI job indicates that 2FA needs to be enabled on the account, but that requires logging in manually first:

400 User 'appliedAI' does not have two-factor authentication
enabled. Please enable two-factor authentication before attempting to
upload to PyPI.

That also precludes moving the package out of the personal account, since this can only be done by a maintainer, and subsequently prevents a package with the same name from being re-published under a different maintainer (e.g., a yet-to-be-created org account for the Institute).

Getting a PyPI package name transferred is possible under PEP-541, but our scenario possibly does not qualify.

In any case, once the above has been settled, it is highly advisble to move to trusted publishing (for both PyPI and TestPyPI).

@mdbenito
Copy link
Collaborator Author

Hi @AdrianoKF,

thanks for looking into this.

We've attempted a password reset to see if the account was associated with any of the "official" info@ addresses, but to no avail. Did you by chance receive an email somewhere, @mdbenito?

I'm afraid not. If at all, that would have been to my aai address, which I no longer have access to. But I believe the test.pypi account must have been set up by @MischaPanch when he created pymetrius and set up package testing for other projects. Quite likely he created it with his aai address. If he did, one solution might be to ask IT to temporarily reactivate it for you guys.

In any case, once the above has been settled, it is highly advisable to move to trusted publishing (for both PyPI and TestPyPI).

I suppose for the time being we can deactivate testpypi. As to pypi, there is an admin account besides our own ones, so this problem won't happen there. Also, IIRC we already moved to trusted publishing, but I'll have to check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI GH actions for testing and packaging packaging Library packaging and releasing
Projects
None yet
Development

No branches or pull requests

3 participants