Skip to content

Commit

Permalink
update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarisari committed Sep 30, 2020
1 parent 91dbec9 commit 3026642
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions setup.py
Expand Up @@ -14,46 +14,19 @@
Topic :: Software Development :: Libraries
"""

import sys
import setuptools
from distutils.core import setup, Command
from setuptools.command.test import test as TestCommand

version = '0.1.4'


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)


setup(
setuptools.setup(
name='dkredis',
version=version,
requires=[
'redis'
],
install_requires=[
'redis',
'redis==3.5.3',
],
description=__doc__.strip(),
classifiers=[line for line in classifiers.split('\n') if line],
long_description=open('README.rst').read(),
cmdclass={'test': PyTest},
packages=['dkredis'],
zip_safe=False,
)

0 comments on commit 3026642

Please sign in to comment.