Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (139 loc) · 3.59 KB
/
Copy pathpyproject.toml
File metadata and controls
152 lines (139 loc) · 3.59 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[project]
name = "foldedtensor"
description = "PyTorch extension for handling deeply nested sequences of variable length"
authors = [
{ name = "Perceval Wajsbürt", email = "perceval.wajsburt@aphp.fr" },
]
license = { file = "LICENSE" }
readme = "README.md"
urls.homepage = "https://github.com/aphp/foldedtensor/"
urls.repository = "https://github.com/aphp/foldedtensor/"
dynamic = ["version"]
requires-python = ">=3.7.1,<4.0"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: C++",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"torch>1.0.0",
"numpy",
]
[project.optional-dependencies]
dev = [
"black==22.6.0",
"pre-commit>=2.18",
"pytest==7.1.1",
"pytest-cov==3.0.0",
]
[tool.setuptools.dynamic]
version = { attr = "foldedtensor.__version__" }
[tool.setuptools.packages.find]
where = ["."]
exclude = ["scripts*"]
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = true
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 10
exclude = ["docs", "build", "tests"]
verbose = 0
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.coverage.run]
concurrency = ["multiprocessing"]
parallel = true
include = ['foldedtensor/*']
[tool.coverage.report]
include = ['foldedtensor/*']
precision = 2
omit = [
"tests/*",
]
exclude_lines = [
"def __repr__",
"if __name__ == .__main__.:",
"@overload",
"pragma: no cover",
"raise .*Error",
"raise .*Exception",
"warn\\(",
"if __name__ == .__main__.:",
"if repr_id in exclude:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[build-system]
# Numpy >=1.25 only supports Python 3.9 and above
requires = [
"setuptools",
"pybind11>=2.10.4",
"oldest-supported-numpy; python_version<'3.9'",
"numpy>=2.0; python_version>='3.9'",
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
skip = [
"*p36-*", # Skip Python 3.6
"pp*", # Skip PyPy
"*-win32", # Skip 32-bit Windows
"*-manylinux_i686", # Skip 32-bit Linux
"*-win_arm64", # Skip experimental Windows on ARM
"*-musllinux*", # Skip slow Linux
"*-manylinux_aarch64", # Skip slow Linux
"*-manylinux_ppc64le", # Skip slow Linux
"*-manylinux_s390x", # Skip slow Linux
]
[tool.ruff]
fix = true
exclude = [
".git",
"__pycache__",
".mypy_cache",
".pytest_cache",
".venv",
"build",
]
ignore = []
line-length = 88
select = [
"E",
"F",
"W",
"I001"
]
fixable = ["E", "F", "W", "I"]
[tool.ruff.isort]
known-first-party = ["foldedtensor"]
known-third-party = ["build"]