Terraform for PYPI settings?

Is it possible to manage PYPI package settings with terraform?

Specifically:

  • trusted publisher settings
  • list of admins
  • list of maintainers

There are no such management APIs for PyPI today.

Refer to these issues for API stuff, and one specific one about Trusted Publishing:

https://github.com/pypi/warehouse/issues?q=state%3Aopen%20label%3AAPIs%2Ffeeds

Once they exist, I imagine someone could write a terraform provider.

3 Likes

I forgot to link the meta issue directy: [META] Determine API design for performing maintainer actions · Issue #13409 · pypi/warehouse · GitHub

1 Like