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
|
[build-system]
requires = [
"jupyterlab==4.*",
"hatchling>=0.25",
]
build-backend = "hatchling.build"
[project]
name = "ipyparallel"
version = "9.0.2"
authors = [{name = "IPython Development Team", email = "ipython-dev@python.org"}]
license = {file = "COPYING.md"}
readme = "README.md"
description = "Interactive Parallel Computing with IPython"
keywords = [
"Interactive",
"Interpreter",
"Shell",
"Parallel",
]
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 4",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
]
urls = {Homepage = "https://ipython.org"}
requires-python = ">=3.8"
dependencies = [
"importlib_metadata>=3.6; python_version < '3.10'",
"decorator",
"pyzmq>=25",
"traitlets>=5",
"ipython>=5",
"jupyter_client>=7",
"ipykernel>=6.9.1",
"tornado>=6.1",
"psutil",
"python-dateutil>=2.1",
"tqdm",
]
[project.entry-points."ipyparallel.controller_launchers"]
batch = "ipyparallel.cluster.launcher:BatchControllerLauncher"
htcondor = "ipyparallel.cluster.launcher:HTCondorControllerLauncher"
local = "ipyparallel.cluster.launcher:LocalControllerLauncher"
lsf = "ipyparallel.cluster.launcher:LSFControllerLauncher"
mpi = "ipyparallel.cluster.launcher:MPIControllerLauncher"
pbs = "ipyparallel.cluster.launcher:PBSControllerLauncher"
sge = "ipyparallel.cluster.launcher:SGEControllerLauncher"
ssh = "ipyparallel.cluster.launcher:SSHControllerLauncher"
slurm = "ipyparallel.cluster.launcher:SlurmControllerLauncher"
winhpc = "ipyparallel.cluster.launcher:WindowsHPCControllerLauncher"
[project.entry-points."ipyparallel.engine_launchers"]
batch = "ipyparallel.cluster.launcher:BatchEngineSetLauncher"
htcondor = "ipyparallel.cluster.launcher:HTCondorEngineSetLauncher"
local = "ipyparallel.cluster.launcher:LocalEngineSetLauncher"
lsf = "ipyparallel.cluster.launcher:LSFEngineSetLauncher"
mpi = "ipyparallel.cluster.launcher:MPIEngineSetLauncher"
pbs = "ipyparallel.cluster.launcher:PBSEngineSetLauncher"
sge = "ipyparallel.cluster.launcher:SGEEngineSetLauncher"
slurm = "ipyparallel.cluster.launcher:SlurmEngineSetLauncher"
ssh = "ipyparallel.cluster.launcher:SSHEngineSetLauncher"
sshproxy = "ipyparallel.cluster.launcher:SSHProxyEngineSetLauncher"
winhpc = "ipyparallel.cluster.launcher:WindowsHPCEngineSetLauncher"
[project.optional-dependencies]
nbext = ["notebook", "jupyter_server"]
serverextension = ["jupyter_server"]
labextension = ["jupyter_server", "jupyterlab>=3"]
retroextension = ["jupyter_server", "retrolab"]
benchmark = ["asv"]
test = [
"pytest",
"pytest-cov",
"pytest-asyncio",
"ipython[test]",
"testpath",
]
[project.scripts]
ipcluster = "ipyparallel.cluster.app:main"
ipcontroller = "ipyparallel.controller.app:main"
ipengine = "ipyparallel.engine.app:main"
# Used to call hatch_build.py
[tool.hatch.build.hooks.custom]
[tool.hatch.build]
artifacts = [
"ipyparallel/labextension/**/*.*"
]
[tool.hatch.build.targets.wheel.shared-data]
"jupyter-config" = "/etc/jupyter"
"ipyparallel/nbextension/static" = "share/jupyter/nbextensions/ipyparallel"
"ipyparallel/labextension" = "share/jupyter/labextensions/ipyparallel-labextension"
[tool.black]
skip-string-normalization = true
target_version = [
"py38",
]
python_cell_magics = ["px"]
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "-raXs --durations 10 --color=yes"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope="function"
testpaths = [
"ipyparallel/tests"
]
filterwarnings = [
"error:::ipy*",
"error:::jupyter*",
"ignore:zmq.eventloop.ioloop:DeprecationWarning:jupyter*",
"ignore:unclosed event loop:ResourceWarning",
"ignore:unclosed socket <zmq.Socket:ResourceWarning",
"ignore:unclosed <socket.socket:ResourceWarning",
"ignore:unclosed file <_io.BufferedWriter:ResourceWarning",
"ignore:subprocess .* is still running:ResourceWarning",
"ignore:unclosed file <_io.BufferedRandom>:ResourceWarning",
# from older versions of ipykernel
"ignore:the imp module is:DeprecationWarning",
"ignore:The distutils package is:DeprecationWarning",
# ip lookup failure for hostname, e.g mac CI
"ignore:IPython could not determine IPs:RuntimeWarning",
# new behavior in Jupyter Core 5.0+
"module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
]
[tool.nbqa.process_cells]
# handle %px cell magics
# it's still going to get confused about which imports are local
"ruff format" = ["px"]
"ruff check" = ["px"]
[tool.ruff]
line-length = 88
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
ignore = [
"F841", # unused variable
"E741", # ambiguous names
"E743", # ambiguous names
]
select = [
"E7", # comparisons
"E9", # syntax
"I", # isort
"UP", # pyupgrade
"F", # flake8
]
[tool.ruff.lint.per-file-ignores]
"**/tests/**" = ["F841", "E741", "F401"]
"**/__init__.py" = ["I", "F4"]
# ruff doesn't handle namespace issues with cell magics very well
# nbqa will handle these
"**/*.ipynb" = ["F4", "F8"]
# for nbqa, these should be *nbqa_ipynb.py
# after https://github.com/nbQA-dev/nbQA/pull/870
"docs/source/examples/**" = [
"F704", # top-level await is valid in IPython
]
[tool.tbump]
# Uncomment this if your project is hosted on GitHub:
github_url = "https://github.com/jupyterhub/jupyterhub"
[tool.tbump.version]
current = "9.0.2"
# pep440 regex
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(?P<pre>((a|b|rc)\d+))?
(\.
(?P<dev>dev\d*)
)?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "{new_version}"
# For each file to patch, add a [[tool.tbump.file]] config
# section containing the path of the file, relative to the
# pyproject.toml location.
[[tool.tbump.file]]
src = "ipyparallel/_version.py"
search = '__version__ = "{current_version}"'
[[tool.tbump.file]]
src = "pyproject.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
src = "package.json"
search = '"version": "{current_version}"'
version_template = "{major}.{minor}.{patch}"
|