-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
109 lines (91 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "cpctools"
description = "A package for analysing molecular systems"
readme = "Readme.md"
requires-python = "<3.11,>=3.8"
license = "MIT"
keywords = ["SOAP", "Molecular Dynamics", "simulation", "simulation analysis"]
authors = [{ name = "Daniele Rapetti", email = "[email protected]" }]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"ase==3.22.1",
"MDAnalysis==2.4.2",
"h5py==3.8.0",
"Deprecated==1.2.13",
"numpy<1.24,>=1.18", #problems with numba and f90wrap
]
dynamic = ["version"]
[project.optional-dependencies]
docs = [
"sphinx<6,>=4",
"docutils<0.18",
"sphinx-rtd-theme==1.2.0",
"myst-parser==0.18.1",
"sphinx-autodoc-typehints==1.22",
"nbsphinx==0.9.0",
"sphinx_gallery==0.12.2",
"ipython"
]
dscribe=["dscribe >1.2.0, <=1.2.2",]
quippy=["quippy-ase==0.9.10",]
tests = [
"coverage[toml]",
"pytest",
"pytest-cov",
]
[project.urls]
Homepage = "https://github.com/GMPavanLab/cpctools"
#TODO: define some cli scripts that can be useful!
[project.scripts]
SOAPify-prepareTrajectory = "SOAPify.cli:createTrajectory"
SOAPify-traj2SOAP = "SOAPify.cli:traj2SOAP"
[tool.hatch.version]
path = "src/SOAPify/__init__.py"
[tool.hatch.build]
sources = ["src"]
only-packages = true
#[tool.hatch.envs.default]
#skip-install = false
#this is set up to not write again the soap extra-dependencies
[tool.hatch.envs.docs]
features = [
"quippy",
"dscribe",
"docs",
]
[tool.hatch.envs.docs.scripts]
cov = 'cd docs && make coverage'
build = 'cd docs && make html'
clean = 'cd docs && make clean'
cleanbuild = 'cd docs && make clean build'
[tool.hatch.envs.livedocs]
template="docs"
extra-dependencies = [
"sphinx-autobuild",
]
[tool.hatch.envs.livedocs.scripts]
serve = 'cd docs && SPHINXBUILD=sphinx-autobuild SPHINXOPTS="-a --watch ../src/ " make html'
[tool.hatch.envs.test]
features = [
"quippy",
"dscribe",
"tests",
]
pre-install-commands = ["which python"]
[tool.hatch.envs.test.scripts]
cov = 'pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src --cov-report html'
lcov = 'pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src --cov-report lcov:coverage/lcov.info'
tools = 'pytest ./tests/test_tools.py'
#cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src --cov=tests {args} --cov-report html"
no-cov = "cov --no-cov {args}"
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10"]