-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
154 lines (138 loc) · 3.38 KB
/
pyproject.toml
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
152
153
154
[project]
name="nrtk-explorer"
version="0.6.0"
description="Model Visualizer"
authors = [
{name = "Alessandro Genova", email = "alessandro.genova@kitware.com"},
{name = "Vicente Adolfo Bolea Sanchez", email = "vicente.bolea@kitware.com"},
]
readme = "README.md"
keywords = [
"Python",
"Interactive",
"Web",
"Application",
"Framework",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"License :: Other/Proprietary License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: JavaScript",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"accelerate",
"numpy",
"Pillow",
"pybsm>=0.6,<=0.9.0",
"scikit-learn>=1.6.0",
"smqtk_image_io",
"tabulate",
"timm>=1.0.3",
"torch",
"torchvision",
"trame>=3.7",
"trame-quasar",
"transformers",
"datasets[vision]",
"umap-learn",
"nrtk[headless]>=0.12.0,<=0.16.0",
"trame-annotations>=0.4.0",
]
[project.optional-dependencies]
kwcoco= [
"kwcoco",
]
dev = [
"black",
"flake8",
"mypy",
"pytest",
"tabulate",
"types-PyYAML",
]
package = [
"build<1.3.0",
"python-semantic-release",
"setuptools",
"wheel",
]
web = [
"trame-vtk",
"trame-vuetify",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.custom]
[project.scripts]
nrtk-explorer = "nrtk_explorer.app.main:main"
nrtk-explorer-embeddings = "nrtk_explorer.app.embeddings:main"
nrtk-explorer-transforms = "nrtk_explorer.app.transforms:main"
nrtk-explorer-filtering = "nrtk_explorer.app.filtering:main"
[tool.black]
line-length = 99
target-version = ['py39', 'py310', 'py311']
include = '''
\.pyi?$
'''
extend-exclude = '''
/(
\.git
| bundles/
| examples/
| exploration/
)/
'''
[tool.mypy]
ignore_missing_imports = true
exclude = ['^src/nrtk_explorer/__init__.py$', '^src/nrtk_explorer/app/.*']
[tool.semantic_release]
assets = []
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
commit_parser = "angular"
logging_use_named_masks = false
major_on_zero = true
allow_zero_version = true
tag_format = "v{version}"
version_variables = [
"src/nrtk_explorer/__init__.py:__version__",
]
version_toml = [
"pyproject.toml:project.version",
]
build_command = """
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install 20
node -v
npm -v
python -m venv .venv
source .venv/bin/activate
pip install -U pip
python -m pip install "build<1.3.0" python-semantic-release setuptools wheel
python -m build .
"""
[tool.semantic_release.branches.main]
match = "(release)"
prerelease_token = "rc"
prerelease = false
[semantic_release.changelog]
changelog_file = "CHANGELOG.md"
exclude_commit_patterns = []
[semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
default_bump_level = 0
[tool.semantic_release.remote.token]
env = "GH_TOKEN"
[semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true