Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (146 loc) · 4.82 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (146 loc) · 4.82 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = [
"scikit-build-core>=0.3.3",
"pybind11; python_version < '3.14'",
"pybind11>=3.0.1; python_version >= '3.14'",
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
build-dir = ".skbuild/{wheel_tag}"
logging.level = "INFO"
# Keep the Python package and the CMake-built extension in the same wheel.
# Extensions are installed by CMake into their Python package locations;
# this mapping includes the surrounding Python sources.
wheel.packages = ["PyMieSim"]
install.strip = false
sdist.include = [
"cpp/**/*.cpp",
"cpp/**/*.h",
"cpp/**/*.for",
"cpp/**/*.f90",
"cpp/**/CMakeLists.txt",
]
sdist.exclude = [
"tests",
"docs",
".git*",
"developments",
]
[project]
name = "PyMieSim"
version = "6.1.3"
description = "A package for light scattering (Mie) computation."
license = { file = "LICENSE" }
readme = "README.rst"
urls = {"Documentation" = "https://martinpdes.github.io/PyMieSim/", "Repository" = "https://github.com/MartinPdeS/PyMieSim"}
requires-python = ">=3.10"
authors = [
{ name = "Martin Poinsinet de Sivry-Houle", email = "martin.poinsinet.de.sivry@gmail.com" }
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Framework :: Jupyter",
"Framework :: Sphinx"
]
dependencies = [
"TypedUnit>=0.2.9",
"MPSPlots ==1.8.9",
"PyOptik ==3.5.1",
"numpy ==2.2.6; python_version < '3.14'",
"numpy ==2.3.3; python_version >= '3.14'",
"matplotlib ==3.10.9",
"pandas ~=2.3.0",
]
keywords = [
"mie",
"scattering",
"backscatter",
"sphere",
"cylinder",
"nanoparticle",
"phase function",
"efficiency",
"rayleigh",
"backscattering"
]
[project.optional-dependencies]
release = ["martinpdes-maintenance==0.2.2"]
testing = [
"tomli>=2; python_version < '3.11'",
"pytest>=8.0",
"pytest-cov>=5.0",
"pytest-json-report==1.5.0",
"coverage==7.16.2",
]
documentation = [
"MartinPdeS-docs>=0.3.2,<0.4",
]
dev = [
"mypy>=1.11,<2",
"flake8==7.4.1",
"ruff==0.16.9",
]
[tool.ruff]
target-version = "py310"
line-length = 300
extend-exclude = ["development", "docs", "build", "htmlcov"]
[tool.ruff.lint]
select = ["E9", "F63", "F7", "F82"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["F401"]
[tool.cibuildwheel]
build-frontend = "build"
test-extras = ["testing"]
before-test = 'python -m pip install "pint<0.26" PyOptik==3.5.1 && python -m PyOptik setup --no-progress'
[tool.cibuildwheel.linux]
archs = ["x86_64"]
build = ["cp311-manylinux*", "cp312-manylinux*", "cp313-manylinux*", "cp314-manylinux*"]
manylinux-x86_64-image = "manylinux_2_28"
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
test-command = "python -m pytest {project}/tests --config-file={project}/pytest.ini --ignore={project}/tests/extra/test_system_plot.py --ignore={project}/tests/single/representation.py"
# test-command = "cd {project}; python -m pytest --config-file=pytest.ini --ignore=tests/extra/test_system_plot.py --ignore=tests/single/representation.py"
[tool.cibuildwheel.macos]
archs = ["arm64"]
build = ["cp311-*", "cp312-*", "cp313-*", "cp314-*"]
environment = "CC=/usr/bin/clang CXX=/usr/bin/clang++ FC=/opt/homebrew/bin/gfortran-15"
before-build = "brew install libomp"
repair-wheel-command = "delocate-wheel -w {dest_dir} -v {wheel}" # --exclude=libomp.dylib
test-command = 'python -m pytest {project}/tests --config-file={project}/pytest.ini' # DYLD_PRINT_LIBRARIES=NO
[tool.cibuildwheel.windows]
archs = ["AMD64"]
build = ["cp311-*", "cp312-*", "cp313-*", "cp314-*"]
test-command = 'python -m pytest {project}/tests --config-file={project}/pytest.ini'
[tool.mypy]
files = [
"PyMieSim/single/api.py",
"PyMieSim/experiment/setup.py",
"PyMieSim/results.py",
"PyMieSim/measures.py",
"PyMieSim/experiment/distributions.py",
"tests/typing/public_api.py",
]
follow_imports = "silent"
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_defs = true
[tool.mps-maintenance]
version-file = "PyMieSim/_version.py"
version-method = "literal"
conda-recipe = "conda.recipe/meta.yaml"
zenodo = ".zenodo.json"