Skip to content

Commit f8a434e

Browse files
committed
Move metadata from setup.py to setup.cfg
Using https://github.com/asottile/setup-py-upgrade Refs pytest-dev#719.
1 parent b2f3d08 commit f8a434e

File tree

2 files changed

+61
-52
lines changed

2 files changed

+61
-52
lines changed

setup.cfg

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
[metadata]
2+
name = pytest-xdist
3+
description = pytest xdist plugin for distributed testing and loop-on-failing modes
4+
long_description = file: README.rst
5+
license = MIT
6+
author = holger krekel and contributors
7+
8+
url = https://github.com/pytest-dev/pytest-xdist
9+
platforms =
10+
linux
11+
osx
12+
win32
13+
classifiers =
14+
Development Status :: 5 - Production/Stable
15+
Framework :: Pytest
16+
Intended Audience :: Developers
17+
License :: OSI Approved :: MIT License
18+
Operating System :: POSIX
19+
Operating System :: Microsoft :: Windows
20+
Operating System :: MacOS :: MacOS X
21+
Topic :: Software Development :: Testing
22+
Topic :: Software Development :: Quality Assurance
23+
Topic :: Utilities
24+
Programming Language :: Python
25+
Programming Language :: Python :: 3
26+
Programming Language :: Python :: 3 :: Only
27+
Programming Language :: Python :: 3.6
28+
Programming Language :: Python :: 3.7
29+
Programming Language :: Python :: 3.8
30+
Programming Language :: Python :: 3.9
31+
Programming Language :: Python :: 3.10
232
license_file = LICENSE
333

34+
[options]
35+
packages = find:
36+
package_dir = =src
37+
zip_safe = False
38+
python_requires = >=3.6
39+
install_requires =
40+
execnet>=1.1
41+
pytest>=6.0.0
42+
pytest-forked
43+
setup_requires = setuptools_scm
44+
45+
[options.packages.find]
46+
where = src
47+
48+
[options.entry_points]
49+
pytest11 =
50+
xdist = xdist.plugin
51+
xdist.looponfail = xdist.looponfail
52+
53+
[options.extras_require]
54+
testing =
55+
filelock
56+
pytest
57+
psutil = psutil>=3.0
58+
setproctitle = setproctitle
59+
460
[flake8]
561
max-line-length = 100

setup.py

Lines changed: 5 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,6 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import setup
22

3-
install_requires = ["execnet>=1.1", "pytest>=6.0.0", "pytest-forked"]
4-
5-
6-
with open("README.rst") as f:
7-
long_description = f.read()
8-
9-
setup(
10-
name="pytest-xdist",
11-
use_scm_version={"write_to": "src/xdist/_version.py"},
12-
description="pytest xdist plugin for distributed testing and loop-on-failing modes",
13-
long_description=long_description,
14-
license="MIT",
15-
author="holger krekel and contributors",
16-
17-
url="https://github.com/pytest-dev/pytest-xdist",
18-
platforms=["linux", "osx", "win32"],
19-
packages=find_packages(where="src"),
20-
package_dir={"": "src"},
21-
extras_require={
22-
"testing": ["filelock"],
23-
"psutil": ["psutil>=3.0"],
24-
"setproctitle": ["setproctitle"],
25-
},
26-
entry_points={
27-
"pytest11": ["xdist = xdist.plugin", "xdist.looponfail = xdist.looponfail"]
28-
},
29-
zip_safe=False,
30-
python_requires=">=3.6",
31-
install_requires=install_requires,
32-
setup_requires=["setuptools_scm"],
33-
classifiers=[
34-
"Development Status :: 5 - Production/Stable",
35-
"Framework :: Pytest",
36-
"Intended Audience :: Developers",
37-
"License :: OSI Approved :: MIT License",
38-
"Operating System :: POSIX",
39-
"Operating System :: Microsoft :: Windows",
40-
"Operating System :: MacOS :: MacOS X",
41-
"Topic :: Software Development :: Testing",
42-
"Topic :: Software Development :: Quality Assurance",
43-
"Topic :: Utilities",
44-
"Programming Language :: Python",
45-
"Programming Language :: Python :: 3",
46-
"Programming Language :: Python :: 3 :: Only",
47-
"Programming Language :: Python :: 3.6",
48-
"Programming Language :: Python :: 3.7",
49-
"Programming Language :: Python :: 3.8",
50-
"Programming Language :: Python :: 3.9",
51-
"Programming Language :: Python :: 3.10",
52-
],
53-
)
3+
if __name__ == "__main__":
4+
setup(
5+
use_scm_version={"write_to": "src/xdist/_version.py"},
6+
)

0 commit comments

Comments
 (0)