5 from distutils.core import setup
6 from setuptools import find_packages
7 from setuptools.command.test import test as TestCommand
10 class PyTest (TestCommand):
11 user_options = [("pytest-args=", "a", "Arguments to pass to py.test")]
13 def initialize_options (self):
14 TestCommand.initialize_options (self)
17 def finalize_options (self):
18 TestCommand.finalize_options (self)
20 self.test_suite = True
23 # import here, cause outside the eggs aren't loaded
25 sys.exit (pytest.main (self.pytest_args))
28 setup (name = "crypto_install",
30 scripts = ["crypto-install"],
31 install_requires = [],
32 tests_require = ["pytest"],
33 cmdclass = {"test": PyTest})