-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (115 loc) · 3.49 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (115 loc) · 3.49 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
[build-system]
requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "jupyter-builder>=1.0.2", "hatch-jupyter-builder>=0.5", "hatch-nodejs-version>=0.3.2"]
build-backend = "hatchling.build"
[project]
name = "eodag_labextension"
dynamic = ["version", "description", "authors", "urls"]
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.10"
keywords = ["Jupyter", "JupyterLab", "JupyterLab4"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 4",
]
dependencies = [
"jupyterlab~=4.0",
"tornado>=6.4.1,<7.0.0",
"eodag[notebook]~=4.0,>=4.8.0",
"orjson",
"pydantic",
"pydantic-settings",
"python-dotenv",
]
[project.optional-dependencies]
dev = [
"black",
"Flake8-pyproject",
"flake8",
"pre-commit",
"pydocstyle",
"pytest",
"shapely",
"toml",
]
[tool.hatch.version]
source = "regex"
path = "package.json"
pattern = '"version":\s*"(?P<version>[^"]+)"'
[tool.hatch.metadata.hooks.nodejs]
fields = ["description", "authors", "urls"]
[tool.hatch.build.targets.sdist]
include = [
"/CHANGES.md",
"/CONTRIBUTING.md",
"/LICENSE",
"/NOTICE",
"/README.md",
"/eodag_labextension",
"/install.json",
"/jupyter-config",
"/package.json",
"/pyproject.toml",
"/schema",
"/src",
"/style",
"/tests",
"/tsconfig.json",
"/yarn.lock",
]
exclude = [".github", "binder", "lib", "node_modules"]
[tool.hatch.build.targets.wheel.shared-data]
"eodag_labextension/labextension" = "share/jupyter/labextensions/eodag-labextension"
"install.json" = "share/jupyter/labextensions/eodag-labextension/install.json"
"jupyter-config/jupyter_notebook_config.d/eodag_labextension.json" = "etc/jupyter/jupyter_notebook_config.d/eodag_labextension.json"
"jupyter-config/jupyter_server_config.d/eodag_labextension.json" = "etc/jupyter/jupyter_server_config.d/eodag_labextension.json"
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder>=0.5"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["eodag_labextension/labextension/package.json"]
skip-if-exists = ["eodag_labextension/labextension/package.json"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build:prod"
npm = ["jlpm"]
[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
build_cmd = "build"
npm = ["jlpm"]
source_dir = "src"
build_dir = "eodag_labextension/labextension"
[tool.black]
line-length = 120
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
known_third_party = ["eodag", "jupyter_server", "notebook", "tornado"]
[tool.flake8]
max-line-length = 120
extend-ignore = ["E203"]
exclude = ["jupyterhub_config.py"]
[tool.pydocstyle]
inherit = false
select = ["D1"]
match = "(?!test).*\\.py"
[tool.semantic_release.branches.main]
match = "(master|develop|new-release)"
[tool.semantic_release.changelog]
exclude_commit_patterns = [
'''build: bump version.+''',
]
mode = "update"
insertion_flag = "# Release history"
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGES.md"
output_format = "md"