-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (104 loc) · 2.69 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "nnusf"
version = "0.0.0"
description = "Predictions for all-energy neutrino structure functions"
readme = "README.md"
authors = [
"Alessandro Candido <candido.ale@gmail.com>",
"Alfonso Garcia <pochoarus@msn.com>",
"Giacomo Magni <giac.magni@gmail.com>",
"Tanjona R. Rabemananjara <tanjona.lspc@gmail.com>",
"Juan Rojo <j.rojo@vu.nl>",
"Roy Stegeman <roystegeman@live.nl>",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
repository = "https://github.com/NNPDF/nnusf"
include = [
{ path = "tests", format = "sdist" }
]
packages = [{ include = "nnusf", from = "src" },]
[tool.poetry.dependencies]
python = "^3.9,<3.11"
h5py = "^3.7.0"
PyYAML = "^6.0"
yadism = "0.12.3"
pineappl = "^0.5.0"
matplotlib = "^3.5.2"
seaborn = "0.12.2"
pandas = "^1.4.2"
rich = "^12.5.1"
scipy = "^1.8.1"
tensorflow = "<2.11.2"
pylint = "^2.14.4"
appdirs = "^1.4.4"
banana-hep = "^0.6.6"
click = "^8.1.3"
greenlet = "^1.1.2"
pendulum = "^2.1.2"
pytzdata = "^2020.1"
SQLAlchemy = "^1.4.39"
termcolor = "1.1.0"
pygit2 = "^1.10.1"
setuptools = "^65.5.1"
particle = "^0.21.2"
rich-click = "^1.6.1"
[tool.poetry.dev-dependencies]
poethepoet = "^0.10.0"
pylint = "^2.9.3"
ipython = "^8.4.0"
pdbpp = "^0.10.3"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^6.2.4"
pytest-cov = "^2.12.1"
pytest-env = "^0.6.2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
Sphinx = ">6.0"
recommonmark = "^0.7.1"
sphinxcontrib-bibtex = "^2.3.0"
sphinxcontrib-details-directive = "^0.1.0"
nbsphinx = "^0.8.6"
furo = "^2023.5.20"
m2r2 = "^0.3.3.post2"
sphinx-design = "^0.4.1"
sphinx-copybutton = "^0.5.2"
[tool.poetry.scripts]
nnu = "nnusf.cli:command"
nns = "nnusf.get:command"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
dirty = true
[tool.poetry-dynamic-versioning.substitution]
files = ["src/nnusf/__init__.py"]
[tool.poe.tasks]
coverage = "$BROWSER htmlcov/index.html"
test = "pytest -m 'not lhapdf'"
test-cov = ["test", "coverage"]
lint = "pylint src/**/*.py -E"
lint-warnings = "pylint src/**/*.py --exit-zero"
[tool.pytest.ini_options]
testpaths = ['tests/']
python_files = ['test_*.py', 'benchmark_*.py', 'regression.py']
python_classes = ['Test*']
python_functions = ['test_*']
markers = ["lhapdf: tests that require LHAPDF, and possibly PDF sets"]
addopts = [
'--cov=nnusf',
'--cov-report=html',
'--cov-report=xml',
'--strict-markers',
]