Migrate to pyproject.toml (#1020)
Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
This commit is contained in:
4
changelog/1020.trivial
Normal file
4
changelog/1020.trivial
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
pytest-xdist's ``setup.py`` file is removed.
|
||||||
|
|
||||||
|
If you relied on this file, e.g. to install pytest using ``setup.py install``,
|
||||||
|
please see `Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>`_ for alternatives.
|
||||||
@@ -1,14 +1,94 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = [
|
requires = [
|
||||||
"setuptools>=45.0",
|
"setuptools>=61.2",
|
||||||
"setuptools-scm[toml]>=6.2.3",
|
"setuptools-scm[toml]>=6.2.3",
|
||||||
"wheel",
|
|
||||||
]
|
]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "pytest-xdist"
|
||||||
|
description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs"
|
||||||
|
readme = "README.rst"
|
||||||
|
license = {file="LICENSE"}
|
||||||
|
authors = [{name = "holger krekel and contributors", email = "pytest-dev@python.org"}, {email = "holger@merlinux.eu"}]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
"Framework :: Pytest",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Operating System :: POSIX",
|
||||||
|
"Operating System :: Microsoft :: Windows",
|
||||||
|
"Operating System :: MacOS :: MacOS X",
|
||||||
|
"Topic :: Software Development :: Testing",
|
||||||
|
"Topic :: Software Development :: Quality Assurance",
|
||||||
|
"Topic :: Utilities",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
|
"Programming Language :: Python :: 3.7",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
|
]
|
||||||
|
requires-python = ">=3.7"
|
||||||
|
dependencies = [
|
||||||
|
"execnet>=1.1",
|
||||||
|
"pytest>=6.2.0",
|
||||||
|
]
|
||||||
|
dynamic = ["version"]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://github.com/pytest-dev/pytest-xdist"
|
||||||
|
Documentation = "https://pytest-xdist.readthedocs.io/en/latest"
|
||||||
|
Changelog = "https://pytest-xdist.readthedocs.io/en/latest/changelog.html"
|
||||||
|
Source = "https://github.com/pytest-dev/pytest-xdist"
|
||||||
|
Tracker = "https://github.com/pytest-dev/pytest-xdist/issues"
|
||||||
|
|
||||||
|
[project.entry-points.pytest11]
|
||||||
|
xdist = "xdist.plugin"
|
||||||
|
"xdist.looponfail" = "xdist.looponfail"
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
testing = ["filelock"]
|
||||||
|
psutil = ["psutil>=3.0"]
|
||||||
|
setproctitle = ["setproctitle"]
|
||||||
|
|
||||||
|
[tool.setuptools]
|
||||||
|
zip-safe = false
|
||||||
|
platforms = [
|
||||||
|
"linux",
|
||||||
|
"osx",
|
||||||
|
"win32",
|
||||||
|
]
|
||||||
|
include-package-data = false
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
write_to = "src/xdist/_version.py"
|
write_to = "src/xdist/_version.py"
|
||||||
|
|
||||||
|
[tool.flake8]
|
||||||
|
# Ignore any errors related to formatting, let black worry/fix them.
|
||||||
|
ignore = ["E501", "W503", "E203"]
|
||||||
|
max-line-length = 100
|
||||||
|
|
||||||
|
[tool.mypy]
|
||||||
|
mypy_path = ["src"]
|
||||||
|
# TODO: Enable this & fix errors.
|
||||||
|
# check_untyped_defs = true
|
||||||
|
disallow_any_generics = true
|
||||||
|
ignore_missing_imports = true
|
||||||
|
no_implicit_optional = true
|
||||||
|
show_error_codes = true
|
||||||
|
strict_equality = true
|
||||||
|
warn_redundant_casts = true
|
||||||
|
warn_return_any = true
|
||||||
|
warn_unreachable = true
|
||||||
|
warn_unused_configs = true
|
||||||
|
# TODO: Enable this & fix errors.
|
||||||
|
# no_implicit_reexport = true
|
||||||
|
|
||||||
|
|
||||||
[tool.towncrier]
|
[tool.towncrier]
|
||||||
package = "xdist"
|
package = "xdist"
|
||||||
filename = "CHANGELOG.rst"
|
filename = "CHANGELOG.rst"
|
||||||
|
|||||||
83
setup.cfg
83
setup.cfg
@@ -1,83 +0,0 @@
|
|||||||
[metadata]
|
|
||||||
name = pytest-xdist
|
|
||||||
description = pytest xdist plugin for distributed testing, most importantly across multiple CPUs
|
|
||||||
long_description = file: README.rst
|
|
||||||
long_description_content_type = text/x-rst
|
|
||||||
license = MIT
|
|
||||||
author = holger krekel and contributors
|
|
||||||
author_email = pytest-dev@python.org,holger@merlinux.eu
|
|
||||||
url = https://github.com/pytest-dev/pytest-xdist
|
|
||||||
platforms =
|
|
||||||
linux
|
|
||||||
osx
|
|
||||||
win32
|
|
||||||
classifiers =
|
|
||||||
Development Status :: 5 - Production/Stable
|
|
||||||
Framework :: Pytest
|
|
||||||
Intended Audience :: Developers
|
|
||||||
License :: OSI Approved :: MIT License
|
|
||||||
Operating System :: POSIX
|
|
||||||
Operating System :: Microsoft :: Windows
|
|
||||||
Operating System :: MacOS :: MacOS X
|
|
||||||
Topic :: Software Development :: Testing
|
|
||||||
Topic :: Software Development :: Quality Assurance
|
|
||||||
Topic :: Utilities
|
|
||||||
Programming Language :: Python
|
|
||||||
Programming Language :: Python :: 3
|
|
||||||
Programming Language :: Python :: 3 :: Only
|
|
||||||
Programming Language :: Python :: 3.7
|
|
||||||
Programming Language :: Python :: 3.8
|
|
||||||
Programming Language :: Python :: 3.9
|
|
||||||
Programming Language :: Python :: 3.10
|
|
||||||
Programming Language :: Python :: 3.11
|
|
||||||
Programming Language :: Python :: 3.12
|
|
||||||
license_file = LICENSE
|
|
||||||
project_urls =
|
|
||||||
Documentation=https://pytest-xdist.readthedocs.io/en/latest
|
|
||||||
Changelog=https://pytest-xdist.readthedocs.io/en/latest/changelog.html
|
|
||||||
Source=https://github.com/pytest-dev/pytest-xdist
|
|
||||||
Tracker=https://github.com/pytest-dev/pytest-xdist/issues
|
|
||||||
|
|
||||||
[options]
|
|
||||||
packages = find:
|
|
||||||
package_dir = =src
|
|
||||||
zip_safe = False
|
|
||||||
python_requires = >=3.7
|
|
||||||
install_requires =
|
|
||||||
execnet>=1.1
|
|
||||||
pytest>=6.2.0
|
|
||||||
|
|
||||||
[options.packages.find]
|
|
||||||
where = src
|
|
||||||
|
|
||||||
[options.entry_points]
|
|
||||||
pytest11 =
|
|
||||||
xdist = xdist.plugin
|
|
||||||
xdist.looponfail = xdist.looponfail
|
|
||||||
|
|
||||||
[options.extras_require]
|
|
||||||
testing =
|
|
||||||
filelock
|
|
||||||
psutil = psutil>=3.0
|
|
||||||
setproctitle = setproctitle
|
|
||||||
|
|
||||||
[flake8]
|
|
||||||
# Ignore any errors related to formatting, let black worry/fix them.
|
|
||||||
ignore = E501, W503, E203
|
|
||||||
max-line-length = 100
|
|
||||||
|
|
||||||
[mypy]
|
|
||||||
mypy_path = src
|
|
||||||
# TODO: Enable this & fix errors.
|
|
||||||
# check_untyped_defs = True
|
|
||||||
disallow_any_generics = True
|
|
||||||
ignore_missing_imports = True
|
|
||||||
no_implicit_optional = True
|
|
||||||
show_error_codes = True
|
|
||||||
strict_equality = True
|
|
||||||
warn_redundant_casts = True
|
|
||||||
warn_return_any = True
|
|
||||||
warn_unreachable = True
|
|
||||||
warn_unused_configs = True
|
|
||||||
# TODO: Enable this & fix errors.
|
|
||||||
# no_implicit_reexport = True
|
|
||||||
Reference in New Issue
Block a user