Skip to content

Commit

Permalink
removes setuptools.command.test dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Bechtold committed Dec 30, 2024
1 parent ed3b9c2 commit 35d9ff6
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
from platform import architecture, machine
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys

# environment variables for cross-platform package creation
Expand Down Expand Up @@ -34,27 +33,7 @@
package_data = None
zip_safe = True


class PyTest(TestCommand):

user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []

def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True

def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)

cmdclass = {'test': PyTest}
cmdclass = {}

try:
from wheel.bdist_wheel import bdist_wheel
Expand Down

0 comments on commit 35d9ff6

Please sign in to comment.