Skip to content

Commit e473dba

Browse files
authored
Merge pull request #500 from bnmajor/minimize-build
REL: Do not include examples or node_modules in release
2 parents 9fd54d9 + 2d195aa commit e473dba

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Install build dependencies
16-
run: python -m pip install --upgrade build
16+
run: python -m pip install --upgrade hatch
1717
- name: Build
18-
run: python -m build
18+
run: hatch build
1919
- name: Generate release notes
2020
run: |
2121
python ./utilities/release-notes.py ./ReleaseNotes.txt

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ dependencies = [
4545
[tool.hatch.version]
4646
source = "vcs"
4747

48+
[tool.hatch.build]
49+
exclude = [
50+
"/js/node_modules",
51+
"/examples",
52+
]
53+
4854
[project.urls]
4955
Home = "https://itkwidgets.readthedocs.io/en/latest/"
5056
Documentation = "https://itkwidgets.readthedocs.io/en/latest/"

0 commit comments

Comments
 (0)