-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
85 lines (71 loc) · 2.32 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
[build-system]
requires = ["setuptools>=61.0", "versioningit~=3.0"]
build-backend = "setuptools.build_meta"
[project]
name = "modelforge"
description = "Infrastructure to implement and train NNPs"
dynamic = ["version"]
readme = "README.md"
authors = [
{ name = "Marcus Wieder", email = "[email protected]" },
{ name = "Christopher Iacovella", email = "[email protected]" },
]
license = { text = "MIT" }
# See https://pypi.org/classifiers/
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Operating System :: POSIX :: Linux",
"Environment :: GPU",
"Environment :: GPU :: NVIDIA CUDA",
]
requires-python = ">=3.10"
[project.urls]
Source = "https://github.com/choderalab/modelforge"
Documentation = "https://modelforge.readthedocs.io/"
Wiki = "https://github.com/choderalab/modelforge/wiki"
[tool.setuptools]
# Disable zipping because mypy cannot read zip imports and this may affect downstream development.
# https://mypy.readthedocs.io/en/stable/installed_packages.html?highlight=zip#using-installed-packages-with-mypy-pep-561
# NOTE: We might consider removing this once we can test the code in a
# production environment since zipping the package may increase performance.
zip-safe = false
include-package-data = true
[tool.setuptools.packages.find]
namespaces = false
where = ["."]
# Ref https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data
[tool.setuptools.package-data]
modelforge = [
"py.typed"
]
# https://versioningit.readthedocs.io/en/stable/configuration.html#
[tool.versioningit]
default-version = "1+unknown"
[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
[tool.versioningit.vcs]
method = "git"
match = ["*"]
default-tag = "1.0.0"
[tool.versioningit.write]
file = "modelforge/_version.py"
[tool.coverage.run]
# .coveragerc to control coverage.py and pytest-cov
omit = [
# Omit the tests
"*/tests/*",
# Omit generated versioningit
"modelforge/_version.py"
]
[tool.flake8]
max-line-length = 88
extend-ignore = ['E203',]
[tool.isort]
profile = "black"
[tool.black]
line-length = 88