Skip to content

Commit 75f2769

Browse files
authored
Merge pull request #517 from facultyai/release-instructions
Update release instructions
2 parents b681e84 + 5d474d1 commit 75f2769

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

docs/how-to-release.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
21
# How to release dash-bootstrap-components
32

4-
This is a set of instructions for releasing to Pypi. The release process is somewhat automated with an [`invoke`](http://docs.pyinvoke.org/en/latest/getting_started.html>) task file. You will need `invoke` and `semver` installed.
3+
This is a set of instructions for releasing _dash-bootstrap-components_. The release process is somewhat automated with an [`invoke`](http://docs.pyinvoke.org/en/latest/getting_started.html>) task file. You will need `invoke` and `semver` installed.
4+
5+
- Run `invoke prerelease <version>`, where `version` is the version number of the release candidate. If you are aiming to release version `0.0.7`, this will be `0.0.7-rc1`. This will automatically bump the version numbers and push a release branch to GitHub.
6+
7+
- Create a pull request with this branch, and document changes in the release in the comment of your pull request. The title and comment of the pull request are used by GitHub Actions to make the release on GitHub. See the other releases or the [changelog](https://dash-bootstrap-components.opensource.faculty.ai/changelog/) for previous release summaries.
58

6-
- Run `invoke prerelease <version>`, where `version` is the version number of the release candidate. If you are aiming to release version `0.0.7`, this will be `0.0.7-rc1`. This will automatically bump the version numbers and upload the release to Pypi.
9+
- Merge the pull request. This will trigger a GitHub Action that will build the package and upload to PyPI.
710

811
- Verify that you can install the new version and that it works correctly with `pip install dash-bootstrap-components==<new version>`. It's best to verify the installation on a clean virtual machine (rather than just in a new environment) since installation is more complex than for pure Python packages.
912

1013
- If the manual installation tests failed, fix the issue and repeat the previous steps with `rc2` etc. If installing worked, proceed to the next steps.
1114

12-
- Run `invoke release <version>`, where `version` is the version number of the release (e.g. `0.7.0`). You will be prompted to enter a changelog. This will create a release, push it to Pypi and add a tag on current main.
15+
- Run `invoke release <version>`, where `version` is the version number of the release (e.g. `0.7.0`). This will push a release branch to GitHub.
1316

14-
- Verify that the new version is available by running `pip install dash-bootstrap-components` in a new virtual environment.
17+
- As before, open a pull request and use the title and comment to document changes to the package. When the pull request is merged GitHub Actions will build the packages and upload it to PyPI.
1518

16-
- Run `invoke postrelease <version>`, where `version` is the version number of the new release. This will change the version numbers back to a `-dev` version.
19+
- Verify that the new version is available by running `pip install -U dash-bootstrap-components` in a new virtual environment.
1720

1821
# Releasing documentation changes
1922

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def prerelease(ctx, version):
3636
"dash_bootstrap_components/__init__.py "
3737
"tests/test_version.py"
3838
)
39-
run(f'git commit -m "Set version to {version}"')
39+
run(f'git commit -m "Prerelease {version}"')
4040
run(f"git push origin prerelease/{version}")
4141

4242

@@ -63,7 +63,7 @@ def release(ctx, version):
6363
"dash_bootstrap_components/__init__.py "
6464
"tests/test_version.py"
6565
)
66-
run(f'git commit -m "Bump version to {version}"')
66+
run(f'git commit -m "Release {version}"')
6767
run(f"git push origin release/{version}")
6868

6969

0 commit comments

Comments
 (0)