Skip to content

Commit

Permalink
Attempt to use pytest directly
Browse files Browse the repository at this point in the history
  • Loading branch information
kwongtn committed Jul 29, 2024
1 parent 34a4c7b commit 5a21c38
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import sys

import setuptools
import setuptools.command.test

NAME = 'django-celery-beat'
PACKAGE = 'django_celery_beat'
Expand Down Expand Up @@ -103,19 +102,6 @@ def reqs(*f):

# -*- %%% -*-


class pytest(setuptools.command.test.test):
user_options = [('pytest-args=', 'a', 'Arguments to pass to pytest')]

def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []

def run_tests(self):
import pytest
sys.exit(pytest.main(self.pytest_args))


setuptools.setup(
name=NAME,
packages=setuptools.find_packages(exclude=[
Expand Down

0 comments on commit 5a21c38

Please sign in to comment.