-
Notifications
You must be signed in to change notification settings - Fork 9
Add documentation for external pypi #65
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
Conversation
Co-authored-by: Dominik Gresch <greschd@users.noreply.github.com>
requires auto-generated gRPC interface files from an as-of-yet private feature | ||
or service, this package should be hosted on a private PyPI repository. | ||
|
||
Ansys has a private repository at `PyAnsys PyPI`_, and access is controlled via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akaszynski what are other companies doing which might have similar scenarios?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Desire
There is a huge push for packages to be hosted in GitHub packages, and I think the drive is to do that:
https://github.saobby.my.eu.orgmunity/t/pypi-compatible-github-package-registry/14615/103
Solutions I've seen in the wild
A common solution has been to use public ADO for hosting both universal artifacts and Python packages. Another alternative within GitHub is to use a repository for that:
https://github.com/astariul/github-hosted-pypi
While this solution works, it's non-optimal as you have to git push and we would still have to track a PAT as pulling would require access to a private repository.
Other alternatives include
- Using the GitLab PyPI repository (we don't use GitLab).
- Hosting Private PyPI Server on Kubernetes (we don't want to maintain our own PyPI server.
In the end we chose ADO to:
- Avoid the security risk external pulling from internal, having to create a new internal registry.
- Avoid creating our own private PyPI registry thereby opening up a new attack surface.
- Reuse a tried and true Microsoft backed service.
This PR adds documentation detailing the usage of our external PyPI. I think these docs should be public for the following reasons: