itkwasm-elastix 0.2.2__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. itkwasm_elastix-0.4.0/.gitattributes +2 -0
  2. itkwasm_elastix-0.4.0/.gitignore +3 -0
  3. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/PKG-INFO +11 -6
  4. itkwasm_elastix-0.4.0/itkwasm_elastix/_version.py +1 -0
  5. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/pyproject.toml +30 -8
  6. itkwasm_elastix-0.4.0/tests/test_default_parameter_map.py +19 -0
  7. itkwasm_elastix-0.4.0/tests/test_elastix.py +19 -0
  8. itkwasm_elastix-0.4.0/tests/test_read_parameter_files.py +19 -0
  9. itkwasm_elastix-0.2.2/.gitignore +0 -24
  10. itkwasm_elastix-0.2.2/itkwasm_elastix/_version.py +0 -1
  11. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/README.md +0 -0
  12. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/docs/Makefile +0 -0
  13. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/docs/_static/favicon.png +0 -0
  14. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/docs/_static/logo.svg +0 -0
  15. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/docs/conf.py +0 -0
  16. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/docs/index.md +0 -0
  17. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/docs/make.bat +0 -0
  18. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/docs/requirements.txt +0 -0
  19. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/__init__.py +0 -0
  20. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/default_parameter_map.py +0 -0
  21. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/default_parameter_map_async.py +0 -0
  22. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/elastix.py +0 -0
  23. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/elastix_async.py +0 -0
  24. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/read_parameter_files.py +0 -0
  25. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/read_parameter_files_async.py +0 -0
  26. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/write_parameter_files.py +0 -0
  27. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/itkwasm_elastix/write_parameter_files_async.py +0 -0
  28. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/tests/__init__.py +0 -0
  29. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/tests/fixtures.py +0 -0
  30. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/tests/test_itkwasm_elastix.py +0 -0
  31. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/tests/test_write_parameter_files.py +0 -0
  32. {itkwasm_elastix-0.2.2 → itkwasm_elastix-0.4.0}/tests/test_write_parameter_files_async.py +0 -0
@@ -0,0 +1,2 @@
1
+ # GitHub syntax highlighting
2
+ pixi.lock linguist-language=YAML linguist-generated=true
@@ -0,0 +1,3 @@
1
+ # pixi environments
2
+ .pixi
3
+ *.egg-info
@@ -1,6 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: itkwasm-elastix
3
- Version: 0.2.2
3
+ Version: 0.4.0
4
+ Dynamic: Summary
4
5
  Project-URL: Home, https://github.com/InsightSoftwareConsortium/ITKElastix
5
6
  Project-URL: Source, https://github.com/InsightSoftwareConsortium/ITKElastix
6
7
  License-Expression: Apache-2.0
@@ -15,15 +16,19 @@ Classifier: License :: OSI Approved :: Apache Software License
15
16
  Classifier: Programming Language :: C++
16
17
  Classifier: Programming Language :: Python
17
18
  Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.7
19
- Classifier: Programming Language :: Python :: 3.8
20
19
  Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
- Requires-Python: >=3.7
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Requires-Python: >=3.9
24
24
  Requires-Dist: itkwasm-elastix-emscripten; sys_platform == 'emscripten'
25
25
  Requires-Dist: itkwasm-elastix-wasi; sys_platform != 'emscripten'
26
- Requires-Dist: itkwasm>=1.0.b131
26
+ Requires-Dist: itkwasm>=1.0.b178
27
+ Provides-Extra: test
28
+ Requires-Dist: hatch<2,>=1.12.0; extra == 'test'
29
+ Requires-Dist: pyodide-py<0.27,>=0.26.2; extra == 'test'
30
+ Requires-Dist: pytest; extra == 'test'
31
+ Requires-Dist: pytest-pyodide; extra == 'test'
27
32
  Description-Content-Type: text/markdown
28
33
 
29
34
  # itkwasm-elastix
@@ -0,0 +1 @@
1
+ __version__ = "0.4.0"
@@ -18,11 +18,10 @@ classifiers = [
18
18
  "Intended Audience :: Developers",
19
19
  "Intended Audience :: Science/Research",
20
20
  "Programming Language :: Python :: 3",
21
- "Programming Language :: Python :: 3.7",
22
- "Programming Language :: Python :: 3.8",
23
21
  "Programming Language :: Python :: 3.9",
24
22
  "Programming Language :: Python :: 3.10",
25
23
  "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
26
25
  ]
