-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (136 loc) · 4.7 KB
/
Copy pathpyproject.toml
File metadata and controls
146 lines (136 loc) · 4.7 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
#
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "leapp"
version = "0.7.0"
description = "LEAPP - Lightweight Export Annotations for Policy Pipelines: A Python package for tracing and exporting computational graphs from PyTorch code"
readme = "README.md"
license = "Apache-2.0"
authors = [
{name = "Frank Lai", email = "frlai@nvidia.com"}
]
maintainers = [
{name = "Frank Lai", email = "frlai@nvidia.com"}
]
keywords = ["machine-learning", "pytorch", "robotics", "policy-pipelines", "graph-export"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# dict in key insertion order is garunteeded in python 3.7+
# getting the end_lineno for ast nodes is provided in 3.8+
# __init__subclass__ is provided in 3.6+
# onnx>=1.19.0 requires python>=3.10
requires-python = ">=3.10"
dependencies = [
"torch>=2.6.0",
"PyYAML>=6.0",
"onnx>=1.19.0",
"onnxruntime>=1.20.0,<1.24; python_version < '3.11'",
"onnxruntime>=1.20.0; python_version >= '3.11'",
"onnxscript>=0.1.0",
"safetensors>=0.5.0",
# Visualization layout/render deps (Python 3.11+ only; skipped on 3.10).
"fast-sugiyama>=0.5.3; python_version >= '3.11'",
"Pillow>=10.0.0; python_version >= '3.11'",
]
[project.optional-dependencies]
dev = [
"pytest",
"black",
"flake8",
"mypy",
]
warp = [
"warp-lang>=1.16",
]
test = [
"warp-lang>=1.16",
]
warp-cu12 = [
"warp-lang>=1.16",
"cupti-python>=12.8,<13; sys_platform == 'linux'",
"onnxruntime-gpu[cuda,cudnn]>=1.20.0,<1.24; python_version < '3.11'",
"onnxruntime-gpu[cuda,cudnn]>=1.20.0,<1.27; python_version >= '3.11'",
]
warp-cu13 = [
"warp-lang>=1.16",
"cupti-python>=13,<14; sys_platform == 'linux'",
"onnxruntime-gpu[cuda,cudnn]>=1.27.0; python_version >= '3.11'",
]
[tool.uv]
conflicts = [
[
{ extra = "warp-cu12" },
{ extra = "warp-cu13" },
],
]
[project.urls]
Homepage = "https://nvidia-isaac.github.io/leapp/"
Repository = "https://github.com/nvidia-isaac/leapp"
Issues = "https://github.com/nvidia-isaac/leapp/issues"
[tool.setuptools]
include-package-data = true
zip-safe = false
script-files = [
"scripts/leapp-build-warp-runtime",
]
[tool.setuptools.packages.find]
# Include internal visualization modules shipped with leapp.
where = [".", "packages/leapp-visualization/src"]
include = ["leapp*", "leapp_visualization*"]
exclude = ["tests*"]
[tool.setuptools.package-data]
# Include all files specified in MANIFEST.in
"*" = ["*.md", "*.txt", "LICENSE"]
"leapp" = ["*.py"]
"leapp.leapp_graph.custom_operator_registry.warp_operator" = [
"runtime/CMakeLists.txt",
"runtime/README.md",
"runtime/core/*.cc",
"runtime/core/*.h",
"runtime/onnx/*.cc",
"runtime/torch/*.cc",
]
[tool.setuptools.exclude-package-data]
"leapp.leapp_graph.custom_operator_registry.warp_operator" = [
"runtime/build/*",
]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::UserWarning",
"ignore:The feature will be removed.*:DeprecationWarning:torch.onnx",
"ignore:The TorchScript type system doesn't support instance-level annotations:Warning",
"ignore:You are using the legacy TorchScript-based ONNX export:Warning",
"ignore:`torch.jit.script` is deprecated:DeprecationWarning",
"ignore:`torch.jit.trace` is deprecated:DeprecationWarning",
"ignore:`torch.jit.trace_method` is deprecated:DeprecationWarning",
"ignore:`torch.jit.load` is deprecated:DeprecationWarning",
"ignore:`isinstance\\(treespec, LeafSpec\\)` is deprecated:FutureWarning",
"ignore:`torch.jit.save` is deprecated:DeprecationWarning",
"ignore:`torch.jit.freeze` is deprecated:DeprecationWarning",
]