opensource.google

Docs

Distributing Project Artifacts

Once you’ve published your project, you may want to publish artifacts such as source code archives or pre-compiled binaries when you cut a new stable release. Additionally, many communities have specific distribution channels where projects or libraries are expected to be found.

Source code archives

Both GitHub and go/gob support auto-generated archives of a repository’s source code at a given ref. Simply by constructing the URL, you can link users to a downloadable archive of your project source code. Note that these only contain the source at that ref, not the full history of the repository. For example, the 1.6.2 release of Go is tagged “go1.6.2” in git, and so can be retrieved at any of:

GitHub Releases

If you need to ship additional artifacts as part of a release such as compiled binaries or documentation, you can use GitHub Releases. In addition to the auto-generated source code archives noted above, you can can provide release notes as well as binary attachments as part of release. As an example, see the google/protobuf releases page. Note that, at the time of writing, these attachments are limited to 2 GB each.

Google Cloud Storage

For projects not hosted on GitHub or that need support for larger files than GitHub allows, we recommend Google Cloud Storage. This is strongly recommended over Google Drive so that ownership of the files is not tied to a single team member’s account. For example, the Go team uses GCS for their binary releases on http://linkremoved/

Package repositories

Many communities have central repositories of packages and libraries, and Google has an official presence on many of them. The sections below provide instructions for releasing in these various repositories and who to contact for help or to get access.

If you have any questions, contact emailremoved@.

Debian

If you want to provide source code to Debian, for the Debian project to compile and package a binary artifact that it distributes via apt, please follow this process. You may only make contributions to “main” or “contrib”. Never “nonfree”.

  1. Make sure the source you want to release has gone through go/releasing first.
  2. Make sure you are not distributing source to Debian that Google does not own, for example vendored third_party dependencies. If you are, please email emailremoved@, citing this policy, and explain. If your binary has third-party compile-time dependencies that the Debian project will pull, that is fine and does not require review.

Bintray

Read the Bintray guide.

Maven (Java)

Read the Maven guide.

npm (JavaScript)

Read the npm guide.

Packagist (PHP)

Account: https://packagist.org/packages/google/

TODO

PyPI (Python)

  1. Please review the OSPO guidelines on creating and releasing code publicly (go/releasing).
  2. Figure out a good name for your project. Python packages all share a global namespace, so pick a good name that isn’t taken by another package or would be confused with another package.
  3. Read through the general tutorial on packaging python projects.
  4. If you questions or issues creating your setup.py or your project has complex distribution needs reach out to emailremoved@ and emailremoved@ for assistance.
  5. If your packages wants to use the google import namespace (for example if you want your package to be import google.something) you must reach out to emailremoved@ and emailremoved@ to coordinate. Releasing a broken namespace package will break Python installations.
  6. Create an account on pypi.org specifically for your team or package. Store the password in go/valentine and share it with your team.
  7. Upload your package as that account.
  8. Once your package is uploaded use the pypi.org management interface to add google_opensource as a owner on the package.
  9. You may add additional accounts to the package as needed, but do not remove the google_opensource account.

RubyGems

TODO

WordPress plugins

Account: http://linkremoved/

TODO

Visual Studio Marketplace

Account: http://linkremoved/
Contact: emailremoved@


TODO(**********): mention go/code-signing-certificates in relevant place

Except as otherwise noted, the content of this page is licensed under CC-BY-4.0 license. Third-party product names and logos may be the trademarks of their respective owners.