Skip to content

Commit 4cd1ae8

Browse files
authored
Merge pull request #14 from Zsailer/hatch
switch to hatch build backend
2 parents a54d74c + fba73f4 commit 4cd1ae8

File tree

4 files changed

+70
-68
lines changed

4 files changed

+70
-68
lines changed

notebook_shim/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
version_info = (0, 2, 0, ".dev", "0")
12
__version__ = "0.2.0.dev0"

pyproject.toml

Lines changed: 69 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,45 @@
11
[build-system]
2-
requires = ["jupyter_packaging~=0.9,<2"]
3-
build-backend = "jupyter_packaging.build_api"
2+
requires = ["hatchling >=1.0"]
3+
build-backend = "hatchling.build"
44

5-
[tool.check-manifest]
6-
ignore = ["tbump.toml", ".*", "conftest.py"]
7-
8-
[tool.pytest.ini_options]
9-
norecursedirs = ["confs"]
10-
testpaths = [
11-
"notebook_shim/tests"
5+
[project]
6+
name = "notebook_shim"
7+
dynamic = [
8+
"version",
9+
]
10+
readme = "README.md"
11+
license = { file = "LICENSE" }
12+
description = "A shim layer for notebook traits and config"
13+
authors = [{name = "Jupyter Development Team", email = "[email protected]"}]
14+
keywords = ["ipython", "jupyter"]
15+
classifiers = [
16+
"Framework :: Jupyter",
17+
"Intended Audience :: Developers",
18+
"Intended Audience :: Science/Research",
19+
"Intended Audience :: System Administrators",
20+
"License :: OSI Approved :: BSD License",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3 :: Only",
24+
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
]
29+
requires-python = ">=3.7"
30+
dependencies = [
31+
"jupyter_server>=1.8,<3"
1232
]
1333

14-
[tool.jupyter-releaser]
15-
skip = ["check-links"]
34+
[project.optional-dependencies]
35+
test = [
36+
"pytest",
37+
"pytest-tornasync",
38+
"pytest-console-scripts",
39+
]
1640

17-
[tool.jupyter-releaser.options]
18-
post-version-spec = "dev"
41+
[tool.hatch.version]
42+
path = "notebook_shim/_version.py"
1943

2044
[tool.tbump.version]
2145
current = "0.2.0.dev0"
@@ -30,3 +54,35 @@ tag_template = "v{new_version}"
3054

3155
[[tool.tbump.file]]
3256
src = "notebook_shim/_version.py"
57+
version_template = '({major}, {minor}, {patch}, "{channel}", "{release}")'
58+
59+
[[tool.tbump.file]]
60+
src = "notebook_shim/_version.py"
61+
version_template = "{major}.{minor}.{patch}{channel}{release}"
62+
63+
[[tool.tbump.file]]
64+
src = "pyproject.toml"
65+
version_template = "{major}.{minor}.{patch}{channel}{release}"
66+
67+
[[tool.tbump.field]]
68+
name = "channel"
69+
default = ""
70+
71+
[[tool.tbump.field]]
72+
name = "release"
73+
default = ""
74+
75+
[tool.check-manifest]
76+
ignore = ["tbump.toml", ".*", "conftest.py"]
77+
78+
[tool.pytest.ini_options]
79+
norecursedirs = ["confs"]
80+
testpaths = [
81+
"notebook_shim/tests"
82+
]
83+
84+
[tool.jupyter-releaser]
85+
skip = ["check-links"]
86+
87+
[tool.jupyter-releaser.options]
88+
post-version-spec = "dev"

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)