Skip to content

Commit 89c9e7e

Browse files
committed
Move releaser config to pyproject.toml
1 parent eedfc74 commit 89c9e7e

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

package.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,5 @@
6060
"prettier": "^1.19.0",
6161
"rimraf": "^3.0.2",
6262
"typescript": "~4.7.3"
63-
},
64-
"jupyter-releaser": {
65-
"hooks": {
66-
"before-build-npm": [
67-
"jlpm clean",
68-
"jlpm build:prod"
69-
],
70-
"before-build-python": [
71-
"jlpm clean"
72-
],
73-
"before-bump-version": [
74-
"jlpm run build:utils",
75-
"python -m pip install hatch"
76-
]
77-
},
78-
"options": {
79-
"version-cmd": [
80-
"jlpm run release:bump --force --skip-commit"
81-
]
82-
}
8363
}
8464
}

pyproject.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,23 @@ extend-ignore = [
141141
# black adds spaces around ':'
142142
"E203",
143143
]
144+
145+
[tool.jupyter-releaser.options]
146+
version-cmd = "jlpm run release:bump --force --skip-commit"
147+
148+
[tool.jupyter-releaser.hooks]
149+
after-prep-git = [
150+
"python -m pip install --pre -U jupyterlab",
151+
"jlpm"
152+
]
153+
before-bump-version = [
154+
"jlpm run build:utils",
155+
"python -m pip install hatch"
156+
]
157+
before-build-npm = [
158+
"jlpm clean",
159+
"jlpm build:prod"
160+
]
161+
before-build-python = [
162+
"jlpm clean"
163+
]

0 commit comments

Comments
 (0)