diff --git a/setup.cfg b/setup.cfg index 71037d7..e442e9c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,61 @@ [metadata] +name = pytest-xdist +description = pytest xdist plugin for distributed testing and loop-on-failing modes +long_description = file: README.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.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 license_file = LICENSE +[options] +packages = find: +package_dir = =src +zip_safe = False +python_requires = >=3.6 +install_requires = + execnet>=1.1 + pytest>=6.0.0 + pytest-forked +setup_requires = setuptools_scm + +[options.packages.find] +where = src + +[options.entry_points] +pytest11 = + xdist = xdist.plugin + xdist.looponfail = xdist.looponfail + +[options.extras_require] +testing = + filelock + pytest +psutil = psutil>=3.0 +setproctitle = setproctitle + [flake8] max-line-length = 100 diff --git a/setup.py b/setup.py index 3f1c377..28aefd7 100644 --- a/setup.py +++ b/setup.py @@ -1,53 +1,6 @@ -from setuptools import setup, find_packages +from setuptools import setup -install_requires = ["execnet>=1.1", "pytest>=6.0.0", "pytest-forked"] - - -with open("README.rst") as f: - long_description = f.read() - -setup( - name="pytest-xdist", - use_scm_version={"write_to": "src/xdist/_version.py"}, - description="pytest xdist plugin for distributed testing and loop-on-failing modes", - long_description=long_description, - 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"], - packages=find_packages(where="src"), - package_dir={"": "src"}, - extras_require={ - "testing": ["filelock"], - "psutil": ["psutil>=3.0"], - "setproctitle": ["setproctitle"], - }, - entry_points={ - "pytest11": ["xdist = xdist.plugin", "xdist.looponfail = xdist.looponfail"] - }, - zip_safe=False, - python_requires=">=3.6", - install_requires=install_requires, - setup_requires=["setuptools_scm"], - 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.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - ], -) +if __name__ == "__main__": + setup( + use_scm_version={"write_to": "src/xdist/_version.py"}, + )