Skip to content

Commit

Permalink
Merge pull request #1259 from thewtex/hatch-test-deps
Browse files Browse the repository at this point in the history
hatch test deps
  • Loading branch information
thewtex authored Oct 29, 2024
2 parents 0b65b99 + 0285dcc commit a56a471
Show file tree
Hide file tree
Showing 30 changed files with 1 addition and 372 deletions.
1 change: 0 additions & 1 deletion examples/inputs-outputs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "inputs-outputs-example-build",
"version": "2.0.0",
"private": true,
"packageManager": "[email protected]",
"description": "An itk-wasm pipeline example for inputs/outputs",
"type": "module",
"itk-wasm": {
Expand Down
1 change: 0 additions & 1 deletion examples/inputs-outputs/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@itk-wasm/inputs-outputs-example",
"version": "0.1.0",
"packageManager": "[email protected]",
"description": "An example that has non-trivial inputs and outputs.",
"type": "module",
"bin": "src/cli.mjs",
Expand Down
1 change: 0 additions & 1 deletion examples/mean-squares-versor-registration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "mean-squares-versor-registration-build",
"version": "2.0.0",
"private": true,
"packageManager": "[email protected]",
"description": "Illustrate the use of the VersorRigid3DTransform for 3D image registration.",
"type": "module",
"itk-wasm": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "mean-squares-versor-registration",
"version": "0.1.0",
"packageManager": "[email protected]",
"description": "Example 3D versor transform registration with a mean-squares similarity metric",
"type": "module",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "itk-wasm-workspace",
"version": "1.0.0",
"private": true,
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@9.9.0",
"description": "High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.",
"type": "module",
"directories": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,37 +38,10 @@ dependencies = [
[tool.hatch.version]
path = "itkwasm_compare_images_emscripten/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-pyodide",
"itk-webassemblyinterface >= 1.0.b173",
"itkwasm >= 1.0.b171",
]

[project.urls]
Home = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"
Source = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"

[tool.hatch.envs.default.scripts]
test = [
"hatch build -t wheel ./dist/pyodide/",
"pytest -s --dist-dir=./dist/pyodide --rt=chrome",
]
download-pyodide = [
"curl -L https://github.com/pyodide/pyodide/releases/download/0.25.1/pyodide-0.25.1.tar.bz2 -o pyodide.tar.bz2",
"tar xjf pyodide.tar.bz2",
"rm -rf dist/pyodide pyodide.tar.bz2",
"mkdir -p dist",
"mv pyodide dist",
]
serve = [
"hatch build -t wheel ./dist/pyodide",
'echo "\nVisit http://localhost:8877/console.html\n"',
"python -m http.server --directory=./dist/pyodide 8877",
]


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,15 @@ requires-python = ">=3.8"
dependencies = [
"itkwasm >= 1.0.b171",
"importlib_resources",

]

[tool.hatch.version]
path = "itkwasm_compare_images_wasi/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"itk-webassemblyinterface >= 1.0.b173"
]

[project.urls]
Home = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"
Source = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"

[tool.hatch.envs.default.scripts]
test = "pytest"


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,10 @@ dependencies = [
[tool.hatch.version]
path = "itkwasm_compare_images/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-pyodide",
"itk-webassemblyinterface >= 1.0.b173",
"itkwasm >= 1.0.b171",
]

[project.urls]
Home = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"
Source = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"

[tool.hatch.envs.default.scripts]
test = [
"hatch build -t wheel ./dist/pyodide/",
"pytest -s --dist-dir=./dist/pyodide --rt=chrome",
]
download-pyodide = [
"curl -L https://github.com/pyodide/pyodide/releases/download/0.25.1/pyodide-0.25.1.tar.bz2 -o pyodide.tar.bz2",
"tar xjf pyodide.tar.bz2",
"rm -rf dist/pyodide pyodide.tar.bz2",
"mkdir -p dist",
"mv pyodide dist",
]
serve = [
"hatch build -t wheel ./dist/pyodide",
'echo "\nVisit http://localhost:8877/console.html\n"',
"python -m http.server --directory=./dist/pyodide 8877",
]

[tool.hatch.build]
exclude = [
"/examples",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,6 @@ Issues = "https://github.com/InsightSoftwareConsortium/ITK-Wasm/issues"
[tool.hatch.version]
path = "itkwasm_compress_stringify_emscripten/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-pyodide",
]


[tool.hatch.envs.default.scripts]
test = [
"hatch build -t wheel ./dist/pyodide/",
"pytest --dist-dir=./dist/pyodide --rt=chrome",
]
download-pyodide = [
"curl -L https://github.com/pyodide/pyodide/releases/download/0.25.1/pyodide-0.25.1.tar.bz2 -o pyodide.tar.bz2",
"tar xjf pyodide.tar.bz2",
"rm -rf dist/pyodide pyodide.tar.bz2",
"mkdir -p dist",
"mv pyodide dist",
]
serve = [
"hatch build -t wheel ./dist/pyodide/",
'echo "\nVisit http://localhost:8877/console.html\n"',
"python -m http.server --directory=./dist/pyodide 8877",
]


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ requires-python = ">=3.8"
dependencies = [
"itkwasm >= 1.0.b171",
"importlib_resources",

]

[project.urls]
Expand All @@ -45,16 +44,6 @@ Issues = "https://github.com/InsightSoftwareConsortium/ITK-Wasm/issues"
[tool.hatch.version]
path = "itkwasm_compress_stringify_wasi/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
]


