-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.cfg
More file actions
125 lines (113 loc) · 2.57 KB
/
setup.cfg
File metadata and controls
125 lines (113 loc) · 2.57 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
[metadata]
name = nmrsim
version = 0.6.0.post1
author = Geoffrey M. Sametz
author_email = "Geoffrey M. Sametz" <sametz@udel.edu>
description = A library for simulating nuclear magnetic resonance (NMR) spectra.
long_description = file: README.rst
long_description_content_type = text/x-rst
url = https://github.com/sametz/nmrsim
license = MIT
license_files = LICENSE
classifiers =
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Education
Programming Language :: Python :: 3 :: Only
Topic :: Education
Topic :: Scientific/Engineering :: Chemistry
Topic :: Scientific/Engineering :: Physics
Topic :: Scientific/Engineering :: Visualization
[options]
python_requires = >=3.7
package_dir =
= src
packages = find:
include_package_data = True
install_requires =
matplotlib
numpy
sparse!=0.11, !=1.12
importlib_resources ; python_version<"3.7"
[options.packages.find]
where = src
[options.extras_require]
dev = flake8
flake8-bugbear
black
ipykernel
jupyter
nbsphinx
pytest
pytest-cov
pyfakefs
sphinx
sphinx_rtd_theme
sphinxcontrib-napoleon
bokeh
tox
; tox-pyenv
######################
# Tool configuration #
######################
[flake8]
exclude =
.git,
__pycache__,
docs/source/conf.py,
env,
venv,
.venv,
.tox,
jupyter,
tests/dnmr_standards.py,
build,
dist
ignore =
# allowing I for Intensity/Integration *for now*
E741
max-line-length = 119
[tool:pytest]
testpaths = tests
addopts = --cov --strict-markers
[coverage:run]
source = nmrsim
branch = True
[coverage:report]
show_missing = True
skip_covered = True
[coverage:paths]
source =
src/nmrsim/
*/site-packages/nmrsim/
[tox:tox]
envlist = py37, py38, py39, py310
isolated_build = True
[testenv]
deps =
pyfakefs
pytest
pytest-cov
commands =
pytest {posargs}
# When converting from tox.ini to setup.cfg, found that omitting
# the following setting caused pyfakefs tests in qm.py to fail when running
# tox from the command line (tests passed if run in PyCharm).
# usedevelop=True should = "pip install -e ."
usedevelop=True
[testenv:format]
skip_install = True
deps =
black
commands =
black {posargs:--check --diff --skip-string-normalization src}
; black{posargs: --check --diff --skip-string-normalization src/nmrsim/qm.py}
[testenv:flake8]
skip_install = True
deps =
flake8
flake8-bugbear
commands =
flake8 {posargs}