forked from netket/netket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (117 loc) · 2.92 KB
/
Copy pathpyproject.toml
File metadata and controls
129 lines (117 loc) · 2.92 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
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "NetKet"
description="Netket : Machine Learning toolbox for many-body quantum systems."
authors=[
{name = "Giuseppe Carleo"},
{name = "Filippo Vicentini"},
{name = "The NetKet authors"},
]
license = {text= "Apache 2.0"}
readme = "README.md"
keywords = ["Machine Learning",
"Quantum",
"Neural Networks",
"Neural Quantum States",
"Jax",
"Monte Carlo"]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Topic :: Scientific/Engineering :: Physics",
]
dynamic = ["version"]
requires-python = ">=3.7"
dependencies = [
"numpy~=1.20",
"scipy>=1.5.3, <2",
"tqdm>=4.60, <5",
"plum-dispatch>=1.5.1, <2",
"numba>=0.52, <0.57",
"igraph>=0.9.8, <0.11.0",
"jax>=0.3.16, <0.4",
"jaxlib>=0.3.15, <0.4",
"flax>=0.6, <0.7",
"orjson>=3.4, <4",
"optax>=0.1.3, <0.2",
"numba4jax>=0.0.10, <0.1",
]
[project.optional-dependencies]
mpi = [
"mpi4py>=3.0.1, <4",
"mpi4jax>=0.3.9, <0.4"
]
extra = [
"tensorboardx>=2.0.0",
"openfermion>=1.0.0",
"h5py>=3.7.0",
]
dev = [
"pytest>=6",
"pytest-xdist[psutil]>=2",
"pytest-cov>=2.10.1",
"pytest-json-report>=1.3",
"coverage>=5",
"networkx>=2.4, <3",
"pre-commit>=2.7",
"black==22.10.0",
"flake8==5.0.4",
"wheel",
"build",
]
[project.urls]
homepage = "https://www.netket.org"
documentation = "https://netket.readthedocs.io/en/latest/#"
repository = "https://github.com/netket/netket"
changelog = "https://netket.readthedocs.io/en/latest/docs/changelog.html"
[tool.hatch.build]
include = ["netket*"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "netket/_version.py"
# Development tools
[tool.black]
line-length = 88
target-version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.coverage.run]
branch = true
parallel = true
concurrency = ["multiprocessing"]
command_line = "-m pytest --verbose test"
source = ["netket"]
[tool.pytest.ini_options]
addopts = "--color=yes --verbose --durations=100 -n auto --tb=short"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL NUMBER"
filterwarnings = [
"ignore::UserWarning",
"ignore:No GPU/TPU found, falling back to CPU.:UserWarning",
"ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning",
"ignore:`np.long`",
"ignore:`np.int` is a deprecated alias for the builtin `int`",
"ignore::DeprecationWarning:tensorboardX",
]
testpaths = [
"test",
]