forked from gammapy/gammapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
123 lines (111 loc) · 3.25 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
[metadata]
name = gammapy
description = A Python package for gamma-ray astronomy
long-description = file: LONG_DESCRIPTION.rst
long-description-content-type = text/x-rst
author = The Gammapy developers
author_email = gammapy@googlegroups.com
license = BSD
url = https://github.com/gammapy/gammapy
github_project = gammapy/gammapy
url_docs = https://docs.gammapy.org/dev/
platforms = any
classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: C
Programming Language :: Cython
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Astronomy
Development Status :: 3 - Alpha
# Notebooks processing in documentation building.
# The two following keys are overriden by those provided in `make docs-all` command
# The values given here are considered only if building docs with a different command
#
# To only builf RST files you can set `build_notebooks=False`
# To speed up the documentation build
build_notebooks = True
[options]
zip_safe = False
packages = find:
python_requires = >=3.6
setup_requires =
setuptools
setuptools_scm
cython
numpy
install_requires =
numpy>=1.16
astropy>=3.2
scipy>=1.2
regions>=0.4
pyyaml>=5.1
click>=7.0
pydantic>=1.0
[options.entry_points]
console_scripts =
gammapy = gammapy.scripts.main:cli
[options.package_data]
gammapy.analysis = config/*
gammapy.irf.tests = data/*
gammapy.modeling.tests = data/*
gammapy.catalog.tests = data/*
[bdist_wheel]
universal = true
# TODO: do we need / want this?
[build_docs]
source-dir = docs
build-dir = docs/_build
all_files = 0
[upload_docs]
upload-dir = docs/_build/html
show-response = 1
[tool:pytest]
minversion = 3.0
norecursedirs = build dev examples tutorials docs/_build gammapy/extern
#doctest_plus = enabled
addopts = -p no:warnings --remote-data=any
remote_data_strict = True
[coverage:run]
source = gammapy
omit =
*tests*
gammapy/extern/*
gammapy/conftest.py
# Exclude some code that's only executed by the
# notebook tests or docs build (not users)
# from the coverage measurement
gammapy/utils/tutorials_test.py
gammapy/utils/tutorials_process.py
gammapy/utils/docs.py
gammapy/scripts/jupyter.py
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about packages we have installed
except ImportError
# Don't complain if tests don't hit assertions
raise AssertionError
raise NotImplementedError
# Don't complain about script hooks
def main\(.*\):
[tool:isort]
sections = STDLIB,PYTEST,NUMPY,ASTROPY,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
no_lines_before = STDLIB,PYTEST,NUMPY,ASTROPY,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_pytest = pytest
known_numpy = numpy,scipy
known_astropy = astropy,regions
known_first_party = gammapy
# Config to make isort compatible with black
# From https://black.readthedocs.io/en/stable/the_black_code_style.html
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88