forked from GridTools/gt4py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
226 lines (198 loc) · 5.06 KB
/
setup.cfg
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# This file is mainly used to configure package creation with setuptools.
# Documentation:
# http://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
#
# Additionally, it stores settings of other development tools (linters, type checkers, etc..
[metadata]
name = gt4py
author = ETH Zurich
author_email = [email protected]
description = Python API to develop performance portable applications for weather and climate
license = gpl3
license_files = LICENSE.txt
long_description = file: README.rst
long_description_content_type = text/x-rst; charset=UTF-8
url = https://gridtools.github.io/
project_urls =
Source Code = https://github.com/GridTools/gt4py
platforms = Linux, Mac
# From: https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Operating System :: POSIX
Programming Language :: Python
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Atmospheric Science
Topic :: Scientific/Engineering :: Mathematics
Topic :: Scientific/Engineering :: Physics
[options]
zip_safe = False
packages = find:
package_dir =
=src
include_package_data = True
python_requires = >= 3.8
install_requires =
attrs>=20.3
black>=19.3b0
cached-property>=1.5
click>=7.1
jinja2>=2.10
numpy>=1.15
scipy>=1.4
packaging>=20.0
pybind11>=2.5
tabulate>=0.8
typing-extensions>=3.7
# ---- eve / gtc ----
boltons>=20.0
cytoolz>=0.11
devtools>=0.5
mako>=1.1
networkx>=2.4
pydantic>=1.5
toolz>=0.11
typing_inspect>=0.6.0
xxhash>=1.4.4
[options.packages.find]
where = src
exclude =
tests
[options.extras_require]
# Add here additional requirements for extra features, to install with:
# `pip install gt4py[cuda90]` like:
cuda =
cupy
cuda90 =
cupy-cuda90
cuda91 =
cupy-cuda91
cuda92 =
cupy-cuda92
cuda100 =
cupy-cuda100
cuda101 =
cupy-cuda101
cuda102 =
cupy-cuda102
dace =
dace==0.13
format =
clang-format>=9.0
testing =
hypothesis>=4.14
pytest~=6.1
tox~=3.14
[options.entry_points]
# CLI entry points to be installed
console_scripts =
gtpyc = gt4py.cli:gtpyc
#---- Development tools ----
#-- coverage --
[coverage:run]
branch = True
source_pkgs =
eve
[coverage:paths]
source =
src/
.tox/*/site-packages/
[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
ignore_errors = True
[coverage:html]
directory = tests/_reports/coverage_html
#-- flake8 --
[flake8]
# Some sane defaults for the code style checker flake8
max-line-length = 100
max-complexity = 15
doctests=true
ignore =
B008 # Do not perform function calls in argument defaults
D1 # Public code object needs docstring
DAR # Disable dargling errors by default
E203 # Whitespace before ':' (black formatter breaks this sometimes)
E501 # Line too long (using Bugbear's B950 warning)
W503 # Line break occurred before a binary operator
exclude =
.eggs
.gt_cache
.ipynb_checkpoints
.tox
_local_
build
dist
docs
_external_src
tests/_disabled
setup.py
rst-roles=
py:mod, mod,
py:func, func,
py:data, data,
py:const, const,
py:class, class,
py:meth, meth,
py:attr, attr,
py:exc, exc,
py:obj, obj,
#-- isort --
[tool:isort]
skip_glob =
*.venv/**
_local/**
line_length = 100
force_grid_wrap = 0
include_trailing_comma = true
multi_line_output = 3
use_parentheses = true
lines_after_imports = 2
default_section = THIRDPARTY
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_first_party = eve,gtc,gt4py,tests,__externals__,__gtscript__
known_third_party = attr,black,boltons,cached_property,click,dace,devtools,factory,hypothesis,jinja2,mako,networkx,numpy,packaging,pkg_resources,pybind11,pydantic,pytest,pytest_factoryboy,setuptools,tabulate,typing_extensions,xxhash
#-- mypy --
[mypy]
follow_imports = silent
ignore_missing_imports = True
show_column_numbers = True
show_error_codes = True
# TODO enable in a next step
#allow_redefinition = True
#strict_optional = True
#warn_return_any = True
#warn_unused_configs = True
#warn_unused_ignores = True
[mypy-eve.*]
allow_untyped_defs = False
[mypy-gtc.*]
allow_untyped_defs = False
#-- pytest --
[tool:pytest]
# Set coverage options but do not run it by default (only tox does)
addopts = --cov-config=setup.cfg --cov-report html
markers =
lit_suite: pytest item running a LLVM-lit test suite
norecursedirs =
dist
build
_local*
.*
testpaths = tests
#-- sphinx --
#[build_sphinx]
#source_dir = docs
#build_dir = build/sphinx
#warning-is-error = True