Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lexdene committed Jul 29, 2024
1 parent 9987819 commit dd125f6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from distutils.version import LooseVersion
from glob import glob
from setuptools import setup, Extension
from setuptools.command.test import test as TestCommand

sources = (glob("src/*.cpp") + ["libmc/_client.pyx"])
include_dirs = ["include"]
Expand Down Expand Up @@ -74,25 +73,6 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.")


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 = 'tests'

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(shlex.split(self.pytest_args))
sys.exit(errno)


setup(
name="libmc",
packages=["libmc"],
Expand Down Expand Up @@ -122,7 +102,6 @@ def run_tests(self):
],
# Support for the basestring type is new in Cython 0.20.
setup_requires=["Cython >= 0.20"],
cmdclass={"test": PyTest},
ext_modules=[
Extension(
"libmc._client",
Expand Down

0 comments on commit dd125f6

Please sign in to comment.