|
1 | 1 | [build-system]
|
2 |
| -requires = ["hatchling>=1.5"] |
3 | 2 | build-backend = "hatchling.build"
|
| 3 | +requires = [ |
| 4 | + "hatchling>=1.5", |
| 5 | +] |
4 | 6 |
|
5 | 7 | [project]
|
6 |
| -name = "jupyter_client" |
7 |
| -dynamic = ["version"] |
| 8 | +name = "jupyter-client" |
8 | 9 | description = "Jupyter protocol implementation and client libraries"
|
9 |
| -keywords = [ "Interactive", "Interpreter", "Shell", "Web",] |
10 |
| -classifiers = [ |
11 |
| - "Framework :: Jupyter", |
12 |
| - "Intended Audience :: Developers", |
13 |
| - "Intended Audience :: Education", |
14 |
| - "Intended Audience :: System Administrators", |
15 |
| - "Intended Audience :: Science/Research", |
16 |
| - "License :: OSI Approved :: BSD License", |
17 |
| - "Operating System :: OS Independent", |
18 |
| - "Programming Language :: Python", |
19 |
| - "Programming Language :: Python :: 3" |
20 |
| -] |
21 |
| -requires-python = ">=3.8" |
22 |
| -dependencies = [ |
23 |
| - "importlib_metadata>=4.8.3;python_version<\"3.10\"", |
24 |
| - "jupyter_core>=4.12,!=5.0.*", |
25 |
| - "python-dateutil>=2.8.2", |
26 |
| - "pyzmq>=23.0", |
27 |
| - "tornado>=6.2", |
28 |
| - "traitlets>=5.3", |
29 |
| -] |
30 |
| - |
31 |
| -[[project.authors]] |
32 |
| -name = "Jupyter Development Team" |
33 |
| - |
34 |
| - |
35 | 10 | [project.readme]
|
36 | 11 | file = "README.md"
|
37 | 12 | content-type = "text/markdown"
|
38 | 13 |
|
| 14 | +keywords = [ |
| 15 | + "Interactive", |
| 16 | + "Interpreter", |
| 17 | + "Shell", |
| 18 | + "Web", |
| 19 | +] |
39 | 20 | [project.license]
|
40 | 21 | file = "LICENSE"
|
41 | 22 |
|
42 |
| -[project.urls] |
43 |
| -Homepage = "https://jupyter.org" |
44 |
| -Documentation = "https://jupyter-client.readthedocs.io/" |
45 |
| -Source = "https://github.com/jupyter/jupyter_client" |
| 23 | +[[project.authors]] |
| 24 | +name = "Jupyter Development Team" |
| 25 | + |
46 | 26 |
|
47 |
| -[project.optional-dependencies] |
48 |
| -test = [ |
49 |
| - "coverage", |
50 |
| - "ipykernel>=6.14", |
51 |
| - "mypy", |
52 |
| - "paramiko; sys_platform == 'win32'", |
53 |
| - "pre-commit", |
54 |
| - "pytest", |
55 |
| - "pytest-jupyter[client]>=0.4.1", |
56 |
| - "pytest-cov", |
57 |
| - "pytest-timeout", |
| 27 | +requires-python = ">=3.8" |
| 28 | +classifiers = [ |
| 29 | + "Framework :: Jupyter", |
| 30 | + "Intended Audience :: Developers", |
| 31 | + "Intended Audience :: Education", |
| 32 | + "Intended Audience :: Science/Research", |
| 33 | + "Intended Audience :: System Administrators", |
| 34 | + "License :: OSI Approved :: BSD License", |
| 35 | + "Operating System :: OS Independent", |
| 36 | + "Programming Language :: Python", |
| 37 | + "Programming Language :: Python :: 3 :: Only", |
| 38 | + "Programming Language :: Python :: 3.8", |
| 39 | + "Programming Language :: Python :: 3.9", |
| 40 | + "Programming Language :: Python :: 3.10", |
| 41 | + "Programming Language :: Python :: 3.11", |
| 42 | +] |
| 43 | +dynamic = [ |
| 44 | + "version", |
58 | 45 | ]
|
| 46 | +dependencies = [ |
| 47 | + 'importlib_metadata>=4.8.3; python_version < "3.10"', |
| 48 | + "jupyter_core!=5.0.*,>=4.12", |
| 49 | + "python-dateutil>=2.8.2", |
| 50 | + "pyzmq>=23", |
| 51 | + "tornado>=6.2", |
| 52 | + "traitlets>=5.3", |
| 53 | +] |
| 54 | +[project.optional-dependencies] |
59 | 55 | docs = [
|
60 |
| - "ipykernel", |
61 |
| - "myst-parser", |
62 |
| - "sphinx>=4", |
63 |
| - "pydata_sphinx_theme", |
64 |
| - "sphinxcontrib_github_alt", |
65 |
| - "sphinxcontrib-spelling", |
66 |
| - "sphinx-autodoc-typehints", |
| 56 | + "ipykernel", |
| 57 | + "myst-parser", |
| 58 | + "pydata_sphinx_theme", |
| 59 | + "sphinx>=4", |
| 60 | + "sphinx-autodoc-typehints", |
| 61 | + "sphinxcontrib-spelling", |
| 62 | + "sphinxcontrib_github_alt", |
67 | 63 | ]
|
68 |
| - |
| 64 | +test = [ |
| 65 | + "coverage", |
| 66 | + "ipykernel>=6.14", |
| 67 | + "mypy", |
| 68 | + 'paramiko; sys_platform == "win32"', |
| 69 | + "pre-commit", |
| 70 | + "pytest", |
| 71 | + "pytest-cov", |
| 72 | + "pytest-jupyter[client]>=0.4.1", |
| 73 | + "pytest-timeout", |
| 74 | +] |
| 75 | +[project.urls] |
| 76 | +Documentation = "https://jupyter-client.readthedocs.io/" |
| 77 | +Homepage = "https://jupyter.org" |
| 78 | +Source = "https://github.com/jupyter/jupyter_client" |
69 | 79 | [project.scripts]
|
| 80 | +jupyter-kernel = "jupyter_client.kernelapp:main" |
70 | 81 | jupyter-kernelspec = "jupyter_client.kernelspecapp:KernelSpecApp.launch_instance"
|
71 | 82 | jupyter-run = "jupyter_client.runapp:RunApp.launch_instance"
|
72 |
| -jupyter-kernel = "jupyter_client.kernelapp:main" |
73 |
| - |
74 | 83 | [project.entry-points."jupyter_client.kernel_provisioners"]
|
75 | 84 | local-provisioner = "jupyter_client.provisioning:LocalProvisioner"
|
76 | 85 |
|
@@ -120,63 +129,6 @@ fmt = [
|
120 | 129 | "mdformat {args:docs *.md}"
|
121 | 130 | ]
|
122 | 131 |
|
123 |
| -[tool.pytest.ini_options] |
124 |
| -minversion = "6.0" |
125 |
| -xfail_strict = true |
126 |
| -log_cli_level = "info" |
127 |
| -addopts = [ |
128 |
| - "-raXs", "--durations=10", "--color=yes", "--doctest-modules", |
129 |
| - "--showlocals", "--strict-markers", "--strict-config" |
130 |
| -] |
131 |
| -testpaths = [ |
132 |
| - "jupyter_client", |
133 |
| - "tests/" |
134 |
| -] |
135 |
| -timeout = 100 |
136 |
| -# Restore this setting to debug failures |
137 |
| -timeout_method = "thread" |
138 |
| -filterwarnings= [ |
139 |
| - # Fail on warnings |
140 |
| - "error", |
141 |
| - # from python-dateutil |
142 |
| - "ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning", |
143 |
| - "ignore:datetime.datetime.utcnow:DeprecationWarning", |
144 |
| -] |
145 |
| - |
146 |
| -[tool.coverage.report] |
147 |
| -exclude_lines = [ |
148 |
| - "pragma: no cover", |
149 |
| - "def __repr__", |
150 |
| - "if self.debug:", |
151 |
| - "if settings.DEBUG", |
152 |
| - "raise AssertionError", |
153 |
| - "raise NotImplementedError", |
154 |
| - "if 0:", |
155 |
| - "if __name__ == .__main__.:", |
156 |
| - "class .*\bProtocol\\):", |
157 |
| -"@(abc\\.)?abstractmethod", |
158 |
| -] |
159 |
| -omit = [ |
160 |
| - "jupyter_client/ssh/forward.py" |
161 |
| -] |
162 |
| - |
163 |
| -[tool.coverage.run] |
164 |
| -relative_files = true |
165 |
| -source = ["jupyter_client"] |
166 |
| - |
167 |
| -[tool.mypy] |
168 |
| -files = "jupyter_client" |
169 |
| -python_version = "3.8" |
170 |
| -strict = true |
171 |
| -disallow_any_generics = false |
172 |
| -enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] |
173 |
| -no_implicit_reexport = false |
174 |
| -pretty = true |
175 |
| -show_error_context = true |
176 |
| -show_error_codes = true |
177 |
| -warn_return_any = false |
178 |
| -warn_unreachable = true |
179 |
| - |
180 | 132 | [tool.ruff]
|
181 | 133 | target-version = "py38"
|
182 | 134 | line-length = 100
|
@@ -278,6 +230,63 @@ unfixable = [
|
278 | 230 | # F401 `._version.__version__` imported but unused
|
279 | 231 | "jupyter_client/__init__.py" = ["F401"]
|
280 | 232 |
|
| 233 | +[tool.pytest.ini_options] |
| 234 | +minversion = "6.0" |
| 235 | +xfail_strict = true |
| 236 | +log_cli_level = "info" |
| 237 | +addopts = [ |
| 238 | + "-raXs", "--durations=10", "--color=yes", "--doctest-modules", |
| 239 | + "--showlocals", "--strict-markers", "--strict-config" |
| 240 | +] |
| 241 | +testpaths = [ |
| 242 | + "jupyter_client", |
| 243 | + "tests/" |
| 244 | +] |
| 245 | +timeout = 100 |
| 246 | +# Restore this setting to debug failures |
| 247 | +timeout_method = "thread" |
| 248 | +filterwarnings= [ |
| 249 | + # Fail on warnings |
| 250 | + "error", |
| 251 | + # from python-dateutil |
| 252 | + "ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning", |
| 253 | + "ignore:datetime.datetime.utcnow:DeprecationWarning", |
| 254 | +] |
| 255 | + |
| 256 | +[tool.coverage.report] |
| 257 | +exclude_lines = [ |
| 258 | + "pragma: no cover", |
| 259 | + "def __repr__", |
| 260 | + "if self.debug:", |
| 261 | + "if settings.DEBUG", |
| 262 | + "raise AssertionError", |
| 263 | + "raise NotImplementedError", |
| 264 | + "if 0:", |
| 265 | + "if __name__ == .__main__.:", |
| 266 | + "class .*\bProtocol\\):", |
| 267 | +"@(abc\\.)?abstractmethod", |
| 268 | +] |
| 269 | +omit = [ |
| 270 | + "jupyter_client/ssh/forward.py" |
| 271 | +] |
| 272 | + |
| 273 | +[tool.coverage.run] |
| 274 | +relative_files = true |
| 275 | +source = ["jupyter_client"] |
| 276 | + |
| 277 | +[tool.mypy] |
| 278 | +files = "jupyter_client" |
| 279 | +python_version = "3.8" |
| 280 | +strict = true |
| 281 | +disallow_any_generics = false |
| 282 | +enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] |
| 283 | +no_implicit_reexport = false |
| 284 | +pretty = true |
| 285 | +show_error_context = true |
| 286 | +show_error_codes = true |
| 287 | +warn_return_any = false |
| 288 | +warn_unreachable = true |
| 289 | + |
281 | 290 | [tool.interrogate]
|
282 | 291 | ignore-init-module=true
|
283 | 292 | ignore-private=true
|
|
0 commit comments