Skip to content

Commit d8bb877

Browse files
authored
MNT Use pyproject.toml rather than setup.py (#446)
1 parent 1646db0 commit d8bb877

File tree

4 files changed

+53
-95
lines changed

4 files changed

+53
-95
lines changed

loky/cloudpickle_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _wrap_objects_when_needed(obj):
5454
**{
5555
k: _wrap_objects_when_needed(v)
5656
for k, v in obj.keywords.items()
57-
}
57+
},
5858
)
5959
if callable(obj):
6060
# Need wrap if the object is a function defined in a local scope of

pyproject.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "loky"
7+
description= "A robust implementation of concurrent.futures.ProcessPoolExecutor"
8+
authors = [{name = "Thomas Moreau", email = "[email protected]"}]
9+
license= {file = "LICENSE.txt"}
10+
dependencies = ["cloudpickle"]
11+
requires-python = ">=3.9"
12+
classifiers=[
13+
"Development Status :: 5 - Production/Stable",
14+
"Environment :: Console",
15+
"Intended Audience :: Developers",
16+
"Intended Audience :: Science/Research",
17+
"License :: OSI Approved :: BSD License",
18+
"Operating System :: OS Independent",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Topic :: Scientific/Engineering",
26+
"Topic :: Utilities",
27+
"Topic :: Software Development :: Libraries",
28+
]
29+
dynamic = ["version"]
30+
31+
[project.optional-dependencies]
32+
tests = ["packaging", "pytest", "psutil"]
33+
34+
[project.readme]
35+
file = "README.md"
36+
content-type = "text/markdown"
37+
38+
[project.urls]
39+
Homepage = "http://loky.readthedocs.io"
40+
Source = "https://github.com/joblib/loky"
41+
42+
[tool.setuptools]
43+
packages = [
44+
"loky",
45+
"loky.backend",
46+
]
47+
platforms = ["any"]
48+
include-package-data = false
49+
50+
[tool.setuptools.dynamic]
51+
version = {attr = "loky.__version__"}
52+
153
[tool.black]
254
line-length = 79
355
include = '\.pyi?$'

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)