pyproject.toml 1.95 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"
Matthew Tancik's avatar
Matthew Tancik committed
7
version = "0.2.1"
8
9
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
license = { text="MIT" }
Matthew Tancik's avatar
Matthew Tancik committed
12
requires-python = ">=3.7"
Matt Tancik's avatar
Matt Tancik committed
13
dependencies = [
Matthew Tancik's avatar
Matthew Tancik committed
14
    "importlib_metadata>=5.0.0; python_version<'3.8'",
Matt Tancik's avatar
Matt Tancik committed
15
16
    "ninja>=1.10.2.3",
    "pybind11>=2.10.0",
17
    "torch>=1.12.0",
Matt Tancik's avatar
Matt Tancik committed
18
    "rich>=12"
Matt Tancik's avatar
Matt Tancik committed
19
20
]

21
22
23
24
25
26
27
# [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"
# ]

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

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

34
35
[project.optional-dependencies]
# Development packages
Ruilong Li's avatar
fix doc  
Ruilong Li committed
36
dev = [
37
38
39
40
    "black[jupyter]==22.3.0",
    "isort==5.10.1",
    "pylint==2.13.4",
    "pytest==7.1.2",
41
42
    "pytest-xdist==2.5.0",
    "typeguard>=2.13.3",
43
    "pyyaml==6.0",
44
45
    "build",
    "twine",
46
47
48
49
]

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

[tool.black]
line-length = 80

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

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

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

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

90
pythonVersion = "3.9"
91
pythonPlatform = "Linux"