Skip to content

Commit d4f9f58

Browse files
committed
versions, add release notes
1 parent b9a347f commit d4f9f58

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ libc = "0.2"
3131
log = "0.4"
3232
rayon = "1.9"
3333
rand = "0.8.5"
34-
rlst = { git = "https://github.com/linalg-rs/rlst.git" }
35-
green-kernels = { git = "https://github.com/bempp/green-kernels.git" }
34+
rlst = { version = "0.1" }
35+
green-kernels = { version = "0.1" }
3636
thiserror="1.*"
3737

3838
[dev-dependencies]
3939
criterion = { version = "0.5.*", features = ["html_reports"]}
40-
kifmm = { git = "https://github.com/bempp/kifmm.git" }
40+
kifmm = { version = "0.1" }
4141
blas-src = { version = "0.10", features = ["blis"]}
4242
lapack-src = { version = "0.10", features = ["netlib"]}
4343

RELEASE.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Making a release
2+
3+
To make a new release of bempp, follow the following steps:
4+
5+
0) If you are yet to make a release on your current computer, run `cargo login` and copy an API
6+
key from https://crates.io/me
7+
8+
1) Checkout the branch `release` and merge the branch `main` into the branch `release`:
9+
```bash
10+
git checkout release
11+
git merge main
12+
```
13+
14+
2) Update the version number in `Cargo.toml`.
15+
The version numbers have the format `[x].[y].[z]`. If you are releasing a major
16+
version, you should increment `[x]` and set `[y]` and `[z]` to 0.
17+
If you are releasing a minor version, you should increment `[y]` and set `[z]`
18+
to zero. If you are releasing a bugfix, you should increment `[z]`.
19+
20+
4) In `Cargo.toml`, check that the `rlst`, `green-kernels`, and `kifmm`
21+
dependencies are at the latest version.
22+
23+
5) Commit your changes and push to GitHub. Wait to see if the CI tests pass.
24+
25+
6) [Create a release on GitHub](https://github.com/bempp/kifmm/releases/new) from the `release` branch.
26+
The release tag and title should be `v[x].[y].[z]` (where `[x]`, `[y]` and `[z]` are as in step 2).
27+
In the "Describe this release" box, you should bullet point the main changes since the last
28+
release.
29+
30+
7) Run `cargo publish --dry-run`, then run `cargo package --list` and
31+
check that no unwanted extras have been included in the release.
32+
33+
8) If everything is working as expected, run `cargo publish`. This will push the new version to
34+
crates.io. Note: this cannot be undone, but you can use `cargo yank` to mark a version as
35+
unsuitable for use.
36+
37+
9) Open a pull request to `main` to update the version number in `Cargo.toml` to `[x].[y].[z]-dev`

0 commit comments

Comments
 (0)