Skip to content

fix: remove test command and related code from setup.py #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import sys
import pkg_resources
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

__version__ = '3.20.3'

Expand All @@ -36,22 +35,6 @@
with open('requirements-dev.txt', encoding='utf-8') as f:
tests_require = [str(req) for req in pkg_resources.parse_requirements(f)]


class PyTest(TestCommand):
"""PyTest class."""

def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--strict', '--verbose', '--tb=long', 'test']
self.test_suite = True

def run_tests(self):
import pytest

errcode = pytest.main(self.test_args)
sys.exit(errcode)


with open("README.md", "r", encoding='utf-8') as fh:
readme = fh.read()

Expand All @@ -62,7 +45,6 @@ def run_tests(self):
license='Apache 2.0',
install_requires=install_requires,
tests_require=tests_require,
cmdclass={'test': PyTest},
author='IBM',
author_email='[email protected]',
long_description=readme,
Expand Down