forked from danse-inelastic/histogram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (57 loc) · 1.81 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
[project]
name = "histogram-dev"
description = "The histogram python package provides a simple yet fundamental data structure for scientific computing histogram"
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
"numpy == 1.26.4"
]
license = { text = "MIT" }
keywords = ["neutrons", "histogram", "python"]
readme = "README.md"
[project.urls]
homepage = "https://github.com/neutrons/histogram-dev" # if no homepage, use repo url
repository = "https://github.com/neutrons/histogram-dev"
documentation = "https://histogram-dev.readthedocs.io"
[build-system]
requires = [
"setuptools>=42",
"versioningit"
]
build-backend = "setuptools.build_meta"
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.1"
[tool.versioningit.next-version]
method = "minor"
[tool.versioningit.format]
distance = "{next_version}.dev{distance}"
dirty = "{version}+d{build_date:%Y%m%d}"
distance-dirty = "{next_version}.dev{distance}+d{build_date:%Y%m%d%H%M}"
[tool.versioningit.write]
file = "src/histogram/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["src/histogram/scripts/Make.mm"]
[tool.coverage.run]
omit = [
"src/histogram/_version.py"
]
source = [
"src"
]
[project.scripts]
histogram-cli = "histogram.Histogram:main"
# pytest.ini
[tool.pytest.ini_options]
log_cli = true
log_file_format = "%(asctime)s [%(levelname)8s] (%(path)s:%(lineno)s) %(message)s"
norecursedirs = [".svn","_build"] # ignore tests in ndarray due to missing stdVector module not found
testpaths =[
"tests"
]
python_files = ["*_TestCase.py","histogramTest_*.py"] #manually run python alltests.py will also return 145 tests
filterwarnings =[
"ignore: Matplotlib is currently using ps, which is a non-GUI backend, so cannot show the figure.",
"ignore: FigureCanvasPS is non-interactive, and thus cannot be shown"
]