Skip to content

Commit 55dc65a

Browse files
Merge pull request #51 from jupyter-server/hatch
Use hatch
2 parents 3e21fc6 + 909f2d6 commit 55dc65a

File tree

4 files changed

+60
-59
lines changed

4 files changed

+60
-59
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ repos:
4747
hooks:
4848
- id: flake8
4949
additional_dependencies:
50-
["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0"]
50+
["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0", "flake8-pyproject"]
5151
stages: [manual]

pyproject.toml

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,64 @@
1-
[tool.check-manifest]
2-
ignore = [".*"]
1+
[build-system]
2+
requires = [
3+
"hatchling>=1.10.0",
4+
]
5+
build-backend = "hatchling.build"
6+
7+
[project]
8+
name = "jupyter-ydoc"
9+
dynamic = [
10+
"version",
11+
]
12+
description = "Document structures for collaborative editing using Ypy"
13+
requires-python = ">=3.7"
14+
keywords = [
15+
"jupyter",
16+
"ypy",
17+
]
18+
dependencies = [
19+
"y-py >=0.5.3,<0.6.0",
20+
]
21+
22+
[[project.authors]]
23+
name = "Jupyter Development Team"
24+
25+
26+
[project.optional-dependencies]
27+
test = [
28+
"pre-commit",
29+
"pytest",
30+
"pytest-asyncio",
31+
"websockets >=10.0",
32+
"ypy-websocket >=0.3.1,<0.4.0",
33+
]
34+
35+
[project.entry-points.jupyter_ydoc]
36+
file = "jupyter_ydoc.ydoc:YFile"
37+
notebook = "jupyter_ydoc.ydoc:YNotebook"
338

4-
[tool.tbump.version]
5-
current = "0.1.17"
6-
regex = '''
7-
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
8-
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
9-
'''
39+
[project.readme]
40+
file = "README.md"
41+
content-type = "text/markdown"
1042

11-
[tool.tbump.git]
12-
message_template = "Bump to {new_version}"
13-
tag_template = "v{new_version}"
43+
[project.license]
44+
text = "BSD 3-Clause License"
1445

15-
[[tool.tbump.file]]
16-
src = "jupyter_ydoc/__init__.py"
46+
[project.urls]
47+
Homepage = "https://jupyter.org"
48+
49+
[tool.hatch.version]
50+
path = "jupyter_ydoc/__init__.py"
51+
52+
[tool.check-manifest]
53+
ignore = [
54+
".*",
55+
]
1756

1857
[tool.jupyter-releaser]
19-
skip = ["check-links", "check-manifest"]
58+
skip = [
59+
"check-links",
60+
"check-manifest",
61+
]
62+
63+
[tool.flake8]
64+
max-line-length = 100

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)