Skip to content

Commit 7132649

Browse files
mkoeppenicoddemus
andauthored
Migrate to pyproject.toml (#1020)
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent fe8c5a2 commit 7132649

File tree

3 files changed

+86
-85
lines changed

3 files changed

+86
-85
lines changed

changelog/1020.trivial

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pytest-xdist's ``setup.py`` file is removed.
2+
3+
If you relied on this file, e.g. to install pytest using ``setup.py install``,
4+
please see `Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>`_ for alternatives.

pyproject.toml

+82-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,94 @@
11
[build-system]
22
requires = [
3-
"setuptools>=45.0",
3+
"setuptools>=61.2",
44
"setuptools-scm[toml]>=6.2.3",
5-
"wheel",
65
]
76
build-backend = "setuptools.build_meta"
87

8+
[project]
9+
name = "pytest-xdist"
10+
description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs"
11+
readme = "README.rst"
12+
license = {file="LICENSE"}
13+
authors = [{name = "holger krekel and contributors", email = "[email protected]"}, {email = "[email protected]"}]
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Framework :: Pytest",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Operating System :: POSIX",
20+
"Operating System :: Microsoft :: Windows",
21+
"Operating System :: MacOS :: MacOS X",
22+
"Topic :: Software Development :: Testing",
23+
"Topic :: Software Development :: Quality Assurance",
24+
"Topic :: Utilities",
25+
"Programming Language :: Python",
26+
"Programming Language :: Python :: 3",
27+
"Programming Language :: Python :: 3 :: Only",
28+
"Programming Language :: Python :: 3.7",
29+
"Programming Language :: Python :: 3.8",
30+
"Programming Language :: Python :: 3.9",
31+
"Programming Language :: Python :: 3.10",
32+
"Programming Language :: Python :: 3.11",
33+
"Programming Language :: Python :: 3.12",
34+
]
35+
requires-python = ">=3.7"
36+
dependencies = [
37+
"execnet>=1.1",
38+
"pytest>=6.2.0",
39+
]
40+
dynamic = ["version"]
41+
42+
[project.urls]
43+
Homepage = "https://github.com/pytest-dev/pytest-xdist"
44+
Documentation = "https://pytest-xdist.readthedocs.io/en/latest"
45+
Changelog = "https://pytest-xdist.readthedocs.io/en/latest/changelog.html"
46+
Source = "https://github.com/pytest-dev/pytest-xdist"
47+
Tracker = "https://github.com/pytest-dev/pytest-xdist/issues"
48+
49+
[project.entry-points.pytest11]
50+
xdist = "xdist.plugin"
51+
"xdist.looponfail" = "xdist.looponfail"
52+
53+
[project.optional-dependencies]
54+
testing = ["filelock"]
55+
psutil = ["psutil>=3.0"]
56+
setproctitle = ["setproctitle"]
57+
58+
[tool.setuptools]
59+
zip-safe = false
60+
platforms = [
61+
"linux",
62+
"osx",
63+
"win32",
64+
]
65+
include-package-data = false
66+
967
[tool.setuptools_scm]
1068
write_to = "src/xdist/_version.py"
1169

70+
[tool.flake8]
71+
# Ignore any errors related to formatting, let black worry/fix them.
72+
ignore = ["E501", "W503", "E203"]
73+
max-line-length = 100
74+
75+
[tool.mypy]
76+
mypy_path = ["src"]
77+
# TODO: Enable this & fix errors.
78+
# check_untyped_defs = true
79+
disallow_any_generics = true
80+
ignore_missing_imports = true
81+
no_implicit_optional = true
82+
show_error_codes = true
83+
strict_equality = true
84+
warn_redundant_casts = true
85+
warn_return_any = true
86+
warn_unreachable = true
87+
warn_unused_configs = true
88+
# TODO: Enable this & fix errors.
89+
# no_implicit_reexport = true
90+
91+
1292
[tool.towncrier]
1393
package = "xdist"
1494
filename = "CHANGELOG.rst"

setup.cfg

-83
This file was deleted.

0 commit comments

Comments
 (0)