Skip to content

Commit

Permalink
Fix artifact config for hatch (#850)
Browse files Browse the repository at this point in the history
* fix artifact config

* add before-build-python stage
  • Loading branch information
blink1073 authored May 20, 2022
1 parent 1361a37 commit 7a0080c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"version": "1.0.0",
"license": "BSD",
"scripts": {
"build": "copyfiles -f node_modules/bootstrap/dist/css/*.min.* jupyter_server/static/style",
"postinstall": "npm run build"
"build": "copyfiles -f node_modules/bootstrap/dist/css/*.min.* jupyter_server/static/style"
},
"dependencies": {
"bootstrap": "^3.4.0",
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ test = [
jupyter-server = "jupyter_server.serverapp:main"

[tool.hatch.build]
artifacts = ["jupyter_server/static/style/*.*"]
artifacts = ["jupyter_server/static/style"]

[tool.black]
line_length = 100
Expand Down Expand Up @@ -104,6 +104,9 @@ filterwarnings = [
[tool.jupyter-releaser]
skip = ["check-links"]

[tool.jupyter-releaser.hooks]
before-build-python = ["npm install", "npm run build"]

[tool.jupyter-releaser.options]
post-version-spec = "dev"
pydist_resource_paths = ["jupyter_server/static/style/bootstrap.min.css", "jupyter_server/static/style/bootstrap-theme.min.css"]
Expand Down

0 comments on commit 7a0080c

Please sign in to comment.