-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.cfg
151 lines (136 loc) · 3.07 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
[metadata]
name = jupyter-o2
version = attr: jupyter_o2.version
author = Aaron Kollasch
author_email = [email protected]
description = Run Jupyter on Orchestra 2
long_description = file: README.rst, CHANGES.rst
long_description_content_type = text/x-rst; charset=UTF-8
url = https://github.com/aaronkollasch/jupyter-o2
license = MIT
license_file = LICENSE
keywords = jupyter, remote, ssh, slurm, pexpect, orchestra, o2
platforms = any
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: System Administrators
Intended Audience :: Science/Research
Environment :: Console
Operating System :: MacOS :: MacOS X
Operating System :: POSIX
Topic :: Utilities
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
[options]
setup_requires =
setuptools_scm
setuptools_scm_git_archive
install_requires =
pexpect>=4.5
dnspython>=2.0
pyobjc-framework-Quartz>=4; platform_system=="Darwin"
python_requires = >=3.6
package_dir =
= src
packages = find:
include_package_data = True
[options.packages.find]
where = src
exclude =
tests
[options.entry_points]
console_scripts =
jupyter-o2 = jupyter_o2:main
[options.extras_require]
test =
tox
pytest
coverage
[bdist_wheel]
universal = 1
[tox:tox]
envlist = linters, twine, py38, py39, py310, coverage-report
isolated_build = True
[gh-actions]
python =
3.8: py38
3.9: py39, linters
3.10: py310
[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
pytest
pytest-datafiles
coverage
;install_command = pip install --no-compile {opts} {packages}
allowlist_externals = coverage
commands =
coverage run -m pytest
[testenv:linters]
deps =
black
flake8
flake8-black
commands =
black --check --diff .
flake8 --count src tests
[testenv:twine]
deps =
build>=0.4.0
twine>=3.4.1
skip_install = true
commands =
python -m build --sdist --wheel .
python -m twine check dist/*
[testenv:coverage-report]
deps = coverage[toml]
skip_install = true
parallel_show_output = true
allowlist_externals = coverage
depends =
py38
py39
py310
commands =
coverage combine
coverage report
[flake8]
max-line-length = 88
ignore =
per-file-ignores = __init__.py:F401
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,W503
exclude = .*/, build, __pycache__, *.egg
[coverage:run]
branch = True
parallel = True
source = jupyter_o2
omit =
*/__main__.py
[coverage:paths]
source =
src
.tox/*/site-packages
[coverage:report]
show_missing = true
skip_covered = true
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
# typing-related code
^if (False|TYPE_CHECKING):
: \\.\\.\\.$
^ +\\.\\.\\.$
-> ['\"]?NoReturn['\"]?: