Skip to content

Commit

Permalink
fix: remove Tox class
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Jul 29, 2024
1 parent a8a71a2 commit fb1b767
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import re

from setuptools import setup
from setuptools.command.test import test as TestCommand


def package_data(pkg, roots):
Expand Down Expand Up @@ -89,30 +88,6 @@ def is_requirement(line):
return line and line.strip() and not line.startswith(('-r', '#', '-e', 'git+', '-c'))


class Tox(TestCommand):
user_options = [('tox-args=', 'a', 'Arguments to pass to tox')]

def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None

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 shlex

import tox
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)


def get_version(file_path):
"""
Extract the version string from the file at the given relative path fragments.
Expand Down

0 comments on commit fb1b767

Please sign in to comment.