27
26
  keywords = [
28
27
  "itkwasm",
@@ -31,14 +30,21 @@ keywords = [
31
30
  "emscripten",
32
31
  ]
33
32
 
34
- requires-python = ">=3.7"
33
+ requires-python = ">=3.9"
35
34
  dependencies = [
36
- "itkwasm >= 1.0.b131",
35
+ "itkwasm >= 1.0.b178",
37
36
  "itkwasm-elastix-wasi; sys_platform != \"emscripten\"",
38
37
  "itkwasm-elastix-emscripten; sys_platform == \"emscripten\"",
39
38
 
40
39
  ]
41
40
 
41
+ [project.urls]
42
+ Home = "https://github.com/InsightSoftwareConsortium/ITKElastix"
43
+ Source = "https://github.com/InsightSoftwareConsortium/ITKElastix"
44
+
45
+ [project.optional-dependencies]
46
+ test = ["pytest", "pytest-pyodide", "hatch>=1.12.0,<2", "pyodide-py>=0.26.2,<0.27"]
47
+
42
48
  [tool.hatch.version]
43
49
  path = "itkwasm_elastix/_version.py"
44
50
 
@@ -66,11 +72,27 @@ serve = [
66
72
  ]
67
73
 
68
74
 
69
- [project.urls]
70
- Home = "https://github.com/InsightSoftwareConsortium/ITKElastix"
71
- Source = "https://github.com/InsightSoftwareConsortium/ITKElastix"
72
-
73
75
  [tool.hatch.build]
74
76
  exclude = [
75
77
  "/examples",
76
78
  ]
79
+
80
+ [tool.pixi.project]
81
+ channels = ["conda-forge"]
82
+ platforms = ["linux-64"]
83
+
84
+ [tool.pixi.pypi-dependencies]
85
+ itkwasm-elastix = { path = ".", editable = true }
86
+
87
+ [tool.pixi.environments]
88
+ default = {features = [], solve-group = "default"}
89
+ test = {features = ["test"], solve-group = "default"}
90
+
91
+ [tool.pixi.feature.test.dependencies]
92
+ curl = ">=8.9.1,<9"
93
+ tar = ">=1.34,<2"
94
+
95
+ [tool.pixi.feature.test.tasks]
96
+ download-pyodide = { cmd = "curl -L https://github.com/pyodide/pyodide/releases/download/0.26.2/pyodide-0.26.2.tar.bz2 -o pyodide.tar.bz2 && tar xjf pyodide.tar.bz2 && rm -rf dist/pyodide && mkdir -p dist && mv pyodide dist", description = "Download Pyodide", outputs = ["pyodide.tar.bz2"] }
97
+ serve = { cmd = 'hatch build -t wheel ./dist/pyodide/ && echo "\nVisit http://localhost:8877/console.html\n" && python -m http.server --directory=./dist/pyodide 8877', description = "Serve the Pyodide distribution", depends-on = ["download-pyodide"] }
98
+ test = { cmd = "hatch build -t wheel ./dist/pyodide/ && pytest --dist-dir=./dist/pyodide --rt=chrome", description = "Run the test suite", depends-on = ["download-pyodide"] }
@@ -0,0 +1,19 @@
1
+ import pytest
2
+ import sys
3
+
4
+ if sys.version_info < (3,10):
5
+ pytest.skip("Skipping pyodide tests on older Python", allow_module_level=True)
6
+
7
+ from pytest_pyodide import run_in_pyodide
8
+
9
+ from .fixtures import emscripten_package_wheel, package_wheel, input_data
10
+
11
+ @run_in_pyodide(packages=['micropip'])
12
+ async def test_default_parameter_map(selenium, package_wheel, emscripten_package_wheel):
13
+ import micropip
14
+ await micropip.install(emscripten_package_wheel)
15
+ await micropip.install(package_wheel)
16
+
17
+ from itkwasm_elastix import default_parameter_map
18
+
19
+ # Write your test code here
@@ -0,0 +1,19 @@
1
+ import pytest
2
+ import sys
3
+
4
+ if sys.version_info < (3,10):
5
+ pytest.skip("Skipping pyodide tests on older Python", allow_module_level=True)
6
+
7
+ from pytest_pyodide import run_in_pyodide
8
+
9
+ from .fixtures import emscripten_package_wheel, package_wheel, input_data
10
+
11
+ @run_in_pyodide(packages=['micropip'])
12
+ async def test_elastix(selenium, package_wheel, emscripten_package_wheel):
13
+ import micropip
14
+ await micropip.install(emscripten_package_wheel)
15
+ await micropip.install(package_wheel)
16
+
17
+ from itkwasm_elastix import elastix
18
+
19
+ # Write your test code here
@@ -0,0 +1,19 @@
1
+ import pytest
2
+ import sys
3
+
4
+ if sys.version_info < (3,10):
5
+ pytest.skip("Skipping pyodide tests on older Python", allow_module_level=True)
6
+
7
+ from pytest_pyodide import run_in_pyodide
8
+
9
+ from .fixtures import emscripten_package_wheel, package_wheel, input_data
10
+
11
+ @run_in_pyodide(packages=['micropip'])
12
+ async def test_read_parameter_files(selenium, package_wheel, emscripten_package_wheel):
13
+ import micropip
14
+ await micropip.install(emscripten_package_wheel)
15
+ await micropip.install(package_wheel)
16
+
17
+ from itkwasm_elastix import read_parameter_files
18
+
19
+ # Write your test code here
@@ -1,24 +0,0 @@
1
- ITK-cp27-cp27m-manylinux1_x64
2
- ITK-cp27-cp27mu-manylinux1_x64
3
- ITK-cp35-cp35m-manylinux1_x64
4
- ITK-cp36-cp36m-manylinux1_x64
5
- ITK-cp37-cp37m-manylinux1_x64
6
- ITKPythonBuilds-linux.tar
7
- ITKPythonBuilds-linux.tar.zst
8
- ITKPythonPackage/
9
- OpenCL-ICD-Loader-build/
10
- OpenCL-ICD-Loader/
11
- dist/
12
- doxygen-1.8.11.linux.bin.tar.gz
13
- itk_elastix_opencl.egg-info/
14
- standalone-x64-build
15
- tools/
16
- zstd-1.2.0-linux.tar
17
- zstd-1.2.0-linux/
18
- .ipynb_checkpoints/
19
- examples/Parameters.*.txt
20
- node_modules/
21
- wasi-build
22
- emscripten-build
23
- wasm/typescript/demo/
24
- wasm/test
@@ -1 +0,0 @@
1
- __version__ = "0.2.2"