pyproject.toml 1.89 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
    "pyyaml==6.0",
43
44
    "build",
    "twine",
45
46
47
48
]

# [tool.setuptools.packages.find]
# include = ["nerfacc", "scripts"]
49
50
51
52

[tool.black]
line-length = 80

Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
53
54
55
56
57
[tool.isort]
multi_line_output = 3
line_length = 80
include_trailing_comma = true

58
59
60
61
[tool.pylint.messages_control]
max-line-length = 80
generated-members = ["numpy.*", "torch.*", "cv2.*", "cv.*"]
good-names-rgxs = "^[_a-zA-Z][_a-z0-9]?$"
62
ignore-paths = ["^tests/.*$", "examples/pycolmap"]
63
64
jobs = 0
disable = [
65
66
67
  "duplicate-code",
  "fixme",
  "logging-fstring-interpolation",
68
  "too-many-arguments",
69
70
  "too-many-branches",
  "too-many-instance-attributes",
71
  "too-many-locals",
72
  "unnecessary-ellipsis",
73
74
75
]

[tool.pytest.ini_options]
76
addopts = "-n=4 --typeguard-packages=nerfacc --disable-warnings"
77
78
79
80
81
82
83
84
85
86
87
88
testpaths = [
    "tests",
]

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

89
pythonVersion = "3.9"
90
pythonPlatform = "Linux"