These best practices help guide a PMC through the steps to create and publish an Apache software product release. It complements the formal Apache Release Policy, defining what must be in a software release, and Release Distribution Policy.
Every Apache Software Foundation project software release must meet requirements for content , process , and publication. These requirements ensure that Apache contributors and users benefit from appropriate legal protection the ASF provides, and reflect the Foundation's goals of open, collaborative software development.
An Apache release is a set of valid, signed, artifacts, voted on by the appropriate PMC and distributed on the official ASF release infrastructure. See below for discussion of the words in bold, all of which are essential.
To make a release, an Apache project:
A release starts when the project community agrees to make a release. However, no release manager can make a valid release unless the community has taken the necessary steps. The source code and build process must comply with the ASF legal and intellectual property requirements for a valid release, and the project must have the infrastructure in place to correctly sign the release artifacts (see below).
Most projects designate a committer to be the release manager who takes responsibility for the mechanics of a release. It is a good idea to let several committers take this role on different releases so that more than one person is comfortable doing a release. Release managers shepherd a release from an initial community consensus to getting the compiled code package to final distribution, and may be involved in publicizing the release to the project's community and the ASF in general.
Unless otherwise specified, only PMC members can act as release managers. If your project wishes to allow normal committers to release files, please contact infrastructure with your request.
Release managers do the mechanical work; but the PMC in general, and the PMC chair in particular (as an officer of the Foundation), are responsible for compliance with ASF requirements.
Any committer may serve as release manager.
The Apache Software Foundation exists to create open source software, so the fundamental requirement for a release is that it has the necessary source code to build the project. A project may provide compiled binaries of each release for the convenience of users.
All project source code must be covered by the Apache License, version 2.0. The license or appropriate boilerplate text must be included in each source file. For the license to be valid, the code must have been contributed by an individual covered by an appropriate contributor license agreement, or have otherwise been licensed to the Foundation and passed through IP clearance. See this page for details on release requirements. When in doubt, contact the Foundation's Legal resources by filing a Jira ticket under the 'LEGAL' project. The Apache Release Audit Tool (RAT) can help you verify that your proposed release complies with the requirements.
Many projects have dependencies on non-Apache components. For an Apache release to be valid, it can only depend on non-Apache components that have compatible licenses. For more information on third party licenses allowed, see the ASF Third Party License Policy.
The files that make up an Apache release always have accompanied by cryptographic signatures. This allows users to ensure that the files have not been tampered with since they were created. The mechanics of signing depend on the project's build technology. Infra strongly recommends that projects set up automated infrastructure to sign the files to simplify the work. Generally, projects set up their build system so that the same process that creates the files for a release also signs them.
The process of setting up to sign the code is somewhat complicated, and it is described on the release signing page. If you plan to serve as a release manager, you should generate a key and publish it well in advance of creating a release.
A binding release vote of the PMC is the critical gating step in the release process. Without such a vote, the release is just a set of files prepared by an individual. After such a vote, it is a formal offering of the ASF, backed by the "full faith and credit" of the Foundation.
The Apache infrastructure must be the primary source for all artifacts officially released by the ASF.
Infra maintains the Apache release distribution infrastructure, which has three parts:
https://dist.apache.org/dist/release/$project/. If your project uses a Subersion repository, you can use
svn mvfrom the
See the Release Distribution Policy for specific technical requirements.
Each Apache TLP has a
release/TLP-name directory in the distribution Subversion repository at
https://dist.apache.org/repos/dist/. Once a release vote passes, the release manager adds the release artifacts (plus signature and hash files) to this location. Each project is responsible for the structure of its directory. PyPubSub pushes the contents of these directories to
http://downloads.apache.org/. Note only store the most recent version of each supported release here.
Do not use the SVN directories under
https://dist.apache.org/repos/dist/ to link to product releases. Projects must use the ASF release system. See Release Download Pages for further details.
A signature (
.asc) can become invalid because the signing key is revoked or has expired. Make sure all current signatures for your project in
downloads.apache.org/ are valid.
Hash, signature and KEYS files are excluded from the public release:
*.md5 *.sha *.sha1 *.sha256 *.sha512 *.asc *.sig KEYS *.mds MD5SUM SHA*SUM
Do not publish
.md5 files because MD5 is broken.
Do not publish
.sig files. Make sure your
.ascs are plain-text files.
The download page should use
HTTPS: rather than plain
HTTP: for linking to KEYS, sigs and hashes (for example:
In addition to the checksum files required in the Release Distribution Policy, the project can provide an
SHA*SUM must look like the output of
md5sum(1): lines containing a checksum, followed by a filename ; use only plain file names (no slashes). Do not use any other file names for such files.
If the release directory does not yet exist, please create a Jira ticket for INFRA with the required information (see the contact page).
Note: By default, only PMC/PPMC members have write access to the
dist/release directories. The
dist/dev directories by default allow write access by committers.
downloads.apache.orgis automatically archived. Therefore, a copy of every official release exists in the archives. Just delete the copy of the release that is in your project's dist directory. Remember to update any links from the download page related to that release.