Skip to content
Myr

remove setuptools test command

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Branch Vincent · committed by Seth Michael Larson · parent 0e322af · Browse files · 1 file+0 added−26 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−26 removed

  • other:+0 added−26 removed

1 file+0 added−26 removed

modified:setup.py-26 removed
2 unmodified lines
3import sys4from codecs import open56from setuptools import setup7from setuptools.command.test import test as TestCommand78CURRENT_PYTHON = sys.version_info[:2]9REQUIRED_PYTHON = (3, 8)10
15 unmodified lines
26 )27 sys.exit(1)282931class PyTest(TestCommand):32 user_options = [("pytest-args=", "a", "Arguments to pass into py.test")]3334 def initialize_options(self):35 TestCommand.initialize_options(self)36 try:37 from multiprocessing import cpu_count3839 self.pytest_args = ["-n", str(cpu_count()), "--boxed"]40 except (ImportError, NotImplementedError):41 self.pytest_args = ["-n", "1", "--boxed"]4243 def finalize_options(self):44 TestCommand.finalize_options(self)45 self.test_args = []46 self.test_suite = True4748 def run_tests(self):49 import pytest5051 errno = pytest.main(self.pytest_args)52 sys.exit(errno)535430# 'setup.py publish' shortcut.31if sys.argv[-1] == "publish":32 os.system("python setup.py sdist bdist_wheel")33 os.system("twine upload dist/*")
58 unmodified lines
92 "Programming Language :: Python :: Implementation :: PyPy",93 "Topic :: Internet :: WWW/HTTP",94 "Topic :: Software Development :: Libraries",95 ],121 cmdclass={"test": PyTest},96 tests_require=test_requirements,97 extras_require={98 "security": [],99 "socks": ["PySocks>=1.5.6, !=1.5.7"],
7 unmodified lines