| 1 |
# Making releases |
| 2 |
|
| 3 |
(policies:release)= |
| 4 |
|
| 5 |
## Our goals |
| 6 |
|
| 7 |
Our release policy describes how we decide when to make a new public release of the theme so that other projects may use new features and improvements. |
| 8 |
It tries to balance these goals: |
| 9 |
|
| 10 |
- Release relatively frequently, so that we provide a continuous stream of improvement to projects that use the theme, and minimize the effort needed to upgrade. |
| 11 |
- Do not surprise people (especially with negative surprises) and provide time for projects to provide feedback about upcoming features. |
| 12 |
- Minimize the toil and complexity associated with releases, and reduce information silos and bottlenecks associated with them. |
| 13 |
|
| 14 |
(releases:when)= |
| 15 |
|
| 16 |
## When to make a release |
| 17 |
|
| 18 |
Anybody is encouraged to make a new release if: |
| 19 |
|
| 20 |
- It has been more than a month since the last release. |
| 21 |
- OR a significant change has been made to our code that warrants a release. |
| 22 |
- AND there are no open issues with a [{guilabel}`impact: block-release`](https://github.com/pydata/pydata-sphinx-theme/labels/impact%3A%20block-release) label. |
| 23 |
|
| 24 |
### Release candidates |
| 25 |
|
| 26 |
If a release includes complex or many changes (especially in JavaScript), make a `release candidate` and ask for feedback from users. |
| 27 |
This is important because we do not test much of the CSS and JavaScript-based functionality in our testing infrastructure. |
| 28 |
After a week or so, if there are no blocking issues that have been opened since the Release Candidate, we can make a full release. |
| 29 |
|
| 30 |
## Process for making a release |
| 31 |
|
| 32 |
This theme uses GitHub tags and releases to automatically push new releases to |
| 33 |
PyPI. |
| 34 |
Follow these steps to make a release: |
| 35 |
|
| 36 |
- (optionally) **Create a [GitHub milestones](https://github.com/pydata/pydata-sphinx-theme/milestones)** to organize the issues that should be resolved as part of a new release. |
| 37 |
- **Decide if it's time** to make a release be reading [](releases:when) and decide if it is time for a release. |
| 38 |
- **Copy the [release checklist](https://github.com/pydata/pydata-sphinx-theme/blob/main/RELEASE.md) into a new issue**. |
| 39 |
- **Complete the checklist**. That's it! |
| 40 |
|
| 41 |
## Choosing a version increment |
| 42 |
|
| 43 |
We use [semantic versioning](https://semver.org/) to decide whether it's a major, minor, or patch bump. Before we have released `1.0`, treat minor versions as breaking releases, and patch versions as feature / patch releases. **If this is a release candidate**, tag it like `0.1rc1`. |