This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
python-rfc3161/setup.py

37 lines
1.0 KiB
Python
Raw Normal View History

2011-08-08 16:36:39 +02:00
#!/usr/bin/python
from distutils.core import setup, Command
from unittest import TextTestRunner, TestLoader
import os
class TestCommand(Command):
user_options = [ ]
def initialize_options(self):
self._dir = os.getcwd()
def finalize_options(self):
pass
def run(self):
'''
Finds all the tests modules in tests/, and runs them.
'''
2013-10-08 11:24:17 +02:00
tests = TestLoader().loadTestsFromName('tests.api')
2011-08-08 16:36:39 +02:00
t = TextTestRunner(verbosity = 1)
t.run(tests)
setup(name='rfc3161',
2014-05-05 16:27:46 +02:00
version='1.0.3',
2011-08-08 16:36:39 +02:00
license='MIT',
2013-10-17 11:28:05 +02:00
url='https://dev.entrouvert.org/projects/python-rfc3161',
2011-08-08 16:49:20 +02:00
description='Python implementation of the RFC3161 specification, using pyasn1',
long_description=file('README').read(),
2011-08-08 16:36:39 +02:00
author='Benjamin Dauvergne',
author_email='bdauvergne@entrouvert.com',
2011-08-08 16:49:20 +02:00
packages=['rfc3161'],
2014-05-05 16:27:21 +02:00
install_requires=[
'pyasn1',
'pyasn1_modules',
'M2Crypto'],
2011-08-08 16:36:39 +02:00
cmdclass={'test': TestCommand})