[tool.hatch.envs.default.scripts]
test = "pytest"


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,37 +47,6 @@ Issues = "https://github.com/InsightSoftwareConsortium/ITK-Wasm/issues"
[tool.hatch.version]
path = "itkwasm_compress_stringify/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-pyodide",
"itkwasm-compare-images",
"itkwasm-image-io",
"itkwasm-compare-meshes",
"itkwasm-mesh-io",
"itkwasm-mesh-to-poly-data",
]


[tool.hatch.envs.default.scripts]
test = [
"hatch build -t wheel ./dist/pyodide/",
"pytest --dist-dir=./dist/pyodide --rt=chrome",
]
download-pyodide = [
"curl -L https://github.com/pyodide/pyodide/releases/download/0.25.1/pyodide-0.25.1.tar.bz2 -o pyodide.tar.bz2",
"tar xjf pyodide.tar.bz2",
"rm -rf dist/pyodide pyodide.tar.bz2",
"mkdir -p dist",
"mv pyodide dist",
]
serve = [
"hatch build -t wheel ./dist/pyodide/",
'echo "\nVisit http://localhost:8877/console.html\n"',
"python -m http.server --directory=./dist/pyodide 8877",
]


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ function generatePackageJson(project: ProjectSpec) {
// @ts-ignore
itkWasm.repository = project.repositoryUrl
}
const packageManager = '[email protected]'
let packageJson = {
name: `${project.name}-build`,
version: '0.1.0',
private: true,
packageManager,
description: `Scripts to generate ${project.name} itk-wasm artifacts.`,
type: 'module',
'itk-wasm': itkWasm,
Expand Down
1 change: 0 additions & 1 deletion packages/core/typescript/demo-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@itk-wasm/demo-app",
"version": "0.2.0",
"packageManager": "[email protected]",
"description": "Try itk-wasm pipelines in a browser",
"type": "module",
"exports": {
Expand Down
1 change: 0 additions & 1 deletion packages/core/typescript/itk-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "itk-wasm",
"version": "1.0.0-b.179",
"packageManager": "[email protected]",
"description": "High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.",
"type": "module",
"module": "./dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "test-pipelines",
"version": "1.0.0",
"packageManager": "[email protected]",
"description": "Exercise interface types for bindgen",
"type": "module",
"module": "./dist/index.js",
Expand Down
25 changes: 0 additions & 25 deletions packages/dicom/python/itkwasm-dicom-emscripten/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,11 @@ dependencies = [
[tool.hatch.version]
path = "itkwasm_dicom_emscripten/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-pyodide",
]

[project.urls]
Home = "https://itk-wasm-dicom-python-docs.on.fleek.co"
Source = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"
Issues = "https://github.com/InsightSoftwareConsortium/ITK-Wasm/issues"

[tool.hatch.envs.default.scripts]
test = [
"hatch build -t wheel ./dist/pyodide/",
"pytest --dist-dir=./dist/pyodide --rt=chrome",
]
download-pyodide = [
"curl -L https://github.com/pyodide/pyodide/releases/download/0.25.1/pyodide-0.25.1.tar.bz2 -o pyodide.tar.bz2",
"tar xjf pyodide.tar.bz2",
"rm -rf dist/pyodide pyodide.tar.bz2",
"mkdir -p dist",
"mv pyodide dist",
]
serve = [
"hatch build -t wheel ./dist/pyodide/",
'echo "\nVisit http://localhost:8877/console.html\n"',
"python -m http.server --directory=./dist/pyodide 8877",
]


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
11 changes: 0 additions & 11 deletions packages/dicom/python/itkwasm-dicom-wasi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@ Issues = "https://github.com/InsightSoftwareConsortium/ITK-Wasm/issues"
[tool.hatch.version]
path = "itkwasm_dicom_wasi/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"pillow",
]


[tool.hatch.envs.default.scripts]
test = "pytest"


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
11 changes: 0 additions & 11 deletions packages/dicom/python/itkwasm-dicom/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ dependencies = [
"itkwasm >= 1.0.b131",
"itkwasm-dicom-wasi; sys_platform != \"emscripten\"",
"itkwasm-dicom-emscripten; sys_platform == \"emscripten\"",

]

[project.urls]
Expand All @@ -47,16 +46,6 @@ Issues = "https://github.com/InsightSoftwareConsortium/ITK-Wasm/issues"
[tool.hatch.version]
path = "itkwasm_dicom/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
]


[tool.hatch.envs.default.scripts]
test = "pytest"


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
11 changes: 0 additions & 11 deletions packages/downsample/python/itkwasm-downsample-cucim/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ dependencies = [
[tool.hatch.version]
path = "itkwasm_downsample_cucim/_version.py"

[tool.hatch.envs.default]
dependencies = [
"pytest",
"itkwasm-image-io",
"itkwasm-compare-images",
]

[project.urls]
Home = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"
Source = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"
Expand All @@ -57,10 +50,6 @@ Source = "https://github.com/InsightSoftwareConsortium/ITK-Wasm"
[project.entry-points."itkwasm_downsample.downsample"]
"itkwasm_downsample-downsample.priority.10" = "itkwasm_downsample_cucim.downsample:downsample"

[tool.hatch.envs.default.scripts]
test = "pytest"


[tool.hatch.build]
exclude = [
"/examples",
Expand Down
Loading

0 comments on commit a56a471

Please sign in to comment.