forked from CBZ199671/PyEIDORS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (105 loc) · 2.99 KB
/
pyproject.toml
File metadata and controls
114 lines (105 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pyeidors"
version = "0.1.0"
description = "PyEIDORS - A FEniCS-based Framework for Forward and Inverse Problems in Electrical Impedance Tomography (EIT)"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GPL-3.0-only"}
authors = [
{name = "BingZhou Chen", email = "b20223080651@cau.edu.cn"},
]
keywords = ["EIT", "EIDORS", "FEniCS", "inverse problems", "medical imaging", "pytorch"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Plants/Animals Science Apps",
]
dependencies = [
"numpy~=1.26.4", # Compatible with numpy 1.26.x
"scipy~=1.12.0", # Compatible with scipy 1.12.x
"matplotlib~=3.5.0", # Compatible with matplotlib 3.5.x
"pandas~=2.3.0",
"h5py~=3.11.0",
"pyyaml~=5.4.1", # FEniCS 2019.2.0.dev0 depends on PyYAML 5.4.1
]
[project.optional-dependencies]
torch = [
"torch~=2.7.1", # PyTorch and related packages
"torchvision~=0.22.1",
"torchaudio~=2.7.1",
]
cuqi = [
"CUQIpy~=1.3.0",
"CUQIpy-FEniCS~=0.8.0",
]
# Development dependencies
dev = [
"pytest>=6.2.0",
"pytest-cov>=3.0.0",
"black>=22.0.0",
"flake8>=4.0.0",
"pre-commit>=2.15.0"
]
# Documentation dependencies
docs = [
"sphinx>=4.0.0",
"sphinx-rtd-theme>=1.0.0",
"jupyter>=1.0.0",
"nbsphinx>=0.8.0"
]
# Visualization extras
viz = [
"mayavi>=4.7.0",
"pyvista>=0.37.0",
"vtk>=9.0.0"
]
[project.urls]
Homepage = "https://github.com/CBZ199671/PyEIDORS"
Documentation = "https://github.com/CBZ199671/PyEIDORS#readme"
Repository = "https://github.com/CBZ199671/PyEIDORS.git"
"Bug Tracker" = "https://github.com/CBZ199671/PyEIDORS/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
pyeidors = ["*.yaml", "*.yml", "data/*"]
[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=src/pyeidors --cov-report=html --cov-report=term-missing"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests that require GPU",
"fenics: marks tests that require FEniCS",
"cuqi: marks tests that require CUQIpy",
]
[tool.flake8]
max-line-length = 88
extend-ignore = ["E203", "W503"]
exclude = [".git", "__pycache__", "docs/source/conf.py", "old", "build", "dist"]