-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
118 lines (107 loc) · 2.25 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
[project]
name = "access_nri_intake"
authors = [
{ name = "ACCESS-NRI" },
]
description = "Intake catalog managed by ACCESS-NRI and associated tools"
readme = "README.rst"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dependencies = [
"cftime",
"ecgtools>=2023.7.13",
"intake>=0.7.0",
"intake-dataframe-catalog>=0.2.4",
"intake-esm>=2023.11.10",
"jsonschema",
"pooch",
"xarray",
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest",
"tox",
]
[project.scripts]
catalog-build = "access_nri_intake.cli:build"
metadata-validate = "access_nri_intake.cli:metadata_validate"
metadata-template = "access_nri_intake.cli:metadata_template"
[project.entry-points."intake.catalogs"]
access_nri = "access_nri_intake.data:data"
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0.0",
"versioneer[toml]",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
access_nri_intake = [
"data/catalog.yaml",
"data/metadata_schema_experiment.json",
"data/metadata_schema_file.json",
]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "src/access_nri_intake/_version.py"
versionfile_build = "access_nri_intake/_version.py"
tag_prefix = "v"
parentdir_prefix = "access-nri-intake-"
[tool.coverage.run]
omit = [
"*/_version.py",
"*/data/__init__.py",
]
[tool.ruff]
target-version = "py39"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# E402: module level import not at top of file
# E501: line too long - let black worry about that
ignore = [
"E402",
"E501",
]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I",
# Pyupgrade
"UP",
]
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.isort]
known-first-party = ["access_nri_intake"]