-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
134 lines (122 loc) · 3.68 KB
/
pyproject.toml
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
[build-system]
requires = ["scikit-build-core>=0.3.3", "pybind11", "setuptools_scm[toml]>=8.0"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
logging.level = "INFO"
wheel.exclude = ["PyMieSim/cpp"]
install.strip = false
sdist.include = ["PyMieSim/binary/*"]
sdist.exclude = [
"tests",
"docs",
".git*",
"developments",
]
[tool.setuptools_scm]
write_to = "PyMieSim/_version.py"
version_scheme = "only-version"
local_scheme = "no-local-version"
[project]
name = "PyMieSim"
dynamic = ["version"]
description = "A package for light scattering 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 = "[email protected]" }
]
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 :: 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 = [
"setuptools_scm[toml] ~=8.0",
"flexparser <0.5", # This is due to a dataclass inheritance problem coming from the pint package
"numpy >=1.26,<3.0",
"pydantic >=2.9.2,<2.12.0",
"pint-pandas ~=0.6",
"PyOptik ~=1.8",
"tabulate ~=0.9",
"pyvista ==0.44.2"
]
# Keywords for better discoverability
keywords = [
"mie", "scattering", "backscatter", "sphere", "cylinder", "nanoparticle",
"phase function", "efficiency", "rayleigh", "backscattering"
]
[project.optional-dependencies]
testing = [
"pytest>=0.6",
"pytest-cov>=2.0",
"pytest-json-report==1.5.0",
"coverage==7.7.1"
]
documentation = [
"numpydoc==1.8.0",
"sphinx>=5.1.1",
"sphinx-rtd-theme==3.0.2",
"sphinx-gallery==0.19.0",
"pydata-sphinx-theme==0.16.1"
]
dev = [
"flake8==7.2.0"
]
[tool.pytest.ini_options]
minversion = "6.0"
xfail_strict = true
log_cli_level = "INFO"
addopts = [
"-v", "-rA", "-rw", "--cov=PyMieSim", "--cov-report=html", "--cov-report=term"
]
testpaths = [
"tests/single/*",
"tests/experiment/*",
"tests/validation/*",
"tests/extra/*"
]
[tool.cibuildwheel]
build-frontend = "build"
before-test = ""
test-command = "python -m pytest -rA {project}/tests --ignore={project}/tests/gui"
test-extras = ["testing"]
[tool.cibuildwheel.linux]
archs = ["x86_64"]
build = ["cp310-manylinux*", "cp311-manylinux*", "cp312-manylinux*"]
manylinux-x86_64-image = "manylinux2014"
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
[tool.cibuildwheel.macos]
archs = ["arm64"]
build = ["cp310-*", "cp311-*", "cp312-*"]
repair-wheel-command = "delocate-wheel -w {dest_dir} -v {wheel}"
[tool.cibuildwheel.windows]
archs = ["AMD64"]
build = ["cp310-*", "cp311-*", "cp312-*"]
[tool.coverage.run]
source = ["PyMieSim"]
omit = [
"PyMieSim/gui/*",
"*__init__.py",
"PyMieSim/__main__.py",
"PyMieSim/_version.py",
"PyMieSim/directories.py"
]
branch = true
relative_files = true