-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
105 lines (94 loc) · 2.51 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
[tool.poetry]
name = "nzshm-model"
version = "0.10.6"
description = "The logic tree definitions, final configurations, and versioning of the New Zealand | Aotearoa National Seismic Hazard Model"
authors = ["Chris DiCaprio <c.dicaprio@gns.cri.nz>", "Chris Chamberlain <chrisbc@artisan.co.nz>"]
license = "AGPL3"
readme = "README.md"
packages = [
{include = "nzshm_model"},
{include = "resources"},
{include = "scripts"},
{include = "tests", format = "sdist" }
]
[tool.poetry.scripts]
slt = 'scripts.slt:slt'
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
nshm-toshi-client = {version = "^1.0.1", extras = ["toshi"], optional = true}
boto3 = {extras = ["toshi"], version = "^1.26.28", optional = true}
click = {extras = ["scripts"], version = "^8.1.3", optional = true}
dacite = "^1.6.0"
lxml = "^4.9.3"
mkdocstrings-python = "^1.8.0"
openquake-engine = {version = "^3.19.0", optional = true, extras = ["openquake"]}
numba = {version = "^0.59.0", optional = true, extras = ["openquake"]}
fiona = {version = "^1.9.6", optional = true, extras = ["openquake"]}
tomli = "^2.0.1"
[tool.poetry.extras]
toshi = [
"boto3",
"nshm-toshi-client"
]
scripts = [
"click"
]
openquake = ["openquake-engine", "numba", "fiona"]
doc = [
"mkdocs",
"mkdocs-include-markdown-plugin",
"mkdocs-material",
"mkdocstrings",
"mkdocs-material-extension",
"mkdocs-autorefs"
]
[tool.poetry.group.dev.dependencies]
black = { version = "^22.3"}
bump2version = "^1.0.1"
isort = { version = "^5.8.0"}
flake8 = { version = "^3.9.2"}
flake8-docstrings = { version = "^1.6.0", optional = true }
pytest = { version = "^6.2.4"}
pytest-cov = { version = "^2.12.0"}
tox = "^4.2.8"
mypy = "^1.8.0"
mkdocs = "^1.5.3"
mkdocs-autorefs = {version = "^0.3.1"}
mkdocs-include-markdown-plugin = "^6.0.0"
mkdocs-material = "^9.1.21"
mkdocs-material-extensions = "^1.1.1"
mkdocs-pymdownx-material-extras = "^2.0.3"
mkdocstrings = "^0.22.0"
mkdocs-click = "^0.8.1"
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ['py310', 'py38', 'py39']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[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
skip_gitignore = true
# you can skip files as below
#skip_glob = docs/conf.py
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"