Private PyPI - Google Cloud

Private PyPI repository on top of Google Cloud Platform.


  _____   ______ _____ _    _ _______ _______ _______       _____  __   __  _____  _____
 |_____] |_____/   |    \  /  |_____|    |    |______      |_____]   \_/   |_____]   |
 |       |    \_ __|__   \/   |     |    |    |______      |          |    |       __|__


Project status: beta

Feel free to open new issues in case of any errors.

Project Goals and Decisions

Secure

Optimised for Google Cloud

Best choice for Python perfectionists

Structure: Project Services and Components

Just 3 simple components.

Storage

Storage is storage. This is the main component of the system.

Proxy

This component adds basic auth with tokens support and provides access to packages. Simple layer between Storage and end users.

Builder / Uploader

This component uploads new packages to your storage and updates your static repository..

Install

Click to banner and follow installation instructions (2 required and 2 optional simple steps inside).

Open in Cloud Shell

How to use

Replace in command below:

You can edit cloudbuild.yaml for your needs. This is just example how you can manage your package uploading.

Invoke on your CI after package test step.

gcloud builds submit \
    'YOUR_DIST_DIRECTORY' \
    --substitutions='_WHL_NAME="YOUR_PACKAGE_WHL_NAME",_PACKAGES_BUCKET="YOUR_PACKAGES_BUCKET",_META_DATA_BUCKET="YOUR_META_DATA_BUCKET",_STATIC_BUCKET="YOUR_STATIC_BUCKET",_DOMAIN="YOUR_DOMAIN"' \
    --config='cloudbuild.yaml' \
    --project='YOUR_PROJECT_ID'

Uninstall

License

This source code is licensed under Apache 2.0. Full license text is available in LICENSE.

Alternatives

If you would like to use cloud agnostic solution, check this repositories: