-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (105 loc) · 3 KB
/
pyproject.toml
File metadata and controls
120 lines (105 loc) · 3 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
[build-system]
requires = ["setuptools", "wheel", "pybind11[global]>=2.13", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.usort]
first_party_detection = false
target-version = ["py310"]
excludes = [
"gallery",
"tutorials",
]
[tool.black]
line-length = 88
target-version = ["py310"]
[project]
name = "tensordict"
dynamic = ["version"]
description = "TensorDict is a pytorch dedicated tensor container."
authors = [
{ name="Vincent Moens", email="vincentmoens@gmail.com" }
]
readme = "README.md"
license = { text = "BSD" }
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Development Status :: 4 - Beta"
]
dependencies = [
"torch",
"numpy",
"cloudpickle",
"packaging",
"importlib_metadata",
# orjson fails to be installed in python 3.13t
'orjson ; python_version < "3.13"',
"pyvers (>=0.2.0,<0.3.0)",
]
[project.urls]
homepage = "https://github.com/pytorch/tensordict"
[project.optional-dependencies]
tests = [
"pytest",
"pyyaml",
"pytest-instafail",
"pytest-rerunfailures",
"pytest-benchmark"
]
h5 = ["h5py>=3.8"]
pandas = ["pandas>=1.5"]
parquet = ["pyarrow>=10.0"]
tabular = ["pandas>=1.5", "pyarrow>=10.0"]
dev = ["pybind11>=2.13", "ninja"]
typecheck = ["mypy>=1.0.0"]
onnx = ["onnx", "onnxscript", "onnxruntime"]
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
exclude = ["test*", "tutorials*", "packaging*", "gallery*", "docs*", "benchmarks*"]
#[tool.setuptools.extension]
#my_extension = { sources = ["tensordict/csrc/pybind.cpp", "tensordict/csrc/utils.cpp"] }
[tool.setuptools.package-data]
"tensordict" = ["*.so", "*.pyd", "*.dll"]
[tool.setuptools_scm]
# Use SETUPTOOLS_SCM_PRETEND_VERSION=M.Major.Minor to set the version for stable releases
version_scheme = "post-release"
# Local scheme is handled by setup.py (appends +g<sha> unless on release/v<version> branch)
local_scheme = "no-local-version"
version_file = "tensordict/_version.py"
fallback_version = "0.11.0"
[tool.mypy]
files = "tensordict"
show_error_codes = true
pretty = true
allow_redefinition = true
warn_redundant_casts = true
# Be more lenient with type checking
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = false
disallow_untyped_decorators = false
no_implicit_optional = false
warn_unused_ignores = true
warn_return_any = false
warn_unreachable = true
strict_equality = false
# Ignore missing imports for external libraries
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "torch.*"
ignore_errors = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "torchvision.*"
ignore_errors = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "numpy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "scipy.*"
ignore_missing_imports = true