-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (133 loc) · 3.91 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (133 loc) · 3.91 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
147
148
149
150
151
# pyproject.toml
[build-system]
requires = [
"numpy",
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2"
]
# enable setuptools_scm version
[tool.setuptools_scm]
[tool.setuptools]
packages = [
"cars_edge_detection_plugin",
"cars_edge_detection_plugin.applications",
"cars_edge_detection_plugin.applications.depth_map_generation",
"cars_edge_detection_plugin.pipelines",
"cars_edge_detection_plugin.pipelines.edge_detection",
"moge",
"moge.model",
"moge.test",
"moge.scripts",
"moge.train",
"moge.utils",
"moge.model.dinov2",
"moge.model.dinov2.models",
"moge.model.dinov2.utils",
"moge.model.dinov2.layers",
"moge.model.dinov2.hub",
"utils3d",
"utils3d.numpy",
"utils3d.numpy.io",
"utils3d.torch",
"utils3d.interface",
"pipeline",
]
[tool.setuptools.package-dir]
"" = "."
"moge" = "third_party/MoGe/moge"
"utils3d" = "third_party/MoGe/third_party/utils3d/utils3d"
"pipeline" = "third_party/MoGe/third_party/pipeline/pipeline"
# package setup main metadata
[project]
name = "cars_edge_detection_plugin"
dynamic = ["version"]
authors = [{ name = "CNES", email = "cars@cnes.fr" }]
description = "Cars plugin to use the MoGe2 model for edge detection"
readme = "README.md"
# license = "Apache License 2.0"
# license-files = ["LICENSE"]
keywords = ["cars", "3D", "DEM", "pandora", "photogrammetry", "moge2"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"Environment :: Console",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
]
requires-python = ">= 3.10"
# cars packages dependencies
dependencies = [
"numpy",
"rasterio>=1.3.0",
"huggingface-hub",
"torch",
"torchvision",
"click",
"opencv-python",
"scipy",
"matplotlib",
"moderngl",
"trimesh",
"pillow",
"gradio",
"xarray",
"json_checker"
]
[project.urls]
Documentation = "https://cars.readthedocs.io/en/latest/"
[project.optional-dependencies]
# [dev] mode dependencies: include notebook and doc
dev = [
"pytest",
"pytest-cov",
"pre-commit",
"isort>=5.8.0", # Check imports
"black>=24.1a1", # PEP8 format code
"flake8>=3.9.1", # General linter
"flake8-pyproject", # Support configuration in pyproject.toml
"flake8-comprehensions>=3.4.0", # Check list/dict/set
"flake8-bugbear>=21.4.3,<24.0.0", # Add some rules to flake8
"jupyter_contrib_nbextensions", # Clean notebooks
"pylint>=2.8.12,<3.0.0", # General linter with more rules
"setuptools_scm", # version from git tag
"virtualenv",
"configupdater",
"build", # for cars build
]
cars = [
"cars>=1.0a0,<1.1"
]
[tool.black]
# https://github.com/psf/black
line-length = 80
exclude = "(.eggs|.git|.mypy_cache|.nox|.tox|_build|build|dist|venv)"
[tool.isort]
profile = 'black'
line_length = 80
known_third_party = [ "dask" ]
[tool.flake8]
exclude = [".git", "venv", "build", "dist", "tests/test_output"]
extend-ignore = ["E203", "W503"]
max-complexity = 15
max-line-length = 80
select = ["E", "F", "W", "C", "B9", "C4", "B"]
# Specify no universal wheel supported (only Python3)
[tool.wheel]
universal = false
# entry points
[project.entry-points."cars.plugins"]
plugin = "cars_edge_detection_plugin"
# entry points cli scripts
[project.scripts]
cars-download-moge2 = "cars_edge_detection_plugin.download_models:main"
[tool.cibuildwheel]
skip = ["pp*", "*-win32"]
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"