You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,14 +10,14 @@ this project. If you use this package within your own software as is but don't p
10
10
11
11
We recommend using [pyenv](https://github.com/pyenv/pyenv) for Python runtime management. If you use macOS, follow the following steps:
12
12
13
-
```bash
13
+
```sh
14
14
$ brew update
15
15
$ brew install pyenv
16
16
```
17
17
18
18
Install necessary Python runtimes for development/testing. You can rely on GitHub Actions workflows for testing with various major versions. <https://github.com/slackapi/bolt-python/tree/main/.github/workflows>
- It is also possible to include `slack_bolt @ file:///<project path>/dist/slack_bolt-1.2.3-py2.py3-none-any.whl`in a [requirements.txt](https://pip.pypa.io/en/stable/user_guide/#requirements-files) file
111
111
112
-
### Releasing
113
-
114
-
#### Generate API reference documents
112
+
### Generate API reference documents
115
113
116
-
```bash
114
+
```sh
117
115
./scripts/generate_api_docs.sh
118
116
```
119
117
118
+
### Releasing
119
+
120
120
#### test.pypi.org deployment
121
121
122
-
##### $HOME/.pypirc
122
+
[TestPyPI](https://test.pypi.org/) is a separate instance of the Python Package
123
+
Index that allows you to try distribution tools and processes without affecting
124
+
the real index. This is particularly useful when making changes related to the
125
+
package configuration itself, for example, modifications to the `pyproject.toml` file.
126
+
127
+
You can deploy this project to TestPyPI using GitHub Actions.
128
+
129
+
To deploy using GitHub Actions:
123
130
124
-
```toml
125
-
[testpypi]
126
-
username: {your username}
127
-
password: {your password}
131
+
1. Push your changes to a branch or tag
132
+
2. Navigate to <https://github.com/slackapi/bolt-python/actions/workflows/pypi-release.yml>
133
+
3. Click on "Run workflow"
134
+
4. Select your branch or tag from the dropdown
135
+
5. Click "Run workflow" to build and deploy your branch to TestPyPI
136
+
137
+
Alternatively, you can deploy from your local machine with:
138
+
139
+
```sh
140
+
./scripts/deploy_to_test_pypi.sh
128
141
```
129
142
130
143
#### Development Deployment
131
144
145
+
Deploying a new version of this library to Pypi is triggered by publishing a Github Release.
146
+
Before creating a new release, ensure that everything on a stable branch has
147
+
landed, then [run the tests](#run-all-the-unit-tests).
148
+
132
149
1. Create a branch in which the development release will live:
133
-
- Bump the version number in adherence to [Semantic Versioning](http://semver.org/) and [Developmental Release](https://peps.python.org/pep-0440/#developmental-releases) in `slack_bolt/version.py`
134
-
- Example the current version is `1.2.3` a proper development bump would be `1.3.0.dev0`
135
-
- `.dev` will indicate to pip that this is a [Development Release](https://peps.python.org/pep-0440/#developmental-releases)
136
-
- Note that the `dev` version can be bumped in development releases: `1.3.0.dev0` ->`1.3.0.dev1`
137
-
- Commit with a message including the new version number. For example `1.3.0.dev0`& Push the commit to a branch where the development release will live (create it if it does not exist)
138
-
- `git checkout -b future-release`
139
-
- `git commit -m 'version 1.3.0.dev0'`
140
-
- `git push future-release`
141
-
- Create a git tag for the release. For example `git tag v1.3.0.dev0`.
142
-
- Push the tag up to github with `git push origin --tags`
143
-
144
-
2. Distribute the release
145
-
- Use the latest stable Python runtime
146
-
- `python -m venv .venv`
147
-
- `./scripts/deploy_to_pypi_org.sh`
148
-
- You do not need to create a GitHub release
149
-
150
-
3. (Slack Internal) Communicate the release internally
0 commit comments