Skip to content

Commit 3136aac

Browse files
authored
Clean up release instructions and coverage handling (jupyter-server#1098)
1 parent a50dd7c commit 3136aac

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

RELEASE.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Using `jupyter_releaser`
44

5-
The recommended way to make a release is to use [`jupyter_releaser`](https://github.com/jupyter-server/jupyter_releaser#checklist-for-adoption).
5+
The recommended way to make a release is to use [`jupyter_releaser`](https://jupyter-releaser.readthedocs.io/en/latest/get_started/making_release_from_repo.html).
66

77
Note that we must use manual versions since Jupyter Releaser does not
88
yet support "next" or "patch" when dev versions are used.
@@ -14,19 +14,17 @@ To create a manual release, perform the following steps:
1414
### Set up
1515

1616
```bash
17-
pip install hatchling twine build
17+
pip install hatch twine build
1818
git pull origin $(git branch --show-current)
1919
git clean -dffx
20-
npm install
21-
npm run build
2220
```
2321

2422
### Update the version and apply the tag
2523

2624
```bash
2725
echo "Enter new version"
2826
read new_version
29-
hatchling version ${new_version}
27+
hatch version ${new_version}
3028
git tag -a ${new_version} -m "Release ${new_version}"
3129
```
3230

@@ -42,7 +40,7 @@ python -m build .
4240
```bash
4341
echo "Enter dev version"
4442
read dev_version
45-
hatchling version ${dev_version}
43+
hatch version ${dev_version}
4644
git push origin $(git branch --show-current)
4745
```
4846

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ nowarn = "test -W default {args}"
100100

101101
[tool.hatch.envs.cov]
102102
features = ["test"]
103-
dependencies = ["coverage", "pytest-cov"]
103+
dependencies = ["coverage[toml]"]
104104
[tool.hatch.envs.cov.scripts]
105-
test = "python -m pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered {args}"
105+
test = "coverage run -m pytest {args}"
106106
nowarn = "test -W default {args}"
107107
integration = "test --integration_tests=true {args}"
108108

0 commit comments

Comments
 (0)