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
It's important check that the git hub and milestone issues are up to date with the release.
132
+
It's important check that the GitHub and milestone issues are up to date with the release.
134
133
135
134
You neet to check that:
136
135
@@ -142,101 +141,71 @@ You neet to check that:
142
141
- All the pull requests closed since the latest release are associated to an issue. If necessary, create issues
143
142
and assign them to the milestone. Also assigne the person who opened the issue to them.
144
143
145
-
## HISTORY.md
144
+
## Update HISTORY
145
+
Run the [Release Prep](https://github.com/sdv-dev/Copulas/actions/workflows/prepare_release.yml) workflow. This workflow will create a pull request with updates to HISTORY.md
146
146
147
147
Make sure HISTORY.md is updated with the issues of the milestone:
148
148
149
149
```
150
150
# History
151
-
151
+
152
152
## X.Y.Z (YYYY-MM-DD)
153
-
153
+
154
154
### New Features
155
-
155
+
156
156
* <ISSUE TITLE> - [Issue #<issue>](https://github.com/sdv-dev/Copulas/issues/<issue>) by @resolver
157
-
157
+
158
158
### General Improvements
159
-
159
+
160
160
* <ISSUE TITLE> - [Issue #<issue>](https://github.com/sdv-dev/Copulas/issues/<issue>) by @resolver
161
-
161
+
162
162
### Bug Fixed
163
-
163
+
164
164
* <ISSUE TITLE> - [Issue #<issue>](https://github.com/sdv-dev/Copulas/issues/<issue>) by @resolver
165
165
```
166
166
167
167
The issue list per milestone can be found [here][milestones].
The `stable` branch needs to updated with the changes from `main`. Run the following:
182
+
```shell
183
+
git checkout main
184
+
git pull origin main
185
+
make git-merge-main-stable
207
186
```
208
187
209
-
4. Now you are ready to execute the README.md examples.
210
-
211
-
## Making the release
188
+
Depending on the type of release, you will need to one of these different commands to bump the version:
212
189
213
-
At the end, we need to make the release. First, check if the release can be made:
190
+
**Note**: Run `git pull origin main && git checkout main` first.
214
191
215
-
```bash
216
-
make check-release
217
-
```
192
+
*`bumpversion-patch`: This will release a patch, which is the most common type of release. Use this when the changes are bugfixes or enhancements that do not modify the existing user API. Changes that modify the user API to add new features but that do not modify the usage of the previous features can also be released as a patch.
193
+
*`bumpversion-minor`: This will release the next minor version. Use this if the changes modify the existing user API in any way, even if it is backwards compatible. Minor backwards incompatible changes can also be released as minor versions while the library is still in beta state. After the major version 1 has been released, minor version can only be used to add backwards compatible API changes.
194
+
*`bumpversion-major`: This will release the next major version. Use this to if the changes modify the user API in a backwards incompatible way after the major version 1 has been released.
218
195
219
-
### Tag and release to PyPI
196
+
##Create the Release on GitHub
220
197
221
-
Once we are sure that the release can be made we can use different commands depending on
222
-
the type of release that we want to make:
198
+
After the update to HISTORY.md is merged into `main` and the version is bumped, it is time to [create the release GitHub](https://github.com/sdv-dev/Copulas/releases/new).
199
+
- Create a new tag with the version number with a v prefix (e.g. v0.3.1)
200
+
- The target should be the `main` branch
201
+
- Release title is the same as the tag (e.g. v0.3.1)
202
+
- This is not a pre-release (`Set as a pre-release` should be unchecked)
223
203
224
-
*`make release`: This will relase a patch, which is the most common type of release. Use this
225
-
when the changes are bugfixes or enhancements that do not modify the existing user API. Changes
226
-
that modify the user API to add new features but that do not modify the usage of the previous
227
-
features can also be released as a patch.
228
-
*`make release-minor`: This will release the next minor version. Use this if the changes modify
229
-
the existing user API in any way, even if it is backwards compatible. Minor backwards incompatible
230
-
changes can also be released as minor versions while the library is still in beta state.
231
-
After the major version 1 has been released, minor version can only be used to add backwards
232
-
compatible API changes.
233
-
*`make release-major`: This will release the next major version. Use this to if the changes modify
234
-
the user API in a backwards incompatible way after the major version 1 has been released.
204
+
Click `Publish release`, which will kickoff the release workflow and automatically upload the package to public PyPI.
235
205
206
+
The release workflow will create a pull request and auto-merge it into `main` that bumps to the next development release (e.g. 0.12.3 → 0.12.4.dev0).
236
207
237
-
### Update the release on GitHub
208
+
##Close milestone and create new milestone
238
209
239
-
Once the tag and the release to PyPI has been made, go to GitHub and edit the freshly created "tag" to
240
-
add the title and release notes, which should be exactly the same that we added to the HISTORY.md file.
210
+
Finaly, **close the milestone** and, if it does not exist, **create the next milestone**.
241
211
242
-
Finaly, close the milestone and, if it does not exit, create the next one.
0 commit comments