Skip to content

Switch to hatch version #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,3 @@
## Using `jupyter_releaser`

The recommended way to make a release is to use [`jupyter_releaser`](https://github.com/jupyter-server/jupyter_releaser#checklist-for-adoption).

## Manual Release

To create a manual release, perform the following steps:

### Set up

```bash
pip install tbump twine build
git pull origin $(git branch --show-current)
git clean -dffx
```

### Update the version and apply the tag

```bash
echo "Enter new version"
read script_version
tbump ${script_version}
```

### Build the artifacts

```bash
rm -rf dist
python -m build .
```

### Update the version back to dev

```bash
echo "Enter dev version"
read dev_version
tbump ${dev_version} --no-tag
git push origin $(git branch --show-current)
```

### Publish the artifacts to pypi

```bash
twine check dist/*
twine upload dist/*
```
3 changes: 2 additions & 1 deletion jupyter_server_ydoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
import jupyter_server.serverapp
from jupyter_server.utils import url_path_join

from ._version import __version__ # noqa:F401
from .ydoc import YDocWebSocketHandler

__version__ = "0.1.11"


def _jupyter_server_extension_points() -> List[Dict[str, str]]:
return [{"module": "jupyter_server_ydoc"}]
Expand Down
1 change: 0 additions & 1 deletion jupyter_server_ydoc/_version.py

This file was deleted.

33 changes: 3 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "jupyter_server_ydoc"
version = "0.1.11"
dynamic = ["version"]
license = { file = "LICENSE" }
description = "A Jupyter Server Extension Providing Y Documents."
keywords = ["ipython", "jupyter"]
Expand Down Expand Up @@ -94,32 +94,5 @@ ignore_missing_imports = true
[tool.jupyter-releaser]
skip = ["check-links"]

[tool.tbump.version]
current = "0.1.11"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
'''

[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"

[[tool.tbump.file]]
src = "jupyter_server_ydoc/_version.py"
version_template = '{major}.{minor}.{patch}{channel}{release}'

[[tool.tbump.file]]
src = "docs/source/conf.py"
version_template = '{major}.{minor}.{patch}{channel}{release}'

[[tool.tbump.file]]
src = "pyproject.toml"

[[tool.tbump.field]]
name = "channel"
default = ""

[[tool.tbump.field]]
name = "release"
default = ""
[tool.hatch.version]
path = "jupyter_server_ydoc/__init__.py"