Skip to content

Commit 3b06cf9

Browse files
Drop Jupyter Releaser (#133)
1 parent b7ffd9c commit 3b06cf9

10 files changed

Lines changed: 46 additions & 260 deletions

File tree

.github/workflows/full-release.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.github/workflows/prep-release.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/publish-changelog.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/publish-release.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
7+
- "[0-9]+.[0-9]+.[0-9]+.post[0-9]+"
8+
- "[0-9]+.[0-9]+.[0-9]+[a-b][0-9]+"
9+
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.13
19+
- run: |
20+
pip install hatch "hatchling!=1.26.0"
21+
hatch build
22+
- uses: actions/upload-artifact@v4
23+
with:
24+
name: dist
25+
path: dist
26+
27+
pypi-publish:
28+
name: Upload release to PyPI
29+
needs: build
30+
runs-on: ubuntu-latest
31+
environment: release
32+
permissions:
33+
id-token: write
34+
steps:
35+
- name: Retrieve packages
36+
uses: actions/download-artifact@v4
37+
- name: Upload packages
38+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/test.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,3 @@ jobs:
6565
- name: Run tests
6666
run: |
6767
pytest -v --color=yes --timeout=60
68-
69-
check_release:
70-
runs-on: ubuntu-latest
71-
steps:
72-
- uses: actions/checkout@v4
73-
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
74-
- name: Check Release
75-
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
76-
with:
77-
token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Changes in ypy-websocket {#changelog}
2-
3-
<!-- <START NEW CHANGELOG ENTRY> -->
1+
# Version history
42

53
## 0.15.5
64

@@ -18,8 +16,6 @@
1816

1917
[@brichet](https://github.com/search?q=repo%3Ajupyter-server%2Fpycrdt-websocket+involves%3Abrichet+updated%3A2025-01-23..2025-04-15&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter-server%2Fpycrdt-websocket+involves%3Apre-commit-ci+updated%3A2025-01-23..2025-04-15&type=Issues)
2018

21-
<!-- <END NEW CHANGELOG ENTRY> -->
22-
2319
## 0.15.4
2420

2521
([Full Changelog](https://github.com/jupyter-server/pycrdt-websocket/compare/v0.15.3...4c9f21a9e75d7f726f293674abee820837e44ea7))

RELEASE.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pycrdt-websocket"
7-
dynamic = ["version"]
7+
version = "0.15.5"
88
description = "WebSocket connector for pycrdt"
99
license = { file = "LICENSE" }
1010
readme = "README.md"
@@ -62,9 +62,6 @@ Source = "https://github.com/y-crdt/pycrdt-websocket"
6262
Issues = "https://github.com/y-crdt/pycrdt-websocket/issues"
6363
Pypi = "https://pypi.org/project/pycrdt-websocket"
6464

65-
[tool.hatch.version]
66-
path = "src/pycrdt/websocket/__init__.py"
67-
6865
[tool.hatch.build.targets.wheel]
6966
ignore-vcs = true
7067
packages = ["src/pycrdt"]

src/pycrdt/websocket/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import importlib.metadata
2+
13
from .asgi_server import ASGIServer as ASGIServer
24
from .websocket_server import WebsocketServer as WebsocketServer
35
from .websocket_server import exception_logger as exception_logger
46
from .yroom import YRoom as YRoom
57

6-
__version__ = "0.15.5"
8+
try:
9+
__version__ = importlib.metadata.version("pycrdt.websocket")
10+
except importlib.metadata.PackageNotFoundError:
11+
__version__ = "unknown"

0 commit comments

Comments
 (0)