pyproject.toml 2.28 KB
Newer Older
Matt Tancik's avatar
Matt Tancik committed
1
2
3
4
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

Ruilong Li's avatar
docs  
Ruilong Li committed
5
6
[project]
name = "nerfacc"
7
8
9
version = "0.1.5"
description = "A General NeRF Acceleration Toolbox."
readme = "README.md"
Ruilong Li's avatar
docs  
Ruilong Li committed
10
authors = [{name = "Ruilong", email = "ruilongli94@gmail.com"}]
Matt Tancik's avatar
Matt Tancik committed
11
12
13
14
15
license = { text="MIT" }
requires-python = ">=3.8"
dependencies = [
    "ninja>=1.10.2.3",
    "pybind11>=2.10.0",
16
    "torch>=1.12.0",
Matt Tancik's avatar
Matt Tancik committed
17
    "rich>=12"
Matt Tancik's avatar
Matt Tancik committed
18
19
]

20
21
22
23
24
25
26
# [options]
# equivalent to using --extra-index-url with pip, 
# which is needed for specifying the CUDA version for torch
# dependency_links = [
#     "https://download.pytorch.org/whl/cu116"
# ]

27
28
29
[tool.setuptools.package-data]
"*" = ["*.cu", "*.cpp", "*.h"]

30
31
[project.urls]
"Documentation" = "https://www.nerfacc.com/en/latest/"
32

33
34
[project.optional-dependencies]
# Development packages
Ruilong Li's avatar
fix doc  
Ruilong Li committed
35
dev = [
36
37
38
39
    "black[jupyter]==22.3.0",
    "isort==5.10.1",
    "pylint==2.13.4",
    "pytest==7.1.2",
40
41
    "pytest-xdist==2.5.0",
    "typeguard>=2.13.3",
42
43
44
45
46
47
48
49
    "pyyaml==6.0",
]
# Documentation packages
docs = [
    "pytorch_sphinx_theme @ git+https://github.com/liruilong940607/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme",
    "sphinx==5.2.1",
    "sphinx-copybutton==0.5.0",
    "sphinx-design==0.2.0"
50
]
51
52
53
54
55
56
57
58
59
60
61
# Example packages
examples = [
    "tinycudann @ git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch",
    "imageio",
    "opencv-python",
    "numpy",
    "tqdm"
]

# [tool.setuptools.packages.find]
# include = ["nerfacc", "scripts"]
62
63
64
65

[tool.black]
line-length = 80

Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
66
67
68
69
70
[tool.isort]
multi_line_output = 3
line_length = 80
include_trailing_comma = true

71
72
73
74
[tool.pylint.messages_control]
max-line-length = 80
generated-members = ["numpy.*", "torch.*", "cv2.*", "cv.*"]
good-names-rgxs = "^[_a-zA-Z][_a-z0-9]?$"
75
ignore-paths = ["^tests/.*$", "examples/pycolmap"]
76
77
jobs = 0
disable = [
78
79
80
  "duplicate-code",
  "fixme",
  "logging-fstring-interpolation",
81
  "too-many-arguments",
82
83
  "too-many-branches",
  "too-many-instance-attributes",
84
  "too-many-locals",
85
  "unnecessary-ellipsis",
86
87
88
]

[tool.pytest.ini_options]
89
addopts = "-n=4 --typeguard-packages=nerfacc --disable-warnings"
90
91
92
93
94
95
96
97
98
99
100
101
testpaths = [
    "tests",
]

[tool.pyright]
include = ["nerfacc"]
exclude = ["**/node_modules",
    "**/__pycache__",
]
ignore = ["nerfacc/cuda"]
defineConstant = { DEBUG = true }

102
pythonVersion = "3.9"
103
pythonPlatform = "Linux"