Skip to content

Commit d9f1460

Browse files
davidbrochartpre-commit-ci[bot]
authored andcommitted
Switch to hatch version (jupyterlab#33)
* Switch to hatch version * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent dd30539 commit d9f1460

File tree

4 files changed

+5
-75
lines changed

4 files changed

+5
-75
lines changed

RELEASE.md

-43
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,3 @@
33
## Using `jupyter_releaser`
44

55
The recommended way to make a release is to use [`jupyter_releaser`](https://github.com/jupyter-server/jupyter_releaser#checklist-for-adoption).
6-
7-
## Manual Release
8-
9-
To create a manual release, perform the following steps:
10-
11-
### Set up
12-
13-
```bash
14-
pip install tbump twine build
15-
git pull origin $(git branch --show-current)
16-
git clean -dffx
17-
```
18-
19-
### Update the version and apply the tag
20-
21-
```bash
22-
echo "Enter new version"
23-
read script_version
24-
tbump ${script_version}
25-
```
26-
27-
### Build the artifacts
28-
29-
```bash
30-
rm -rf dist
31-
python -m build .
32-
```
33-
34-
### Update the version back to dev
35-
36-
```bash
37-
echo "Enter dev version"
38-
read dev_version
39-
tbump ${dev_version} --no-tag
40-
git push origin $(git branch --show-current)
41-
```
42-
43-
### Publish the artifacts to pypi
44-
45-
```bash
46-
twine check dist/*
47-
twine upload dist/*
48-
```

jupyter_server_ydoc/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import jupyter_server.serverapp
44
from jupyter_server.utils import url_path_join
55

6-
from ._version import __version__ # noqa:F401
76
from .ydoc import YDocWebSocketHandler
87

8+
__version__ = "0.1.11"
9+
910

1011
def _jupyter_server_extension_points() -> List[Dict[str, str]]:
1112
return [{"module": "jupyter_server_ydoc"}]

jupyter_server_ydoc/_version.py

-1
This file was deleted.

pyproject.toml

+3-30
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "jupyter_server_ydoc"
7-
version = "0.1.11"
7+
dynamic = ["version"]
88
license = { file = "LICENSE" }
99
description = "A Jupyter Server Extension Providing Y Documents."
1010
keywords = ["ipython", "jupyter"]
@@ -94,32 +94,5 @@ ignore_missing_imports = true
9494
[tool.jupyter-releaser]
9595
skip = ["check-links"]
9696

97-
[tool.tbump.version]
98-
current = "0.1.11"
99-
regex = '''
100-
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
101-
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
102-
'''
103-
104-
[tool.tbump.git]
105-
message_template = "Bump to {new_version}"
106-
tag_template = "v{new_version}"
107-
108-
[[tool.tbump.file]]
109-
src = "jupyter_server_ydoc/_version.py"
110-
version_template = '{major}.{minor}.{patch}{channel}{release}'
111-
112-
[[tool.tbump.file]]
113-
src = "docs/source/conf.py"
114-
version_template = '{major}.{minor}.{patch}{channel}{release}'
115-
116-
[[tool.tbump.file]]
117-
src = "pyproject.toml"
118-
119-
[[tool.tbump.field]]
120-
name = "channel"
121-
default = ""
122-
123-
[[tool.tbump.field]]
124-
name = "release"
125-
default = ""
97+
[tool.hatch.version]
98+
path = "jupyter_server_ydoc/__init__.py"

0 commit comments

Comments
 (0)