forked from paaube/PyOptik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
95 lines (82 loc) · 2.06 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
[build-system]
requires = ["setuptools>=40.8.0", "wheel", "setuptools_scm[toml]>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name = "PyOptik"
dynamic = ["version"]
description = "A package for refractive index values."
license = {file = "LICENSE"}
readme = "README.rst"
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 :: Implementation :: CPython',
'Development Status :: 4 - Beta',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
]
keywords = ["refracive index", "optics"]
dependencies = [
"flexparser <0.4", # This is due to a dataclass inheritance problem coming from the pint package
"pint ~=0.24",
"pydantic ~=2.9",
"numpy ~=1.26",
"matplotlib ~=3.8",
"requests ~=2.31",
"pyyaml ~=6.0",
"MPSPlots ~=1.5.1",
"tabulate ~=0.9",
]
[tool.setuptools]
packages = {find = {where = ["."], include = ["PyOptik*"]}}
include-package-data = true
[tool.setuptools_scm]
write_to = "PyOptik/_version.py"
version_scheme = "only-version"
local_scheme = "no-local-version"
[project.optional-dependencies]
testing = [
"pytest >=7.4,<9.0",
"pytest-cov >=2,<6",
"pytest-json-report ~=1.5",
"coverage ~=7.6"
]
documentation = [
"numpydoc ==1.6.0",
"sphinx >=5.1.1",
"sphinx-gallery ==0.15.0",
"sphinx-rtd-theme ==2.0.0",
"pydata-sphinx-theme ==0.14.1",
]
dev = [
"flake8 ==7.1.1",
]
[tool.pytest.ini_options]
python_functions = "test*"
minversion = "6.0"
xfail_strict = true
log_cli_level = "INFO"
testpaths = [
"tests/*",
]
addopts = [
'-v',
'-rA',
'-rw',
'-Werror',
'--cov=PyOptik',
'--cov-report=html',
"--cov-report=term"
]
[tool.coverage.run]
source = ['PyOptik']
omit = [
'*/__init__.py',
'*/_version.py',
'*/directories.py',
]
branch = true
relative_files = true