We unfortunately must vendor rsa and other packages on EL8
RSA package doesn't use relative imports, so there are potential cyclic imports where import logic can't detect them, for example the reference in a method signature. Uses of imported names within code won't be evaluated at import time, but method signatures will.
We were handling one such instance (getprime_func) by removing the init.py but this introduced some others
Amend by pulling this one function out and restore init.py
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/GoogleCloudPlatform/artifact-registry-yum-plugin/blob/main/OWNERS)~~ [hopkiw,illfelder]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
Fixes issues in RSA vendoring.
Background:
We unfortunately must vendor rsa and other packages on EL8 RSA package doesn't use relative imports, so there are potential cyclic imports where import logic can't detect them, for example the reference in a method signature. Uses of imported names within code won't be evaluated at import time, but method signatures will. We were handling one such instance (getprime_func) by removing the init.py but this introduced some others Amend by pulling this one function out and restore init.py