pyproject.toml 2.01 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
version = "0.2.2"
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" }
Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
12
url = "https://github.com/KAIR-BAIR/nerfacc"
Matthew Tancik's avatar
Matthew Tancik committed
13
requires-python = ">=3.7"
Matt Tancik's avatar
Matt Tancik committed
14
dependencies = [
Matthew Tancik's avatar
Matthew Tancik committed
15
    "importlib_metadata>=5.0.0; python_version<'3.8'",
Matt Tancik's avatar
Matt Tancik committed
16
17
    "ninja>=1.10.2.3",
    "pybind11>=2.10.0",
18
    "torch",  # tested with 1.12.0
Matt Tancik's avatar
Matt Tancik committed
19
    "rich>=12"
Matt Tancik's avatar
Matt Tancik committed
20
21
]

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

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

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

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

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

[tool.black]
line-length = 80

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

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

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

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

91
pythonVersion = "3.9"
Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
92
pythonPlatform = "Linux"